diff --git a/angular.json b/angular.json index c0dac218..1b849317 100644 --- a/angular.json +++ b/angular.json @@ -42,7 +42,7 @@ { "type": "anyComponentStyle", "maximumWarning": "2kb", - "maximumError": "20kb" + "maximumError": "30kb" } ], "fileReplacements": [ diff --git a/docs/3rdpartylicenses.txt b/docs/3rdpartylicenses.txt index 30fe6902..cf2267ad 100644 --- a/docs/3rdpartylicenses.txt +++ b/docs/3rdpartylicenses.txt @@ -5,7 +5,7 @@ MIT MIT The MIT License -Copyright (c) 2022 Google LLC. +Copyright (c) 2023 Google LLC. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -39,7 +39,7 @@ MIT MIT The MIT License -Copyright (c) 2022 Google LLC. +Copyright (c) 2023 Google LLC. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -270,31 +270,6 @@ Apache-2.0 END OF TERMS AND CONDITIONS -regenerator-runtime -MIT -MIT License - -Copyright (c) 2014-present, Facebook, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - rxjs Apache-2.0 Apache License @@ -505,7 +480,7 @@ zone.js MIT The MIT License -Copyright (c) 2010-2020 Google LLC. https://angular.io/license +Copyright (c) 2010-2023 Google LLC. https://angular.io/license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/404.html b/docs/404.html index e1b57c76..f3ab1dd1 100644 --- a/docs/404.html +++ b/docs/404.html @@ -1,4 +1,7 @@ - + + + + @@ -10,7 +13,7 @@ - + - + @@ -151,7 +154,6 @@
- - + - \ No newline at end of file + diff --git a/docs/favicon.ico b/docs/favicon.ico index 8081c7ce..997406ad 100644 Binary files a/docs/favicon.ico and b/docs/favicon.ico differ diff --git a/docs/index.html b/docs/index.html index e1b57c76..f3ab1dd1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,7 @@ - + + + + @@ -10,7 +13,7 @@ - + - + @@ -151,7 +154,6 @@
- - + - \ No newline at end of file + diff --git a/docs/main.9aec9e499888e5c8.js b/docs/main.9aec9e499888e5c8.js deleted file mode 100644 index 4925ecbd..00000000 --- a/docs/main.9aec9e499888e5c8.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkng2_pdf_viewer=self.webpackChunkng2_pdf_viewer||[]).push([[179],{3415:function(H,A,S){"use strict";function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function Q(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=p(t)););return t}function M(){return M="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(r,e,n){var i=Q(r,e);if(i){var a=Object.getOwnPropertyDescriptor(i,e);return a.get?a.get.call(arguments.length<3?r:n):a.value}},M.apply(this,arguments)}function Z(t,r){for(var e=0;et.length)&&(r=t.length);for(var e=0,n=new Array(r);e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(l){throw l},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){e=e.call(t)},n:function(){var l=e.next();return a=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!a&&null!=e.return&&e.return()}finally{if(o)throw s}}}}function j(t,r){return function W(t){if(Array.isArray(t))return t}(t)||function ie(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var o,s,n=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(o=e.next()).done)&&(n.push(o.value),!r||n.length!==r);i=!0);}catch(u){a=!0,s=u}finally{try{!i&&null!=e.return&&e.return()}finally{if(a)throw s}}return n}}(t,r)||ye(t,r)||function de(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(t){return function k(t){if(Array.isArray(t))return re(t)}(t)||function q(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ye(t)||function ae(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(t,r,e){return(F=R()?Reflect.construct:function(i,a,o){var s=[null];s.push.apply(s,a);var l=new(Function.bind.apply(i,s));return o&&Y(l,o.prototype),l}).apply(null,arguments)}function pe(t){var r="function"==typeof Map?new Map:void 0;return pe=function(n){if(null===n||!function se(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return F(n,arguments,p(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Y(i,n)},pe(t)}var te=Array.isArray||function(t){return t&&"number"==typeof t.length};function I(t){return null!==t&&"object"==typeof t}function B(t){return"function"==typeof t}var t,L=function(){function t(r){return Error.call(this),this.message=r?"".concat(r.length," errors occurred during unsubscription:\n").concat(r.map(function(e,n){return"".concat(n+1,") ").concat(e.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=r,this}return t.prototype=Object.create(Error.prototype),t}(),V=L,N=function(){function t(r){f(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,r&&(this._unsubscribe=r)}return v(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var n=this._parentOrParents,i=this._unsubscribe,a=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var o=0;o4&&void 0!==arguments[4]?arguments[4]:new Xe(t,e,n);if(!i.closed)return r instanceof ve?r.subscribe(i):oe(r)(i)}var Ne=function(t){C(e,t);var r=T(e);function e(){return f(this,e),r.apply(this,arguments)}return v(e,[{key:"notifyNext",value:function(i,a,o,s,u){this.destination.next(a)}},{key:"notifyError",value:function(i,a){this.destination.error(i)}},{key:"notifyComplete",value:function(i){this.destination.complete()}}]),e}(b);function Me(t,r){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new ke(t,r))}}var ke=function(){function t(r,e){f(this,t),this.project=r,this.thisArg=e}return v(t,[{key:"call",value:function(e,n){return n.subscribe(new he(e,this.project,this.thisArg))}}]),t}(),he=function(t){C(e,t);var r=T(e);function e(n,i,a){var o;return f(this,e),(o=r.call(this,n)).project=i,o.count=0,o.thisArg=a||ce(o),o}return v(e,[{key:"_next",value:function(i){var a;try{a=this.project.call(this.thisArg,i,this.count++)}catch(o){return void this.destination.error(o)}this.destination.next(a)}}]),e}(b);function Be(t,r){return new ve(function(e){var n=new N,i=0;return n.add(r.schedule(function(){i!==t.length?(e.next(t[i++]),e.closed||n.add(this.schedule())):e.complete()})),n})}function rt(t,r){return r?function st(t,r){if(null!=t){if(function Qe(t){return t&&"function"==typeof t[G]}(t))return function Ae(t,r){return new ve(function(e){var n=new N;return n.add(r.schedule(function(){var i=t[G]();n.add(i.subscribe({next:function(o){n.add(r.schedule(function(){return e.next(o)}))},error:function(o){n.add(r.schedule(function(){return e.error(o)}))},complete:function(){n.add(r.schedule(function(){return e.complete()}))}}))})),n})}(t,r);if(be(t))return function Ie(t,r){return new ve(function(e){var n=new N;return n.add(r.schedule(function(){return t.then(function(i){n.add(r.schedule(function(){e.next(i),n.add(r.schedule(function(){return e.complete()}))}))},function(i){n.add(r.schedule(function(){return e.error(i)}))})})),n})}(t,r);if(Ve(t))return Be(t,r);if(function ft(t){return t&&"function"==typeof t[qt]}(t)||"string"==typeof t)return function Ge(t,r){if(!t)throw new Error("Iterable cannot be null");return new ve(function(e){var i,n=new N;return n.add(function(){i&&"function"==typeof i.return&&i.return()}),n.add(r.schedule(function(){i=t[qt](),n.add(r.schedule(function(){if(!e.closed){var a,o;try{var s=i.next();a=s.value,o=s.done}catch(u){return void e.error(u)}o?e.complete():(e.next(a),this.schedule())}}))})),n})}(t,r)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,r):t instanceof ve?t:new ve(oe(t))}function Le(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof r?function(n){return n.pipe(Le(function(i,a){return rt(t(i,a)).pipe(Me(function(o,s){return r(i,o,a,s)}))},e))}:("number"==typeof r&&(e=r),function(n){return n.lift(new xe(t,e))})}var xe=function(){function t(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;f(this,t),this.project=r,this.concurrent=e}return v(t,[{key:"call",value:function(e,n){return n.subscribe(new $e(e,this.project,this.concurrent))}}]),t}(),$e=function(t){C(e,t);var r=T(e);function e(n,i){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return f(this,e),(a=r.call(this,n)).project=i,a.concurrent=o,a.hasCompleted=!1,a.buffer=[],a.active=0,a.index=0,a}return v(e,[{key:"_next",value:function(i){this.active0?this._next(a.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),e}(Ne);function Ze(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Le(U,t)}function pt(t,r){return r?Be(t,r):new ve(ct(t))}function nt(){for(var t=Number.POSITIVE_INFINITY,r=null,e=arguments.length,n=new Array(e),i=0;i1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof a&&(t=n.pop()),null===r&&1===n.length&&n[0]instanceof ve?n[0]:Ze(t)(pt(n,r))}function vt(){return function(r){return r.lift(new gt(r))}}var gt=function(){function t(r){f(this,t),this.connectable=r}return v(t,[{key:"call",value:function(e,n){var i=this.connectable;i._refCount++;var a=new Lt(e,i),o=n.subscribe(a);return a.closed||(a.connection=i.connect()),o}}]),t}(),Lt=function(t){C(e,t);var r=T(e);function e(n,i){var a;return f(this,e),(a=r.call(this,n)).connectable=i,a}return v(e,[{key:"_unsubscribe",value:function(){var i=this.connectable;if(i){this.connectable=null;var a=i._refCount;if(a<=0)this.connection=null;else if(i._refCount=a-1,a>1)this.connection=null;else{var o=this.connection,s=i._connection;this.connection=null,s&&(!o||s===o)&&s.unsubscribe()}}else this.connection=null}}]),e}(b),bt=function(t){C(e,t);var r=T(e);function e(n,i){var a;return f(this,e),(a=r.call(this)).source=n,a.subjectFactory=i,a._refCount=0,a._isComplete=!1,a}return v(e,[{key:"_subscribe",value:function(i){return this.getSubject().subscribe(i)}},{key:"getSubject",value:function(){var i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var i=this._connection;return i||(this._isComplete=!1,(i=this._connection=new N).add(this.source.subscribe(new dn(this.getSubject(),this))),i.closed&&(this._connection=null,i=N.EMPTY)),i}},{key:"refCount",value:function(){return vt()(this)}}]),e}(ve),Ut=function(){var t=bt.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),dn=function(t){C(e,t);var r=T(e);function e(n,i){var a;return f(this,e),(a=r.call(this,n)).connectable=i,a}return v(e,[{key:"_error",value:function(i){this._unsubscribe(),M(p(e.prototype),"_error",this).call(this,i)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),M(p(e.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var i=this.connectable;if(i){this.connectable=null;var a=i._connection;i._refCount=0,i._subject=null,i._connection=null,a&&a.unsubscribe()}}}]),e}(Re),Kn=function(){function t(r,e){f(this,t),this.subjectFactory=r,this.selector=e}return v(t,[{key:"call",value:function(e,n){var i=this.selector,a=this.subjectFactory(),o=i(a).subscribe(e);return o.add(n.subscribe(a)),o}}]),t}();function Ln(){return new Se}function bn(){return function(t){return vt()(function An(t,r){return function(n){var i;if(i="function"==typeof t?t:function(){return t},"function"==typeof r)return n.lift(new Kn(i,r));var a=Object.create(n,Ut);return a.source=n,a.subjectFactory=i,a}}(Ln)(t))}}function Nt(t){for(var r in t)if(t[r]===Nt)return r;throw Error("Could not find renamed property on target object.")}function On(t,r){for(var e in r)r.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=r[e])}function Bt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Bt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var r=t.toString();if(null==r)return""+r;var e=r.indexOf("\n");return-1===e?r:r.substring(0,e)}function Xr(t,r){return null==t||""===t?null===r?"":r:null==r||""===r?t:t+" "+r}var Nn=Nt({__forward_ref__:Nt});function Dt(t){return t.__forward_ref__=Dt,t.toString=function(){return Bt(this())},t}function mt(t){return qi(t)?t():t}function qi(t){return"function"==typeof t&&t.hasOwnProperty(Nn)&&t.__forward_ref__===Dt}var Xt=function(t){C(e,t);var r=T(e);function e(n,i){var a;return f(this,e),(a=r.call(this,function $o(t,r){var n="NG0".concat(Math.abs(t));return"".concat(n).concat(r?": "+r:"")}(n,i))).code=n,a}return v(e)}(pe(Error));function kt(t){return"string"==typeof t?t:null==t?"":String(t)}function ur(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():kt(t)}function bu(t,r){var e=r?" in ".concat(r):"";throw new Xt(-201,"No provider for ".concat(ur(t)," found").concat(e))}function Cr(t,r){null==t&&function pn(t,r,e,n){throw new Error("ASSERTION ERROR: ".concat(t)+(null==n?"":" [Expected=> ".concat(e," ").concat(n," ").concat(r," <=Actual]")))}(r,t,null,"!=")}function _t(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function $t(t){return{providers:t.providers||[],imports:t.imports||[]}}function Mc(t){return Yv(t,Cu)||Yv(t,Qv)}function Yv(t,r){return t.hasOwnProperty(r)?t[r]:null}function $v(t){return t&&(t.hasOwnProperty(Tc)||t.hasOwnProperty(ok))?t[Tc]:null}var Pc,Cu=Nt({"\u0275prov":Nt}),Tc=Nt({"\u0275inj":Nt}),Qv=Nt({ngInjectableDef:Nt}),ok=Nt({ngInjectorDef:Nt}),Pt=function(){return(Pt=Pt||{})[Pt.Default=0]="Default",Pt[Pt.Host=1]="Host",Pt[Pt.Self=2]="Self",Pt[Pt.SkipSelf=4]="SkipSelf",Pt[Pt.Optional=8]="Optional",Pt}();function sk(){return Pc}function Xi(t){var r=Pc;return Pc=t,r}function Zv(t,r,e){var n=Mc(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&Pt.Optional?null:void 0!==r?r:void bu(Bt(t),"Injector")}function Ki(t){return{toString:t}.toString()}var Kr=function(){return(Kr=Kr||{})[Kr.OnPush=0]="OnPush",Kr[Kr.Default=1]="Default",Kr}(),Yr=function(){return function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Yr||(Yr={})),Yr}(),uk="undefined"!=typeof globalThis&&globalThis,lk="undefined"!=typeof window&&window,ck="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,dk="undefined"!=typeof global&&global,ln=uk||dk||lk||ck,Ba={},fn=[],Au=Nt({"\u0275cmp":Nt}),Oc=Nt({"\u0275dir":Nt}),xc=Nt({"\u0275pipe":Nt}),Jv=Nt({"\u0275mod":Nt}),Si=Nt({"\u0275fac":Nt}),Qo=Nt({__NG_ELEMENT_ID__:Nt}),fk=0;function Yn(t){return Ki(function(){var e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Kr.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||fn,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Yr.Emulated,id:"c",styles:t.styles||fn,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,a=t.features,o=t.pipes;return n.id+=fk++,n.inputs=rp(t.inputs,e),n.outputs=rp(t.outputs),a&&a.forEach(function(s){return s(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(ep)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(tp)}:null,n})}function ep(t){return Jn(t)||function Yi(t){return t[Oc]||null}(t)}function tp(t){return function da(t){return t[xc]||null}(t)}var np={};function Qt(t){return Ki(function(){var r={type:t.type,bootstrap:t.bootstrap||fn,declarations:t.declarations||fn,imports:t.imports||fn,exports:t.exports||fn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(np[t.id]=t.type),r})}function rp(t,r){if(null==t)return Ba;var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n],a=i;Array.isArray(i)&&(a=i[1],i=i[0]),e[i]=n,r&&(r[i]=a)}return e}var ht=Yn;function gr(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Jn(t){return t[Au]||null}function xr(t,r){var e=t[Jv]||null;if(!e&&!0===r)throw new Error("Type ".concat(Bt(t)," does not have '\u0275mod' property."));return e}function ci(t){return Array.isArray(t)&&"object"==typeof t[1]}function Qr(t){return Array.isArray(t)&&!0===t[1]}function Lc(t){return 0!=(8&t.flags)}function Su(t){return 2==(2&t.flags)}function Fu(t){return 1==(1&t.flags)}function Zr(t){return null!==t.template}function _k(t){return 0!=(512&t[2])}function pa(t,r){return t.hasOwnProperty(Si)?t[Si]:null}var bk=function(){function t(r,e,n){f(this,t),this.previousValue=r,this.currentValue=e,this.firstChange=n}return v(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function _r(){return ap}function ap(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ak),Ck}function Ck(){var t=sp(this),r=null==t?void 0:t.current;if(r){var e=t.previous;if(e===Ba)t.previous=r;else for(var n in r)e[n]=r[n];t.current=null,this.ngOnChanges(r)}}function Ak(t,r,e,n){var i=sp(t)||function kk(t,r){return t[op]=r}(t,{previous:Ba,current:null}),a=i.current||(i.current={}),o=i.previous,s=this.declaredInputs[e],u=o[s];a[s]=new bk(u&&u.currentValue,r,o===Ba),t[n]=r}_r.ngInherit=!0;var op="__ngSimpleChanges__";function sp(t){return t[op]||null}var up="http://www.w3.org/2000/svg",Vc=void 0;function Sn(t){return!!t.listen}var cp={createRenderer:function(r,e){return function Hc(){return void 0!==Vc?Vc:"undefined"!=typeof document?document:void 0}()}};function Bn(t){for(;Array.isArray(t);)t=t[0];return t}function Mu(t,r){return Bn(r[t])}function Lr(t,r){return Bn(r[t.index])}function jc(t,r){return t.data[r]}function za(t,r){return t[r]}function kr(t,r){var e=r[t];return ci(e)?e:e[0]}function dp(t){return 4==(4&t[2])}function Uc(t){return 128==(128&t[2])}function $i(t,r){return null==r?null:t[r]}function fp(t){t[18]=0}function zc(t,r){t[5]+=r;for(var e=t,n=t[3];null!==n&&(1===r&&1===e[5]||-1===r&&0===e[5]);)n[5]+=r,e=n,n=n[3]}var Ft={lFrame:Dp(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function hp(){return Ft.bindingsEnabled}function We(){return Ft.lFrame.lView}function Zt(){return Ft.lFrame.tView}function tr(t){return Ft.lFrame.contextLView=t,t[8]}function Un(){for(var t=vp();null!==t&&64===t.type;)t=t.parent;return t}function vp(){return Ft.lFrame.currentTNode}function di(t,r){var e=Ft.lFrame;e.currentTNode=t,e.isParent=r}function Gc(){return Ft.lFrame.isParent}function Wc(){Ft.lFrame.isParent=!1}function Tu(){return Ft.isInCheckNoChangesMode}function Pu(t){Ft.isInCheckNoChangesMode=t}function lr(){var t=Ft.lFrame,r=t.bindingRootIndex;return-1===r&&(r=t.bindingRootIndex=t.tView.bindingStartIndex),r}function Ga(){return Ft.lFrame.bindingIndex++}function Mi(t){var r=Ft.lFrame,e=r.bindingIndex;return r.bindingIndex=r.bindingIndex+t,e}function Bk(t,r){var e=Ft.lFrame;e.bindingIndex=e.bindingRootIndex=t,qc(r)}function qc(t){Ft.lFrame.currentDirectiveIndex=t}function Xc(t){var r=Ft.lFrame.currentDirectiveIndex;return-1===r?null:t[r]}function mp(){return Ft.lFrame.currentQueryIndex}function Kc(t){Ft.lFrame.currentQueryIndex=t}function Hk(t){var r=t[1];return 2===r.type?r.declTNode:1===r.type?t[6]:null}function _p(t,r,e){if(e&Pt.SkipSelf){for(var n=r,i=t;!(null!==(n=n.parent)||e&Pt.Host||null===(n=Hk(i))||(i=i[15],10&n.type)););if(null===n)return!1;r=n,t=i}var a=Ft.lFrame=yp();return a.currentTNode=r,a.lView=t,!0}function Ou(t){var r=yp(),e=t[1];Ft.lFrame=r,r.currentTNode=e.firstChild,r.lView=t,r.tView=e,r.contextLView=t,r.bindingIndex=e.bindingStartIndex,r.inI18n=!1}function yp(){var t=Ft.lFrame,r=null===t?null:t.child;return null===r?Dp(t):r}function Dp(t){var r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=r),r}function bp(){var t=Ft.lFrame;return Ft.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Cp=bp;function xu(){var t=bp();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function jk(t){var r=Ft.lFrame.contextLView=function Uk(t,r){for(;t>0;)r=r[15],t--;return r}(t,Ft.lFrame.contextLView);return r[8]}function cr(){return Ft.lFrame.selectedIndex}function Qi(t){Ft.lFrame.selectedIndex=t}function Fn(){var t=Ft.lFrame;return jc(t.tView,t.selectedIndex)}function Ti(){Ft.lFrame.currentNamespace=up}function Pi(){!function Gk(){Ft.lFrame.currentNamespace=null}()}function Iu(t,r){for(var e=r.directiveStart,n=r.directiveEnd;e=n)break}else r[u]<0&&(t[18]+=65536),(s>11>16&&(3&t[2])===r){t[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}var ns=v(function t(r,e,n){f(this,t),this.factory=r,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n});function Nu(t,r,e){for(var n=Sn(t),i=0;ir){o=a-1;break}}}for(;a>16}(t),n=r;e>0;)n=n[15],e--;return n}var Zc=!0;function Vu(t){var r=Zc;return Zc=t,r}var eE=0;function is(t,r){var e=ed(t,r);if(-1!==e)return e;var n=r[1];n.firstCreatePass&&(t.injectorIndex=r.length,Jc(n.data,t),Jc(r,null),Jc(n.blueprint,null));var i=Hu(t,r),a=t.injectorIndex;if(wp(i))for(var o=Wa(i),s=qa(i,r),u=s[1].data,l=0;l<8;l++)r[a+l]=s[o+l]|u[o+l];return r[a+8]=i,a}function Jc(t,r){t.push(0,0,0,0,0,0,0,0,r)}function ed(t,r){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===r[t.injectorIndex+8]?-1:t.injectorIndex}function Hu(t,r){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var e=0,n=null,i=r;null!==i;){var a=i[1],o=a.type;if(null===(n=2===o?a.declTNode:1===o?i[6]:null))return-1;if(e++,i=i[15],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return-1}function ju(t,r,e){!function tE(t,r,e){var n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(Qo)&&(n=e[Qo]),null==n&&(n=e[Qo]=eE++);var i=255&n;r.data[t+(i>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:Pt.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==t){var a=aE(e);if("function"==typeof a){if(!_p(r,t,n))return n&Pt.Host?Mp(i,e,n):Tp(r,e,n,i);try{var o=a(n);if(null!=o||n&Pt.Optional)return o;bu(e)}finally{Cp()}}else if("number"==typeof a){var s=null,u=ed(t,r),l=-1,h=n&Pt.Host?r[16][6]:null;for((-1===u||n&Pt.SkipSelf)&&(-1!==(l=-1===u?Hu(t,r):r[u+8])&&Ip(n,!1)?(s=r[1],u=Wa(l),r=qa(l,r)):u=-1);-1!==u;){var y=r[1];if(xp(a,u,y.data)){var w=iE(u,r,e,s,n,h);if(w!==Op)return w}-1!==(l=r[u+8])&&Ip(n,r[1].data[u+8]===h)&&xp(a,u,r)?(s=y,u=Wa(l),r=qa(l,r)):u=-1}}}return Tp(r,e,n,i)}var Op={};function rE(){return new Xa(Un(),We())}function iE(t,r,e,n,i,a){var o=r[1],s=o.data[t+8],h=Uu(s,o,e,null==n?Su(s)&&Zc:n!=o&&0!=(3&s.type),i&Pt.Host&&a===s);return null!==h?as(r,o,h,s):Op}function Uu(t,r,e,n,i){for(var a=t.providerIndexes,o=r.data,s=1048575&a,u=t.directiveStart,h=a>>20,w=i?s+h:t.directiveEnd,K=n?s:s+h;K=u&&fe.type===e)return K}if(i){var Ee=o[u];if(Ee&&Zr(Ee)&&Ee.type===e)return u}return null}function as(t,r,e,n){var i=t[e],a=r.data;if(function Kk(t){return t instanceof ns}(i)){var o=i;o.resolving&&function ek(t,r){var e=r?". Dependency path: ".concat(r.join(" > ")," > ").concat(t):"";throw new Xt(-200,"Circular dependency in DI detected for ".concat(t).concat(e))}(ur(a[e]));var s=Vu(o.canSeeViewProviders);o.resolving=!0;var u=o.injectImpl?Xi(o.injectImpl):null;_p(t,n,Pt.Default);try{i=t[e]=o.factory(void 0,a,t,n),r.firstCreatePass&&e>=n.directiveStart&&function qk(t,r,e){var n=r.type.prototype,a=n.ngOnInit,o=n.ngDoCheck;if(n.ngOnChanges){var s=ap(r);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}a&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,a),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,a[e],r)}finally{null!==u&&Xi(u),Vu(s),o.resolving=!1,Cp()}}return i}function aE(t){if("string"==typeof t)return t.charCodeAt(0)||0;var r=t.hasOwnProperty(Qo)?t[Qo]:void 0;return"number"==typeof r?r>=0?255&r:rE:r}function xp(t,r,e){return!!(e[r+(t>>5)]&1<=t.length?t.push(e):t.splice(r,0,e)}function zu(t,r){return r>=t.length-1?t.pop():t.splice(r,1)[0]}function us(t,r){for(var e=[],n=0;n=0?t[1|n]=e:function lE(t,r,e,n){var i=t.length;if(i==r)t.push(e,n);else if(1===i)t.push(n,t[0]),t[0]=e;else{for(i--,t.push(t[i-1],t[i]);i>r;)t[i]=t[i-2],i--;t[r]=e,t[r+1]=n}}(t,n=~n,r,e),n}function id(t,r){var e=Za(t,r);if(e>=0)return t[1|e]}function Za(t,r){return function Vp(t,r,e){for(var n=0,i=t.length>>e;i!==n;){var a=n+(i-n>>1),o=t[a<r?i=a:n=a+1}return~(i<1&&void 0!==arguments[1]?arguments[1]:Pt.Default;if(void 0===cs){var e="";throw new Xt(203,e)}return null===cs?Zv(t,void 0,r):cs.get(t,r&Pt.Optional?null:void 0,r)}function He(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pt.Default;return(sk()||DE)(mt(t),r)}var sd=He;function ud(t){for(var r=[],e=0;e3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var i=Bt(r);if(Array.isArray(r))i=r.map(Bt).join(" -> ");else if("object"==typeof r){var a=[];for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):Bt(s)))}i="{".concat(a.join(", "),"}")}return"".concat(e).concat(n?"("+n+")":"","[").concat(i,"]: ").concat(t.replace(mE,"\n "))}("\n"+t.message,i,e,n),t.ngTokenPath=i,t[Wu]=null,t}var Ku,qu=ds(Qa("Inject",function(t){return{token:t}}),-1),Oi=ds(Qa("Optional"),8),Ja=ds(Qa("SkipSelf"),4);function to(t){var r;return(null===(r=function cd(){if(void 0===Ku&&(Ku=null,ln.trustedTypes))try{Ku=ln.trustedTypes.createPolicy("angular",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(t){}return Ku}())||void 0===r?void 0:r.createHTML(t))||t}var ma=function(){function t(r){f(this,t),this.changingThisBreaksApplicationSecurity=r}return v(t,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),t}(),IE=function(t){C(e,t);var r=T(e);function e(){return f(this,e),r.apply(this,arguments)}return v(e,[{key:"getTypeName",value:function(){return"HTML"}}]),e}(ma),RE=function(t){C(e,t);var r=T(e);function e(){return f(this,e),r.apply(this,arguments)}return v(e,[{key:"getTypeName",value:function(){return"Style"}}]),e}(ma),LE=function(t){C(e,t);var r=T(e);function e(){return f(this,e),r.apply(this,arguments)}return v(e,[{key:"getTypeName",value:function(){return"Script"}}]),e}(ma),NE=function(t){C(e,t);var r=T(e);function e(){return f(this,e),r.apply(this,arguments)}return v(e,[{key:"getTypeName",value:function(){return"URL"}}]),e}(ma),BE=function(t){C(e,t);var r=T(e);function e(){return f(this,e),r.apply(this,arguments)}return v(e,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),e}(ma);function wr(t){return t instanceof ma?t.changingThisBreaksApplicationSecurity:t}function hi(t,r){var e=Qp(t);if(null!=e&&e!==r){if("ResourceURL"===e&&"URL"===r)return!0;throw new Error("Required a safe ".concat(r,", got a ").concat(e," (see https://g.co/ng/security#xss)"))}return e===r}function Qp(t){return t instanceof ma&&t.getTypeName()||null}var GE=function(){function t(r){f(this,t),this.inertDocumentHelper=r}return v(t,[{key:"getInertBodyElement",value:function(e){e=""+e;try{var n=(new window.DOMParser).parseFromString(to(e),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(e):(n.removeChild(n.firstChild),n)}catch(i){return null}}}]),t}(),WE=function(){function t(r){if(f(this,t),this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);var n=this.inertDocument.createElement("body");e.appendChild(n)}}return v(t,[{key:"getInertBodyElement",value:function(e){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=to(e),n;var i=this.inertDocument.createElement("body");return i.innerHTML=to(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}},{key:"stripCustomNsAttrs",value:function(e){for(var n=e.attributes,i=n.length-1;0"),!0}},{key:"endElement",value:function(e){var n=e.nodeName.toLowerCase();fd.hasOwnProperty(n)&&!eg.hasOwnProperty(n)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(ig(e))}},{key:"checkClobberedElement",value:function(e,n){if(n&&(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return n}}]),t}(),nw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rw=/([^\#-~ |!])/g;function ig(t){return t.replace(/&/g,"&").replace(nw,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(rw,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}function ag(t,r){var e=null;try{$u=$u||function Zp(t){var r=new WE(t);return function qE(){try{return!!(new window.DOMParser).parseFromString(to(""),"text/html")}catch(t){return!1}}()?new GE(r):r}(t);var n=r?String(r):"";e=$u.getInertBodyElement(n);var i=5,a=n;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,n=a,a=e.innerHTML,e=$u.getInertBodyElement(n)}while(n!==a);return to((new tw).sanitizeChildren(pd(e)||e))}finally{if(e)for(var u=pd(e)||e;u.firstChild;)u.removeChild(u.firstChild)}}function pd(t){return"content"in t&&function iw(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var on=function(){return(on=on||{})[on.NONE=0]="NONE",on[on.HTML=1]="HTML",on[on.STYLE=2]="STYLE",on[on.SCRIPT=3]="SCRIPT",on[on.URL=4]="URL",on[on.RESOURCE_URL=5]="RESOURCE_URL",on}(),lg="__ngContext__";function rr(t,r){t[lg]=r}function md(t){var r=function gs(t){return t[lg]||null}(t);return r?Array.isArray(r)?r:r.lView:null}function yd(t){return t.ngOriginalError}function bw(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n0&&(t[e-1][4]=n[4]);var a=zu(t,10+r);!function Rw(t,r){_s(t,r,r[11],2,null,null),r[0]=null,r[6]=null}(n[1],n);var o=a[19];null!==o&&o.detachView(a[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function Ag(t,r){if(!(256&r[2])){var e=r[11];Sn(e)&&e.destroyNode&&_s(t,r,e,3,null,null),function Bw(t){var r=t[13];if(!r)return Sd(t[1],t);for(;r;){var e=null;if(ci(r))e=r[13];else{var n=r[10];n&&(e=n)}if(!e){for(;r&&!r[4]&&r!==t;)ci(r)&&Sd(r[1],r),r=r[3];null===r&&(r=t),ci(r)&&Sd(r[1],r),e=r&&r[4]}r=e}}(r)}}function Sd(t,r){if(!(256&r[2])){r[2]&=-129,r[2]|=256,function Uw(t,r){var e;if(null!=t&&null!=(e=t.destroyHooks))for(var n=0;n=0?n[i=l]():n[i=-l].unsubscribe(),a+=2}else{var h=n[i=e[a+1]];e[a].call(h)}if(null!==n){for(var y=i+1;ya?"":i[y+1].toLowerCase();var K=8&n?w:null;if(K&&-1!==Lg(K,l,0)||2&n&&l!==w){if(Jr(n))return!1;o=!0}}}}else{if(!o&&!Jr(n)&&!Jr(u))return!1;if(o&&Jr(u))continue;o=!1,n=u|1&n}}return Jr(n)||o}function Jr(t){return 0==(1&t)}function Qw(t,r,e,n){if(null===r)return-1;var i=0;if(n||!e){for(var a=!1;i-1)for(e++;e2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+s+'"':"")+"]"}else 8&n?i+="."+o:4&n&&(i+=" "+o);else""!==i&&!Jr(o)&&(r+=Hg(a,i),i=""),n=o,a=a||!Jr(n);e++}return""!==i&&(r+=Hg(a,i)),r}var Mt={};function et(t){jg(Zt(),We(),cr()+t,Tu())}function jg(t,r,e,n){if(!n)if(3==(3&r[2])){var a=t.preOrderCheckHooks;null!==a&&Ru(r,a,e)}else{var o=t.preOrderHooks;null!==o&&Lu(r,o,0,e)}Qi(e)}function el(t,r){return t<<17|r<<2}function ei(t){return t>>17&32767}function Od(t){return 2|t}function Ii(t){return(131068&t)>>2}function xd(t,r){return-131069&t|r<<2}function Id(t){return 1|t}function Zg(t,r){var e=t.contentQueries;if(null!==e)for(var n=0;n20&&jg(t,r,20,Tu()),e(n,i)}finally{Qi(a)}}function em(t,r,e){if(Lc(r))for(var i=r.directiveEnd,a=r.directiveStart;a2&&void 0!==arguments[2]?arguments[2]:Lr,n=r.localNames;if(null!==n)for(var i=r.index+1,a=0;a0;){var e=t[--r];if("number"==typeof e&&e<0)return e}return 0})(s)!=u&&s.push(u),s.push(n,i,o)}}function um(t,r){null!==t.hostBindings&&t.hostBindings(1,r)}function lm(t,r){r.flags|=2,(t.components||(t.components=[])).push(r.index)}function PS(t,r,e){if(e){if(r.exportAs)for(var n=0;n0&&Kd(e)}}function Kd(t){for(var r=Cd(t);null!==r;r=Ad(r))for(var e=10;e0&&Kd(n)}var o=t[1].components;if(null!==o)for(var s=0;s0&&Kd(u)}}function BS(t,r){var e=kr(r,t),n=e[1];(function VS(t,r){for(var e=r.length;e1&&void 0!==arguments[1]?arguments[1]:ls;if(n===ls){var i=new Error("NullInjectorError: No provider for ".concat(Bt(e),"!"));throw i.name="NullInjectorError",i}return n}}]),t}(),ef=new at("Set Injector scope."),bs={},qS={},tf=void 0;function Dm(){return void 0===tf&&(tf=new ym),tf}function bm(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i=Cm(t,r,e,n);return i._resolveInjectorDefTypes(),i}function Cm(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new XS(t,e,r||Dm(),n)}var XS=function(){function t(r,e,n){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;f(this,t),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];e&&fi(e,function(u){return i.processProvider(u,r,e)}),fi([r],function(u){return i.processInjectorType(u,[],o)}),this.records.set(Jd,so(void 0,this));var s=this.records.get(ef);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof r?null:Bt(r))}return v(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ls,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pt.Default;this.assertNotDestroyed();var a=Up(this),o=Xi(void 0);try{if(!(i&Pt.SkipSelf)){var s=this.records.get(e);if(void 0===s){var u=t1(e)&&Mc(e);s=u&&this.injectableDefInScope(u)?so(nf(e),bs):null,this.records.set(e,s)}if(null!=s)return this.hydrate(e,s)}var l=i&Pt.Self?Dm():this.parent;return l.get(e,n=i&Pt.Optional&&n===ls?null:n)}catch(y){if("NullInjectorError"===y.name){var h=y[Wu]=y[Wu]||[];if(h.unshift(Bt(e)),a)throw y;return CE(y,e,"R3InjectorError",this.source)}throw y}finally{Xi(o),Up(a)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(n){return e.get(n)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(i,a){return e.push(Bt(a))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Xt(205,"")}},{key:"processInjectorType",value:function(e,n,i){var a=this;if(!(e=mt(e)))return!1;var o=$v(e),s=null==o&&e.ngModule||void 0,u=void 0===s?e:s,y=-1!==i.indexOf(u);if(void 0!==s&&(o=$v(s)),null==o)return!1;if(null!=o.imports&&!y){var w;i.push(u);try{fi(o.imports,function(Ce){a.processInjectorType(Ce,n,i)&&(void 0===w&&(w=[]),w.push(Ce))})}finally{}if(void 0!==w)for(var K=function(ze){var Ye=w[ze],ut=Ye.ngModule,dt=Ye.providers;fi(dt,function(tn){return a.processProvider(tn,ut,dt||fn)})},fe=0;fe0)throw us(r,"?"),new Xt(204,"");var i=function ik(t){var r=t&&(t[Cu]||t[Qv]);if(r){var e=function ak(t){if(t.hasOwnProperty("name"))return t.name;var r=(""+t).match(/^function\s*([^\s(]+)/);return null===r?"":r[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(e,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(e,'" class.')),r}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Xt(204,"")}function Am(t,r,e){var n=void 0;if(uo(t)){var i=mt(t);return pa(i)||nf(i)}if(km(t))n=function(){return mt(t.useValue)};else if(function QS(t){return!(!t||!t.useFactory)}(t))n=function(){return t.useFactory.apply(t,P(ud(t.deps||[])))};else if(function $S(t){return!(!t||!t.useExisting)}(t))n=function(){return He(mt(t.useExisting))};else{var a=mt(t&&(t.useClass||t.provide));if(!function JS(t){return!!t.deps}(t))return pa(a)||nf(a);n=function(){return F(a,P(ud(t.deps)))}}return n}function so(t,r){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:r,multi:e?[]:void 0}}function km(t){return null!==t&&"object"==typeof t&&yE in t}function uo(t){return"function"==typeof t}function t1(t){return"function"==typeof t||"object"==typeof t&&t instanceof at}var dr=function(){var t=function(){function r(){f(this,r)}return v(r,null,[{key:"create",value:function(n,i){var a;if(Array.isArray(n))return bm({name:""},i,n,"");var o=null!==(a=n.name)&&void 0!==a?a:"";return bm({name:o},n.parent,n.providers,o)}}]),r}();return t.THROW_IF_NOT_FOUND=ls,t.NULL=new ym,t.\u0275prov=_t({token:t,providedIn:"any",factory:function(){return He(Jd)}}),t.__NG_ELEMENT_ID__=-1,t}();function h1(t,r){Iu(md(t)[1],Un())}function xt(t){for(var r=function Om(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0,n=[t];r;){var i=void 0;if(Zr(t))i=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new Xt(903,"");i=r.\u0275dir}if(i){if(e){n.push(i);var o=t;o.inputs=af(t.inputs),o.declaredInputs=af(t.declaredInputs),o.outputs=af(t.outputs);var s=i.hostBindings;s&&m1(t,s);var u=i.viewQuery,l=i.contentQueries;if(u&&p1(t,u),l&&g1(t,l),On(t.inputs,i.inputs),On(t.declaredInputs,i.declaredInputs),On(t.outputs,i.outputs),Zr(i)&&i.data.animation){var h=t.data;h.animation=(h.animation||[]).concat(i.data.animation)}}var y=i.features;if(y)for(var w=0;w=0;n--){var i=t[n];i.hostVars=r+=i.hostVars,i.hostAttrs=Bu(i.hostAttrs,e=Bu(e,i.hostAttrs))}}(n)}function af(t){return t===Ba?{}:t===fn?[]:t}function p1(t,r){var e=t.viewQuery;t.viewQuery=e?function(n,i){r(n,i),e(n,i)}:r}function g1(t,r){var e=t.contentQueries;t.contentQueries=e?function(n,i,a){r(n,i,a),e(n,i,a)}:r}function m1(t,r){var e=t.hostBindings;t.hostBindings=e?function(n,i){r(n,i),e(n,i)}:r}var ol=null;function lo(){if(!ol){var t=ln.Symbol;if(t&&t.iterator)ol=t.iterator;else for(var r=Object.getOwnPropertyNames(Map.prototype),e=0;e1&&void 0!==arguments[1]?arguments[1]:Pt.Default,e=We();if(null===e)return He(t,r);var n=Un();return Pp(n,e,mt(t),r)}function df(){throw new Error("invalid")}function ot(t,r,e){var n=We();return ir(n,Ga(),r)&&Fr(Zt(),Fn(),n,t,r,n[11],e,!1),ot}function ff(t,r,e,n,i){var o=i?"class":"style";_m(t,e,r.inputs[o],o,n)}function je(t,r,e,n){var i=We(),a=Zt(),o=20+t,s=i[11],u=i[o]=Ed(s,r,function Wk(){return Ft.lFrame.currentNamespace}()),l=a.firstCreatePass?function z1(t,r,e,n,i,a,o){var s=r.consts,l=io(r,t,2,i,$i(s,a));return qd(r,e,l,$i(s,o)),null!==l.attrs&&al(l,l.attrs,!1),null!==l.mergedAttrs&&al(l,l.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,l),l}(o,a,i,0,r,e,n):a.data[o];di(l,!0);var h=l.mergedAttrs;null!==h&&Nu(s,u,h);var y=l.classes;null!==y&&Pd(s,u,y);var w=l.styles;null!==w&&Rg(s,u,w),64!=(64&l.flags)&&Zu(a,i,u,l),0===function Pk(){return Ft.lFrame.elementDepthCount}()&&rr(u,i),function Ok(){Ft.lFrame.elementDepthCount++}(),Fu(l)&&(Gd(a,i,l),em(a,l,i)),null!==n&&Wd(i,l)}function Ue(){var t=Un();Gc()?Wc():di(t=t.parent,!1);var r=t;!function xk(){Ft.lFrame.elementDepthCount--}();var e=Zt();e.firstCreatePass&&(Iu(e,t),Lc(t)&&e.queries.elementEnd(t)),null!=r.classesWithoutHost&&function $k(t){return 0!=(16&t.flags)}(r)&&ff(e,r,We(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function Qk(t){return 0!=(32&t.flags)}(r)&&ff(e,r,We(),r.stylesWithoutHost,!1)}function en(t,r,e,n){je(t,r,e,n),Ue()}function ul(t,r,e){var n=We(),i=Zt(),a=t+20,o=i.firstCreatePass?function G1(t,r,e,n,i){var a=r.consts,o=$i(a,n),s=io(r,t,8,"ng-container",o);return null!==o&&al(s,o,!0),qd(r,e,s,$i(a,i)),null!==r.queries&&r.queries.elementStart(r,s),s}(a,i,n,r,e):i.data[a];di(o,!0);var s=n[a]=n[11].createComment("");Zu(i,n,s,o),rr(s,n),Fu(o)&&(Gd(i,n,o),em(i,o,n)),null!=e&&Wd(n,o)}function ll(){var t=Un(),r=Zt();Gc()?Wc():di(t=t.parent,!1),r.firstCreatePass&&(Iu(r,t),Lc(t)&&r.queries.elementEnd(t))}function Mr(){return We()}function cl(t){return!!t&&"function"==typeof t.then}function Jm(t){return!!t&&"function"==typeof t.subscribe}var e_=Jm;function wt(t,r,e,n){var i=We(),a=Zt(),o=Un();return t_(a,i,i[11],o,t,r,!!e,n),wt}function hf(t,r){var e=Un(),n=We(),i=Zt();return t_(i,n,gm(Xc(i.data),e,n),e,t,r,!1),hf}function t_(t,r,e,n,i,a,o,s){var u=Fu(n),h=t.firstCreatePass&&pm(t),y=r[8],w=vm(r),K=!0;if(3&n.type||s){var fe=Lr(n,r),Ee=s?s(fe):fe,Fe=w.length,Te=s?function(Gi){return s(Bn(Gi[n.index]))}:n.index;if(Sn(e)){var Ce=null;if(!s&&u&&(Ce=function q1(t,r,e,n){var i=t.cleanup;if(null!=i)for(var a=0;au?s[u]:null}"string"==typeof o&&(a+=2)}return null}(t,r,i,n.index)),null!==Ce)(Ce.__ngLastListenerFn__||Ce).__ngNextListenerFn__=a,Ce.__ngLastListenerFn__=a,K=!1;else{a=vf(n,r,y,a,!1);var Ye=e.listen(Ee,i,a);w.push(a,Ye),h&&h.push(i,Te,Fe,Fe+1)}}else a=vf(n,r,y,a,!0),Ee.addEventListener(i,a,o),w.push(a),h&&h.push(i,Te,Fe,o)}else a=vf(n,r,y,a,!1);var dt,ut=n.outputs;if(K&&null!==ut&&(dt=ut[i])){var tn=dt.length;if(tn)for(var cn=0;cn0&&void 0!==arguments[0]?arguments[0]:1;return jk(t)}function X1(t,r){for(var e=null,n=function Zw(t){var r=t.attrs;if(null!=r){var e=r.indexOf(5);if(0==(1&e))return r[e+1]}return null}(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2?arguments[2]:void 0,n=We(),i=Zt(),a=io(i,20+t,16,null,e||null);null===a.projection&&(a.projection=r),Wc(),64!=(64&a.flags)&&Ww(i,n,a)}function f_(t,r,e,n,i){for(var a=t[e+1],o=null===r,s=n?ei(a):Ii(a),u=!1;0!==s&&(!1===u||o);){var h=t[s+1];$1(t[s],r)&&(u=!0,t[s+1]=n?Id(h):Od(h)),s=n?ei(h):Ii(h)}u&&(t[e+1]=n?Od(a):Id(a))}function $1(t,r){return null===t||null==r||(Array.isArray(t)?t[1]:t)===r||!(!Array.isArray(t)||"string"!=typeof r)&&Za(t,r)>=0}var Gn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function h_(t){return t.substring(Gn.key,Gn.keyEnd)}function v_(t,r){var e=Gn.textEnd;return e===r?-1:(r=Gn.keyEnd=function eF(t,r,e){for(;r32;)r++;return r}(t,Gn.key=r,e),Co(t,r,e))}function Co(t,r,e){for(;r=0;e=v_(r,e))Er(t,h_(r),!0)}function ni(t,r,e,n){var i=We(),a=Zt(),o=Mi(2);a.firstUpdatePass&&D_(a,t,o,n),r!==Mt&&ir(i,o,r)&&C_(a,a.data[cr()],i,i[11],t,i[o+1]=function dF(t,r){return null==t||("string"==typeof r?t+=r:"object"==typeof t&&(t=Bt(wr(t)))),t}(r,e),n,o)}function y_(t,r){return r>=t.expandoStartIndex}function D_(t,r,e,n){var i=t.data;if(null===i[e+1]){var a=i[cr()],o=y_(t,e);k_(a,n)&&null===r&&!o&&(r=!1),r=function aF(t,r,e,n){var i=Xc(t),a=n?r.residualClasses:r.residualStyles;if(null===i)0===(n?r.classBindings:r.styleBindings)&&(e=ks(e=gf(null,t,r,e,n),r.attrs,n),a=null);else{var s=r.directiveStylingLast;if(-1===s||t[s]!==i)if(e=gf(i,t,r,e,n),null===a){var l=function oF(t,r,e){var n=e?r.classBindings:r.styleBindings;if(0!==Ii(n))return t[ei(n)]}(t,r,n);void 0!==l&&Array.isArray(l)&&function sF(t,r,e,n){t[ei(e?r.classBindings:r.styleBindings)]=n}(t,r,n,l=ks(l=gf(null,t,r,l[1],n),r.attrs,n))}else a=function uF(t,r,e){for(var n=void 0,i=r.directiveEnd,a=1+r.directiveStylingLast;a0)&&(l=!0):h=e,i)if(0!==u){var K=ei(t[s+1]);t[n+1]=el(K,s),0!==K&&(t[K+1]=xd(t[K+1],n)),t[s+1]=function aS(t,r){return 131071&t|r<<17}(t[s+1],n)}else t[n+1]=el(s,0),0!==s&&(t[s+1]=xd(t[s+1],n)),s=n;else t[n+1]=el(u,0),0===s?s=n:t[u+1]=xd(t[u+1],n),u=n;l&&(t[n+1]=Od(t[n+1])),f_(t,h,n,!0),f_(t,h,n,!1),function Y1(t,r,e,n,i){var a=i?t.residualClasses:t.residualStyles;null!=a&&"string"==typeof r&&Za(a,r)>=0&&(e[n+1]=Id(e[n+1]))}(r,h,t,n,a),o=el(s,u),a?r.classBindings=o:r.styleBindings=o}(i,a,r,e,o,n)}}function gf(t,r,e,n,i){var a=null,o=e.directiveEnd,s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){var u=t[i],l=Array.isArray(u),h=l?u[1]:u,y=null===h,w=e[i+1];w===Mt&&(w=y?fn:void 0);var K=y?id(w,n):h===n?w:void 0;if(l&&!dl(K)&&(K=id(u,n)),dl(K)&&(s=K,o))return s;var fe=t[i+1];i=o?ei(fe):Ii(fe)}if(null!==r){var Ee=a?r.residualClasses:r.residualStyles;null!=Ee&&(s=id(Ee,n))}return s}function dl(t){return void 0!==t}function k_(t,r){return 0!=(t.flags&(r?16:32))}function Kt(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=We(),n=Zt(),i=t+20,a=n.firstCreatePass?io(n,i,1,r,null):n.data[i],o=e[i]=kd(e[11],r);Zu(n,e,o,a),di(a,!1)}function Da(t){return Li("",t,""),Da}function Li(t,r,e){var n=We(),i=fo(n,t,r,e);return i!==Mt&&Ri(n,cr(),i),Li}function mf(t,r,e){!function ri(t,r,e,n){var i=Zt(),a=Mi(2);i.firstUpdatePass&&D_(i,null,a,n);var o=We();if(e!==Mt&&ir(o,a,e)){var s=i.data[cr()];if(k_(s,n)&&!y_(i,a)){var l=n?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(e=Xr(l,e||"")),ff(i,s,o,e,n)}else!function cF(t,r,e,n,i,a,o,s){i===Mt&&(i=fn);for(var u=0,l=0,h=0>20;if(uo(t)||!t.multi){var fe=new ns(l,i,we),Ee=Af(u,r,i?y:y+K,w);-1===Ee?(ju(is(h,s),o,u),Cf(o,t,r.length),r.push(u),h.directiveStart++,h.directiveEnd++,i&&(h.providerIndexes+=1048576),e.push(fe),s.push(fe)):(e[Ee]=fe,s[Ee]=fe)}else{var Fe=Af(u,r,y+K,w),Te=Af(u,r,y,y+K),ze=Te>=0&&e[Te];if(i&&!ze||!i&&!(Fe>=0&&e[Fe])){ju(is(h,s),o,u);var Ye=function MM(t,r,e,n,i){var a=new ns(t,e,we);return a.multi=[],a.index=r,a.componentProviders=0,vy(a,i,n&&!e),a}(i?FM:SM,e.length,i,n,l);!i&&ze&&(e[Te].providerFactory=Ye),Cf(o,t,r.length,0),r.push(u),h.directiveStart++,h.directiveEnd++,i&&(h.providerIndexes+=1048576),e.push(Ye),s.push(Ye)}else Cf(o,t,Fe>-1?Fe:Te,vy(e[i?Te:Fe],l,!i&&n));!i&&n&&ze&&e[Te].componentProviders++}}}function Cf(t,r,e,n){var i=uo(r),a=function ZS(t){return!!t.useClass}(r);if(i||a){var u=(a?mt(r.useClass):r).prototype.ngOnDestroy;if(u){var l=t.destroyHooks||(t.destroyHooks=[]);if(!i&&r.multi){var h=l.indexOf(e);-1===h?l.push(e,[n,u]):l[h+1].push(n,u)}else l.push(e,u)}}}function vy(t,r,e){return e&&t.componentProviders++,t.multi.push(r)-1}function Af(t,r,e,n){for(var i=e;i1&&void 0!==arguments[1]?arguments[1]:[];return function(e){e.providersResolver=function(n,i){return wM(n,i?i(t):t,r)}}}var TM=v(function t(){f(this,t)}),py=v(function t(){f(this,t)}),OM=function(){function t(){f(this,t)}return v(t,[{key:"resolveComponentFactory",value:function(e){throw function PM(t){var r=Error("No component factory found for ".concat(Bt(t),". Did you add it to @NgModule.entryComponents?"));return r.ngComponent=t,r}(e)}}]),t}(),wo=function(){var t=v(function r(){f(this,r)});return t.NULL=new OM,t}();function xM(){return So(Un(),We())}function So(t,r){return new rn(Lr(t,r))}var rn=function(){var t=v(function r(e){f(this,r),this.nativeElement=e});return t.__NG_ELEMENT_ID__=xM,t}();function IM(t){return t instanceof rn?t.nativeElement:t}var Ts=v(function t(){f(this,t)}),Ca=function(){var t=v(function r(){f(this,r)});return t.__NG_ELEMENT_ID__=function(){return function LM(){var t=We(),e=kr(Un().index,t);return function RM(t){return t[11]}(ci(e)?e:t)}()},t}(),NM=function(){var t=v(function r(){f(this,r)});return t.\u0275prov=_t({token:t,providedIn:"root",factory:function(){return null}}),t}(),Fo=v(function t(r){f(this,t),this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}),BM=new Fo("13.1.3"),Ef={};function ml(t,r,e,n){for(var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==e;){var a=r[e.index];if(null!==a&&n.push(Bn(a)),Qr(a))for(var o=10;o-1&&(wd(e,i),zu(n,i))}this._attachedToViewContainer=!1}Ag(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){im(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Yd(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Qd(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function jS(t,r,e){Pu(!0);try{Qd(t,r,e)}finally{Pu(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Xt(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function Nw(t,r){_s(t,r,r[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Xt(902,"");this._appRef=e}}]),t}(),VM=function(t){C(e,t);var r=T(e);function e(n){var i;return f(this,e),(i=r.call(this,n))._view=n,i}return v(e,[{key:"detectChanges",value:function(){hm(this._view)}},{key:"checkNoChanges",value:function(){!function US(t){Pu(!0);try{hm(t)}finally{Pu(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),e}(Ps),my=function(t){C(e,t);var r=T(e);function e(n){var i;return f(this,e),(i=r.call(this)).ngModule=n,i}return v(e,[{key:"resolveComponentFactory",value:function(i){var a=Jn(i);return new wf(a,this.ngModule)}}]),e}(wo);function _y(t){var r=[];for(var e in t)t.hasOwnProperty(e)&&r.push({propName:t[e],templateName:e});return r}var jM=new at("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return vg}}),wf=function(t){C(e,t);var r=T(e);function e(n,i){var a;return f(this,e),(a=r.call(this)).componentDef=n,a.ngModule=i,a.componentType=n.type,a.selector=function rS(t){return t.map(nS).join(",")}(n.selectors),a.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],a.isBoundToModule=!!i,a}return v(e,[{key:"inputs",get:function(){return _y(this.componentDef.inputs)}},{key:"outputs",get:function(){return _y(this.componentDef.outputs)}},{key:"create",value:function(i,a,o,s){var Ce,ze,u=(s=s||this.ngModule)?function UM(t,r){return{get:function(n,i,a){var o=t.get(n,Ef,a);return o!==Ef||i===Ef?o:r.get(n,i,a)}}}(i,s.injector):i,l=u.get(Ts,cp),h=u.get(NM,null),y=l.createRenderer(null,this.componentDef),w=this.componentDef.selectors[0][0]||"div",K=o?function rm(t,r,e){if(Sn(t))return t.selectRootElement(r,e===Yr.ShadowDom);var i="string"==typeof r?t.querySelector(r):r;return i.textContent="",i}(y,o,this.componentDef.encapsulation):Ed(l.createRenderer(null,this.componentDef),w,function HM(t){var r=t.toLowerCase();return"svg"===r?up:"math"===r?"http://www.w3.org/1998/MathML/":null}(w)),fe=this.componentDef.onPush?576:528,Ee=function Pm(t,r){return{components:[],scheduler:t||vg,clean:zS,playerHandler:r||null,flags:0}}(),Fe=rl(0,null,null,1,0,null,null,null,null,null),Te=ys(null,Fe,Ee,fe,null,null,l,y,h,u);Ou(Te);try{var Ye=function Mm(t,r,e,n,i,a){var o=e[1];e[20]=t;var u=io(o,20,2,"#host",null),l=u.mergedAttrs=r.hostAttrs;null!==l&&(al(u,l,!0),null!==t&&(Nu(i,t,l),null!==u.classes&&Pd(i,t,u.classes),null!==u.styles&&Rg(i,t,u.styles)));var h=n.createRenderer(t,r),y=ys(e,tm(r),null,r.onPush?64:16,e[20],u,n,h,a||null,null);return o.firstCreatePass&&(ju(is(u,e),o,r.type),lm(o,u),cm(u,e.length,1)),il(e,y),e[20]=y}(K,this.componentDef,Te,l,y);if(K)if(o)Nu(y,K,["ng-version",BM.full]);else{var ut=function iS(t){for(var r=[],e=[],n=1,i=2;n0&&Pd(y,K,tn.join(" "))}if(ze=jc(Fe,20),void 0!==a)for(var cn=ze.projection=[],Tn=0;Tn1&&void 0!==arguments[1]?arguments[1]:dr.THROW_IF_NOT_FOUND,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pt.Default;return i===dr||i===Mo||i===Jd?this:this._r3Injector.get(i,a,o)}},{key:"destroy",value:function(){var i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(function(a){return a()}),this.destroyCbs=null}},{key:"onDestroy",value:function(i){this.destroyCbs.push(i)}}]),e}(Mo),Sf=function(t){C(e,t);var r=T(e);function e(n){var i;return f(this,e),(i=r.call(this)).moduleType=n,null!==xr(n)&&function XM(t){var r=new Set;!function e(n){var i=xr(n,!0),a=i.id;null!==a&&(function yy(t,r,e){if(r&&r!==e)throw new Error("Duplicate module registered for ".concat(t," - ").concat(Bt(r)," vs ").concat(Bt(r.name)))}(a,To.get(a),n),To.set(a,n));var l,u=ne(pi(i.imports));try{for(u.s();!(l=u.n()).done;){var h=l.value;r.has(h)||(r.add(h),e(h))}}catch(y){u.e(y)}finally{u.f()}}(t)}(n),i}return v(e,[{key:"create",value:function(i){return new by(this.moduleType,i)}}]),e}(qM);function Ay(t,r,e,n,i,a){var o=r+e;return ir(t,o,i)?function mi(t,r,e){return t[r]=e}(t,o+1,a?n.call(a,i):n(i)):function Os(t,r){var e=t[r];return e===Mt?void 0:e}(t,o+1)}function Ff(t,r){var n,e=Zt(),i=t+20;e.firstCreatePass?(n=function rT(t,r){if(r)for(var e=r.length-1;e>=0;e--){var n=r[e];if(t===n.name)return n}}(r,e.pipeRegistry),e.data[i]=n,n.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(i,n.onDestroy)):n=e.data[i];var a=n.factory||(n.factory=pa(n.type)),o=Xi(we);try{var s=Vu(!1),u=a();return Vu(s),function E1(t,r,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),r[e]=n}(e,We(),i,u),u}finally{Xi(o)}}function Mf(t,r,e){var n=t+20,i=We(),a=za(i,n);return function xs(t,r){return t[1].data[r].pure}(i,n)?Ay(i,lr(),r,a.transform,e,a):a.transform(e)}var uT=function(t){C(e,t);var r=T(e);function e(){var n,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return f(this,e),(n=r.call(this)).__isAsync=i,n}return v(e,[{key:"emit",value:function(i){M(p(e.prototype),"next",this).call(this,i)}},{key:"subscribe",value:function(i,a,o){var s,u,l,h=i,y=a||function(){return null},w=o;if(i&&"object"==typeof i){var K=i;h=null===(s=K.next)||void 0===s?void 0:s.bind(K),y=null===(u=K.error)||void 0===u?void 0:u.bind(K),w=null===(l=K.complete)||void 0===l?void 0:l.bind(K)}this.__isAsync&&(y=Tf(y),h&&(h=Tf(h)),w&&(w=Tf(w)));var fe=M(p(e.prototype),"subscribe",this).call(this,{next:h,error:y,complete:w});return i instanceof N&&i.add(fe),fe}}]),e}(Se);function Tf(t){return function(r){setTimeout(t,void 0,r)}}var It=uT;function lT(){return this._results[lo()]()}var _l=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f(this,t),this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var e=lo(),n=t.prototype;n[e]||(n[e]=lT)}return v(t,[{key:"changes",get:function(){return this._changes||(this._changes=new It)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,n){return this._results.reduce(e,n)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,n){var i=this;i.dirty=!1;var a=Nr(e);(this._changesDetected=!function sE(t,r,e){if(t.length!==r.length)return!1;for(var n=0;n0;)this.remove(this.length-1)}},{key:"get",value:function(i){var a=My(this._lContainer);return null!==a&&a[i]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(i,a,o){var s=i.createEmbeddedView(a||{});return this.insert(s,o),s}},{key:"createComponent",value:function(i,a,o,s,u){var h,l=i&&!function ss(t){return"function"==typeof t}(i);if(l)h=a;else{var y=a||{};h=y.index,o=y.injector,s=y.projectableNodes,u=y.ngModuleRef}var w=l?i:new wf(Jn(i)),K=o||this.parentInjector;if(!u&&null==w.ngModule&&K){var fe=K.get(Mo,null);fe&&(u=fe)}var Ee=w.create(K,s,void 0,u);return this.insert(Ee.hostView,h),Ee}},{key:"insert",value:function(i,a){var o=i._lView,s=o[1];if(function Tk(t){return Qr(t[3])}(o)){var u=this.indexOf(i);if(-1!==u)this.detach(u);else{var l=o[3],h=new Fy(l,l[6],l[3]);h.detach(h.indexOf(i))}}var y=this._adjustIndex(a),w=this._lContainer;!function Vw(t,r,e,n){var i=10+n,a=e.length;n>0&&(e[i-1][4]=r),n1&&void 0!==arguments[1]?arguments[1]:0;return null==i?this.length+a:i}}]),e}(jr);function My(t){return t[8]}function Pf(t){return t[8]||(t[8]=[])}function Ty(t,r){var e,n=r[t.index];if(Qr(n))e=n;else{var i;if(8&t.type)i=Bn(n);else{var a=r[11];i=a.createComment("");var o=Lr(t,r);_a(a,Qu(a,o),i,function Gw(t,r){return Sn(t)?t.nextSibling(r):r.nextSibling}(a,o),!1)}r[t.index]=e=fm(n,r,i,t),il(r,e)}return new Fy(e,t,r)}var mT=function(){function t(r){f(this,t),this.queryList=r,this.matches=null}return v(t,[{key:"clone",value:function(){return new t(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),t}(),_T=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];f(this,t),this.queries=r}return v(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var i=null!==e.contentQueries?e.contentQueries[0]:n.length,a=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;f(this,t),this.predicate=r,this.flags=e,this.read=n}),yT=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];f(this,t),this.queries=r}return v(t,[{key:"elementStart",value:function(e,n){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:-1;f(this,t),this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}return v(t,[{key:"elementStart",value:function(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,n){this.elementStart(e,n)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,i=e.parent;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,n){var i=this.metadata.predicate;if(Array.isArray(i))for(var a=0;a0)n.push(o[s/2]);else{for(var l=a[s+1],h=r[-u],y=10;y0&&(s=setTimeout(function(){o._callbacks=o._callbacks.filter(function(u){return u.timeoutId!==s}),n(o._didWork,o.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:a})}},{key:"whenStable",value:function(n,i,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,a),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,i,a){return[]}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(Gt))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t}(),r0=function(){var t=function(){function r(){f(this,r),this._applications=new Map,Gf.addToWindow(this)}return v(r,[{key:"registerApplication",value:function(n,i){this._applications.set(n,i)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(n){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Gf.findTestabilityInTree(this,n,i)}}]),r}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t}(),nP=function(){function t(){f(this,t)}return v(t,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,n,i){return null}}]),t}(),Gf=new nP;function iP(t,r,e){var n=new Sf(e);return Promise.resolve(n)}var a0=new at("AllowMultipleToken");function oP(t){if(ii&&!ii.destroyed&&!ii.injector.get(a0,!1))throw new Xt(400,"");ii=t.get(u0);var e=t.get(Zy,null);return e&&e.forEach(function(n){return n()}),ii}function o0(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(r),i=new at(n);return function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=s0();if(!o||o.injector.get(a0,!1))if(t)t(e.concat(a).concat({provide:i,useValue:!0}));else{var s=e.concat(a).concat({provide:i,useValue:!0},{provide:ef,useValue:"platform"});oP(dr.create({providers:s,name:n}))}return sP()}}function sP(t){var r=s0();if(!r)throw new Xt(401,"");return r}function s0(){return ii&&!ii.destroyed?ii:null}var u0=function(){var t=function(){function r(e){f(this,r),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return v(r,[{key:"bootstrapModuleFactory",value:function(n,i){var a=this,l=function uP(t,r){return"noop"===t?new tP:("zone.js"===t?void 0:t)||new Gt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),h=[{provide:Gt,useValue:l}];return l.run(function(){var y=dr.create({providers:h,parent:a.injector,name:n.moduleType.name}),w=n.create(y),K=w.injector.get(xi,null);if(!K)throw new Xt(402,"");return l.runOutsideAngular(function(){var Ee=l.onError.subscribe({next:function(Te){K.handleError(Te)}});w.onDestroy(function(){Wf(a._modules,w),Ee.unsubscribe()})}),function lP(t,r,e){try{var n=e();return cl(n)?n.catch(function(i){throw r.runOutsideAngular(function(){return t.handleError(i)}),i}):n}catch(i){throw r.runOutsideAngular(function(){return t.handleError(i)}),i}}(K,l,function(){var Ee=w.injector.get(Oo);return Ee.runInitializers(),Ee.donePromise.then(function(){return function RF(t){Cr(t,"Expected localeId to be defined"),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}(w.injector.get(Ni,fl)||fl),a._moduleDoBootstrap(w),w})})})}},{key:"bootstrapModule",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=l0({},a);return iP(0,0,n).then(function(s){return i.bootstrapModuleFactory(s,o)})}},{key:"_moduleDoBootstrap",value:function(n){var i=n.injector.get(Ls);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(o){return i.bootstrap(o)});else{if(!n.instance.ngDoBootstrap)throw new Xt(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Xt(404,"");this._modules.slice().forEach(function(i){return i.destroy()}),this._destroyListeners.forEach(function(i){return i()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(dr))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t}();function l0(t,r){return Array.isArray(r)?r.reduce(l0,t):Object.assign(Object.assign({},t),r)}var Ls=function(){var t=function(){function r(e,n,i,a,o){var s=this;f(this,r),this._zone=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=a,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new ve(function(h){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){h.next(s._stable),h.complete()})}),l=new ve(function(h){var y;s._zone.runOutsideAngular(function(){y=s._zone.onStable.subscribe(function(){Gt.assertNotInAngularZone(),Hf(function(){!s._stable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks&&(s._stable=!0,h.next(!0))})})});var w=s._zone.onUnstable.subscribe(function(){Gt.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){h.next(!1)}))});return function(){y.unsubscribe(),w.unsubscribe()}});this.isStable=nt(u,l.pipe(bn()))}return v(r,[{key:"bootstrap",value:function(n,i){var s,a=this;if(!this._initStatus.done)throw new Xt(405,"");s=n instanceof py?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(s.componentType);var u=function aP(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Mo),h=s.create(dr.NULL,[],i||s.selector,u),y=h.location.nativeElement,w=h.injector.get(zf,null),K=w&&h.injector.get(r0);return w&&K&&K.registerApplication(y,w),h.onDestroy(function(){a.detachView(h.hostView),Wf(a.components,h),K&&K.unregisterApplication(y)}),this._loadComponent(h),h}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new Xt(101,"");try{this._runningTick=!0;var o,a=ne(this._views);try{for(a.s();!(o=a.n()).done;)o.value.detectChanges()}catch(y){a.e(y)}finally{a.f()}}catch(y){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(y)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var i=n;this._views.push(i),i.attachToAppRef(this)}},{key:"detachView",value:function(n){var i=n;Wf(this._views,i),i.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(qT,[]).concat(this._bootstrapListeners).forEach(function(a){return a(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(Gt),He(dr),He(xi),He(wo),He(Oo))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t}();function Wf(t,r){var e=t.indexOf(r);e>-1&&t.splice(e,1)}var Bi=function(){var t=v(function r(){f(this,r)});return t.__NG_ELEMENT_ID__=fP,t}();function fP(t){return function hP(t,r,e){if(Su(t)&&!e){var n=kr(t.index,r);return new Ps(n,n)}return 47&t.type?new Ps(r[16],r):null}(Un(),We(),16==(16&t))}var g0=function(){function t(){f(this,t)}return v(t,[{key:"supports",value:function(e){return Cs(e)}},{key:"create",value:function(e){return new mP(e)}}]),t}(),gP=function(r,e){return e},mP=function(){function t(r){f(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=r||gP}return v(t,[{key:"forEachItem",value:function(e){var n;for(n=this._itHead;null!==n;n=n._next)e(n)}},{key:"forEachOperation",value:function(e){for(var n=this._itHead,i=this._removalsHead,a=0,o=null;n||i;){var s=!i||n&&n.currentIndex<_0(i,a,o)?n:i,u=_0(s,a,o),l=s.currentIndex;if(s===i)a--,i=i._nextRemoved;else if(n=n._next,null==s.previousIndex)a++;else{o||(o=[]);var h=u-a,y=l-a;if(h!=y){for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(a)}},{key:"getState",value:function(){return this._history.state}}]),n}(Bs);return t.\u0275fac=function(e){return new(e||t)(He(jt))},t.\u0275prov=_t({token:t,factory:function(){return function VP(){return new C0(He(jt))}()},providedIn:"platform"}),t}();function A0(){return!!window.history.pushState}function k0(t,r){if(0==t.length)return r;if(0==r.length)return t;var e=0;return t.endsWith("/")&&e++,r.startsWith("/")&&e++,2==e?t+r.substring(1):1==e?t+r:t+"/"+r}function E0(t){var r=t.match(/#|\?|$/),e=r&&r.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function ka(t){return t&&"?"!==t[0]?"?"+t:t}var Qf=function(){var t=function(){function r(){f(this,r)}return v(r,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),r}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:function(){return function HP(t){var r=He(jt).location;return new UP(He(Bs),r&&r.origin||"")}()},providedIn:"root"}),t}(),jP=new at("appBaseHref"),UP=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a){var o;if(f(this,n),(o=e.call(this))._platformLocation=i,o._removeListenerFns=[],null==a&&(a=o._platformLocation.getBaseHrefFromDOM()),null==a)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return o._baseHref=a,o}return v(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(a){return k0(this._baseHref,a)}},{key:"path",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this._platformLocation.pathname+ka(this._platformLocation.search),s=this._platformLocation.hash;return s&&a?"".concat(o).concat(s):o}},{key:"pushState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+ka(u));this._platformLocation.pushState(a,o,l)}},{key:"replaceState",value:function(a,o,s,u){var l=this.prepareExternalUrl(s+ka(u));this._platformLocation.replaceState(a,o,l)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),n}(Qf);return t.\u0275fac=function(e){return new(e||t)(He(Bs),He(jP,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t}(),w0=function(){var t=function(){function r(e,n){var i=this;f(this,r),this._subject=new It,this._urlChangeListeners=[],this._platformStrategy=e;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=E0(S0(a)),this._platformStrategy.onPopState(function(o){i._subject.emit({url:i.path(!0),pop:!0,state:o.state,type:o.type})})}return v(r,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+ka(i))}},{key:"normalize",value:function(n){return r.stripTrailingSlash(function GP(t,r){return t&&r.startsWith(t)?r.substring(t.length):r}(this._baseHref,S0(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ka(i)),a)}},{key:"replaceState",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ka(i)),a)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var i,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(a=(i=this._platformStrategy).historyGo)||void 0===a||a.call(i,n)}},{key:"onUrlChange",value:function(n){var i=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(a){i._notifyUrlChangeListeners(a.url,a.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(a){return a(n,i)})}},{key:"subscribe",value:function(n,i,a){return this._subject.subscribe({next:n,error:i,complete:a})}}]),r}();return t.normalizeQueryParams=ka,t.joinWithSlash=k0,t.stripTrailingSlash=E0,t.\u0275fac=function(e){return new(e||t)(He(Qf),He(Bs))},t.\u0275prov=_t({token:t,factory:function(){return function zP(){return new w0(He(Qf),He(Bs))}()},providedIn:"root"}),t}();function S0(t){return t.replace(/\/index.html$/,"")}var Vn=function(){return(Vn=Vn||{})[Vn.Zero=0]="Zero",Vn[Vn.One=1]="One",Vn[Vn.Two=2]="Two",Vn[Vn.Few=3]="Few",Vn[Vn.Many=4]="Many",Vn[Vn.Other=5]="Other",Vn}(),QP=function U_(t){return function fr(t){var r=function PF(t){return t.toLowerCase().replace(/_/g,"-")}(t),e=z_(r);if(e)return e;var n=r.split("-")[0];if(e=z_(n))return e;if("en"===n)return TF;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}(t)[tt.PluralCase]},Il=v(function t(){f(this,t)}),wO=function(){var t=function(r){C(n,r);var e=T(n);function n(i){var a;return f(this,n),(a=e.call(this)).locale=i,a}return v(n,[{key:"getPluralCategory",value:function(a,o){switch(QP(o||this.locale)(a)){case Vn.Zero:return"zero";case Vn.One:return"one";case Vn.Two:return"two";case Vn.Few:return"few";case Vn.Many:return"many";default:return"other"}}}]),n}(Il);return t.\u0275fac=function(e){return new(e||t)(He(Ni))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t}(),oh=function(){var t=function(){function r(e,n,i,a){f(this,r),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=i,this._renderer=a,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return v(r,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(Cs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var i=this._keyValueDiffer.diff(this._rawClass);i&&this._applyKeyValueChanges(i)}}},{key:"_applyKeyValueChanges",value:function(n){var i=this;n.forEachAddedItem(function(a){return i._toggleClass(a.key,a.currentValue)}),n.forEachChangedItem(function(a){return i._toggleClass(a.key,a.currentValue)}),n.forEachRemovedItem(function(a){a.previousValue&&i._toggleClass(a.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var i=this;n.forEachAddedItem(function(a){if("string"!=typeof a.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Bt(a.item)));i._toggleClass(a.item,!0)}),n.forEachRemovedItem(function(a){return i._toggleClass(a.item,!1)})}},{key:"_applyClasses",value:function(n){var i=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return i._toggleClass(a,!0)}):Object.keys(n).forEach(function(a){return i._toggleClass(a,!!n[a])}))}},{key:"_removeClasses",value:function(n){var i=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return i._toggleClass(a,!1)}):Object.keys(n).forEach(function(a){return i._toggleClass(a,!1)}))}},{key:"_toggleClass",value:function(n,i){var a=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(o){i?a._renderer.addClass(a._ngEl.nativeElement,o):a._renderer.removeClass(a._ngEl.nativeElement,o)})}}]),r}();return t.\u0275fac=function(e){return new(e||t)(we(Ns),we(xo),we(rn),we(Ca))},t.\u0275dir=ht({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),MO=function(){function t(r,e,n,i){f(this,t),this.$implicit=r,this.ngForOf=e,this.index=n,this.count=i}return v(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),L0=function(){var t=function(){function r(e,n,i){f(this,r),this._viewContainer=e,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return v(r,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){var i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}},{key:"_applyChanges",value:function(n){var i=this,a=this._viewContainer;n.forEachOperation(function(h,y,w){if(null==h.previousIndex)a.createEmbeddedView(i._template,new MO(h.item,i._ngForOf,-1,-1),null===w?void 0:w);else if(null==w)a.remove(null===y?void 0:y);else if(null!==y){var K=a.get(y);a.move(K,w),N0(K,h)}});for(var o=0,s=a.length;o1&&void 0!==arguments[1])||arguments[1],o=e.findTestabilityInTree(i,a);if(null==o)throw new Error("Could not find testability for element.");return o},ln.getAllAngularTestabilities=function(){return e.getAllTestabilities()},ln.getAllAngularRootElements=function(){return e.getAllRootElements()},ln.frameworkStabilizers||(ln.frameworkStabilizers=[]),ln.frameworkStabilizers.push(function(a){var o=ln.getAllAngularTestabilities(),s=o.length,u=!1,l=function(y){u=u||y,0==--s&&a(u)};o.forEach(function(h){h.whenStable(l)})})}},{key:"findTestabilityInTree",value:function(e,n,i){if(null==n)return null;var a=e.getTestability(n);return null!=a?a:i?bi().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}],[{key:"init",value:function(){!function rP(t){Gf=t}(new t)}}]),t}(),cx=function(){var t=function(){function r(){f(this,r)}return v(r,[{key:"build",value:function(){return new XMLHttpRequest}}]),r}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t}(),Ll=new at("EventManagerPlugins"),Nl=function(){var t=function(){function r(e,n){var i=this;f(this,r),this._zone=n,this._eventNameToPlugin=new Map,e.forEach(function(a){return a.manager=i}),this._plugins=e.slice().reverse()}return v(r,[{key:"addEventListener",value:function(n,i,a){return this._findPluginFor(i).addEventListener(n,i,a)}},{key:"addGlobalEventListener",value:function(n,i,a){return this._findPluginFor(i).addGlobalEventListener(n,i,a)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var i=this._eventNameToPlugin.get(n);if(i)return i;for(var a=this._plugins,o=0;o-1&&(o.splice(w,1),l+=y+".")}),l+=u,0!=o.length||0===u.length)return null;var h={};return h.domEventName=s,h.fullKey=l,h}},{key:"getEventFullKey",value:function(a){var o="",s=function Ax(t){var r=t.key;if(null==r){if(null==(r=t.keyIdentifier))return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===t.location&&tD.hasOwnProperty(r)&&(r=tD[r]))}return Dx[r]||r}(a);return" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),eD.forEach(function(u){u!=s&&(0,bx[u])(a)&&(o+=u+".")}),o+=s}},{key:"eventCallback",value:function(a,o,s){return function(u){n.getEventFullKey(u)===a&&s.runGuarded(function(){return o(u)})}}},{key:"_normalizeKey",value:function(a){return"esc"===a?"escape":a}}]),n}(X0);return t.\u0275fac=function(e){return new(e||t)(He(jt))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t}(),Sx=[{provide:Al,useValue:G0},{provide:Zy,useValue:function kx(){ix.makeCurrent(),lx.init()},multi:!0},{provide:jt,useFactory:function wx(){return function wk(t){Vc=t}(document),document},deps:[]}],Fx=o0(SP,"browser",Sx),Mx=[{provide:ef,useValue:"root"},{provide:xi,useFactory:function Ex(){return new xi},deps:[]},{provide:Ll,useClass:_x,multi:!0,deps:[jt,Gt,Al]},{provide:Ll,useClass:Cx,multi:!0,deps:[jt]},{provide:Vl,useClass:Vl,deps:[Nl,Gs,Rs]},{provide:Ts,useExisting:Vl},{provide:K0,useExisting:Gs},{provide:Gs,useClass:Gs,deps:[jt]},{provide:zf,useClass:zf,deps:[Gt]},{provide:Nl,useClass:Nl,deps:[Ll,Gt]},{provide:W0,useClass:cx,deps:[]}],nD=function(){var t=function(){function r(e){if(f(this,r),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return v(r,null,[{key:"withServerTransition",value:function(n){return{ngModule:r,providers:[{provide:Rs,useValue:n.appId},{provide:q0,useExisting:Rs},ux]}}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(t,12))},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({providers:Mx,imports:[Io,IP]}),t}();"undefined"!=typeof window&&window;var ph=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:function(e){return e?new(e||t):He(aD)},providedIn:"root"}),t}(),aD=function(){var t=function(r){C(n,r);var e=T(n);function n(i){var a;return f(this,n),(a=e.call(this))._doc=i,a}return v(n,[{key:"sanitize",value:function(a,o){if(null==o)return null;switch(a){case on.NONE:return o;case on.HTML:return hi(o,"HTML")?wr(o):ag(this._doc,String(o)).toString();case on.STYLE:return hi(o,"Style")?wr(o):o;case on.SCRIPT:if(hi(o,"Script"))return wr(o);throw new Error("unsafe value used in a script context");case on.URL:return Qp(o),hi(o,"URL")?wr(o):hs(String(o));case on.RESOURCE_URL:if(hi(o,"ResourceURL"))return wr(o);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(a," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(a){return function VE(t){return new IE(t)}(a)}},{key:"bypassSecurityTrustStyle",value:function(a){return function HE(t){return new RE(t)}(a)}},{key:"bypassSecurityTrustScript",value:function(a){return function jE(t){return new LE(t)}(a)}},{key:"bypassSecurityTrustUrl",value:function(a){return function UE(t){return new NE(t)}(a)}},{key:"bypassSecurityTrustResourceUrl",value:function(a){return function zE(t){return new BE(t)}(a)}}]),n}(ph);return t.\u0275fac=function(e){return new(e||t)(He(jt))},t.\u0275prov=_t({token:t,factory:function(e){var n;return n=e?new e:function Nx(t){return new aD(t.get(jt))}(He(dr)),n},providedIn:"root"}),t}();function oD(){for(var t=arguments.length,r=new Array(t),e=0;et?{max:{max:t,actual:r.value}}:null}}(e)}},{key:"required",value:function(e){return function hD(t){return ta(t.value)?{required:!0}:null}(e)}},{key:"requiredTrue",value:function(e){return function vD(t){return!0===t.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function pD(t){return ta(t.value)||Ux.test(t.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function gD(t){return function(r){return ta(r.value)||!lD(r.value)?null:r.value.lengtht?{maxlength:{requiredLength:t,actualLength:r.value.length}}:null}}(e)}},{key:"pattern",value:function(e){return _D(e)}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return kD(e)}},{key:"composeAsync",value:function(e){return ED(e)}}]),t}();function _D(t){return t?("string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),r=new RegExp(e)):(e=t.toString(),r=t),function(n){if(ta(n.value))return null;var i=n.value;return r.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}):Ws;var r,e}function Ws(t){return null}function yD(t){return null!=t}function DD(t){var r=cl(t)?rt(t):t;return e_(r),r}function bD(t){var r={};return t.forEach(function(e){r=null!=e?Object.assign(Object.assign({},r),e):r}),0===Object.keys(r).length?null:r}function CD(t,r){return r.map(function(e){return e(t)})}function AD(t){return t.map(function(r){return function zx(t){return!t.validate}(r)?r:function(e){return r.validate(e)}})}function kD(t){if(!t)return null;var r=t.filter(yD);return 0==r.length?null:function(e){return bD(CD(e,r))}}function gh(t){return null!=t?kD(AD(t)):null}function ED(t){if(!t)return null;var r=t.filter(yD);return 0==r.length?null:function(e){return oD(CD(e,r).map(DD)).pipe(Me(bD))}}function mh(t){return null!=t?ED(AD(t)):null}function wD(t,r){return null===t?[r]:Array.isArray(t)?[].concat(P(t),[r]):[t,r]}function SD(t){return t._rawValidators}function FD(t){return t._rawAsyncValidators}function _h(t){return t?Array.isArray(t)?t:[t]:[]}function Ul(t,r){return Array.isArray(t)?t.includes(r):t===r}function MD(t,r){var e=_h(r);return _h(t).forEach(function(i){Ul(e,i)||e.push(i)}),e}function TD(t,r){return _h(r).filter(function(e){return!Ul(t,e)})}var PD=function(){function t(){f(this,t),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return v(t,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=gh(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=mh(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,n){return!!this.control&&this.control.hasError(e,n)}},{key:"getError",value:function(e,n){return this.control?this.control.getError(e,n):null}}]),t}(),Ci=function(t){C(e,t);var r=T(e);function e(){var n;return f(this,e),(n=r.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return v(e)}(PD),pr=function(t){C(e,t);var r=T(e);function e(){return f(this,e),r.apply(this,arguments)}return v(e,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),e}(PD),OD=function(){function t(r){f(this,t),this._cd=r}return v(t,[{key:"is",value:function(e){var n,i,a;return"submitted"===e?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(a=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===a?void 0:a[e])}}]),t}(),xD=function(){var t=function(r){C(n,r);var e=T(n);function n(i){return f(this,n),e.call(this,i)}return v(n)}(OD);return t.\u0275fac=function(e){return new(e||t)(we(Ci,2))},t.\u0275dir=ht({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&mn("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[xt]}),t}();function qs(t,r){bh(t,r),r.valueAccessor.writeValue(t.value),function Zx(t,r){r.valueAccessor.registerOnChange(function(e){t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&RD(t,r)})}(t,r),function eI(t,r){var e=function(i,a){r.valueAccessor.writeValue(i),a&&r.viewToModelUpdate(i)};t.registerOnChange(e),r._registerOnDestroy(function(){t._unregisterOnChange(e)})}(t,r),function Jx(t,r){r.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&RD(t,r),"submit"!==t.updateOn&&t.markAsTouched()})}(t,r),function Qx(t,r){if(r.valueAccessor.setDisabledState){var e=function(i){r.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),r._registerOnDestroy(function(){t._unregisterOnDisabledChange(e)})}}(t,r)}function Wl(t,r){var n=function(){};r.valueAccessor&&(r.valueAccessor.registerOnChange(n),r.valueAccessor.registerOnTouched(n)),Xl(t,r),t&&(r._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(function(){}))}function ql(t,r){t.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function bh(t,r){var e=SD(t);null!==r.validator?t.setValidators(wD(e,r.validator)):"function"==typeof e&&t.setValidators([e]);var n=FD(t);null!==r.asyncValidator?t.setAsyncValidators(wD(n,r.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);var i=function(){return t.updateValueAndValidity()};ql(r._rawValidators,i),ql(r._rawAsyncValidators,i)}function Xl(t,r){var e=!1;if(null!==t){if(null!==r.validator){var n=SD(t);if(Array.isArray(n)&&n.length>0){var i=n.filter(function(u){return u!==r.validator});i.length!==n.length&&(e=!0,t.setValidators(i))}}if(null!==r.asyncValidator){var a=FD(t);if(Array.isArray(a)&&a.length>0){var o=a.filter(function(u){return u!==r.asyncValidator});o.length!==a.length&&(e=!0,t.setAsyncValidators(o))}}}var s=function(){};return ql(r._rawValidators,s),ql(r._rawAsyncValidators,s),e}function RD(t,r){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function LD(t,r){bh(t,r)}function ND(t,r){t._syncPendingControls(),r.forEach(function(e){var n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Kl(t,r){var e=t.indexOf(r);e>-1&&t.splice(e,1)}var Xs="VALID",Yl="INVALID",Ro="PENDING",Ks="DISABLED";function Eh(t){return(Sh(t)?t.validators:t)||null}function BD(t){return Array.isArray(t)?gh(t):t||null}function wh(t,r){return(Sh(r)?r.asyncValidators:t)||null}function VD(t){return Array.isArray(t)?mh(t):t||null}function Sh(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var HD=function(r){return r instanceof GD},Fh=function(r){return r instanceof Th};function jD(t){return HD(t)?t.value:t.getRawValue()}function UD(t,r){var e=Fh(t),n=t.controls;if(!(e?Object.keys(n):n).length)throw new Xt(1e3,"");if(!n[r])throw new Xt(1001,"")}function zD(t,r){Fh(t),t._forEachChild(function(n,i){if(void 0===r[i])throw new Xt(1002,"")})}var Mh=function(){function t(r,e){f(this,t),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=BD(this._rawValidators),this._composedAsyncValidatorFn=VD(this._rawAsyncValidators)}return v(t,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===Xs}},{key:"invalid",get:function(){return this.status===Yl}},{key:"pending",get:function(){return this.status==Ro}},{key:"disabled",get:function(){return this.status===Ks}},{key:"enabled",get:function(){return this.status!==Ks}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=BD(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=VD(e)}},{key:"addValidators",value:function(e){this.setValidators(MD(e,this._rawValidators))}},{key:"addAsyncValidators",value:function(e){this.setAsyncValidators(MD(e,this._rawAsyncValidators))}},{key:"removeValidators",value:function(e){this.setValidators(TD(e,this._rawValidators))}},{key:"removeAsyncValidators",value:function(e){this.setAsyncValidators(TD(e,this._rawAsyncValidators))}},{key:"hasValidator",value:function(e){return Ul(this._rawValidators,e)}},{key:"hasAsyncValidator",value:function(e){return Ul(this._rawAsyncValidators,e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(n){n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(n){n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Ro,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(e.onlySelf);this.status=Ks,this.errors=null,this._forEachChild(function(i){i.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(i){return i(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(e.onlySelf);this.status=Xs,this._forEachChild(function(i){i.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(i){return i(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xs||this.status===Ro)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(n){return n._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Ks:Xs}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var n=this;if(this.asyncValidator){this.status=Ro,this._hasOwnPendingAsyncValidator=!0;var i=DD(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(function(a){n._hasOwnPendingAsyncValidator=!1,n.setErrors(a,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(e){return function iI(t,r,e){if(null==r||(Array.isArray(r)||(r=r.split(e)),Array.isArray(r)&&0===r.length))return null;var n=t;return r.forEach(function(i){n=Fh(n)?n.controls.hasOwnProperty(i)?n.controls[i]:null:function(r){return r instanceof oI}(n)&&n.at(i)||null}),n}(this,e,".")}},{key:"getError",value:function(e,n){var i=n?this.get(n):this;return i&&i.errors?i.errors[e]:null}},{key:"hasError",value:function(e,n){return!!this.getError(e,n)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new It,this.statusChanges=new It}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Ks:this.errors?Yl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ro)?Ro:this._anyControlsHaveStatus(Yl)?Yl:Xs}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(n){return n.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Sh(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),t}(),GD=function(t){C(e,t);var r=T(e);function e(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return f(this,e),(n=r.call(this,Eh(a),wh(o,a)))._onChange=[],n._pendingChange=!1,n._applyFormState(i),n._setUpdateStrategy(a),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),n}return v(e,[{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=i,this._onChange.length&&!1!==o.emitModelToViewChange&&this._onChange.forEach(function(s){return s(a.value,!1!==o.emitViewToModelChange)}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(i,a)}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(i),this.markAsPristine(a),this.markAsUntouched(a),this.setValue(this.value,a),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(i){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(i){this._onChange.push(i)}},{key:"_unregisterOnChange",value:function(i){Kl(this._onChange,i)}},{key:"registerOnDisabledChange",value:function(i){this._onDisabledChange.push(i)}},{key:"_unregisterOnDisabledChange",value:function(i){Kl(this._onDisabledChange,i)}},{key:"_forEachChild",value:function(i){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}]),e}(Mh),Th=function(t){C(e,t);var r=T(e);function e(n,i,a){var o;return f(this,e),(o=r.call(this,Eh(i),wh(a,i))).controls=n,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return v(e,[{key:"registerControl",value:function(i,a){return this.controls[i]?this.controls[i]:(this.controls[i]=a,a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange),a)}},{key:"addControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(i,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],a&&this.registerControl(i,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}},{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zD(this,i),Object.keys(i).forEach(function(s){UD(a,s),a.controls[s].setValue(i[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(Object.keys(i).forEach(function(s){a.controls[s]&&a.controls[s].patchValue(i[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(i[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(i,a,o){return i[o]=jD(a),i})}},{key:"_syncPendingControls",value:function(){var i=this._reduceChildren(!1,function(a,o){return!!o._syncPendingControls()||a});return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){var a=this;Object.keys(this.controls).forEach(function(o){var s=a.controls[o];s&&i(s,o)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(a){a.setParent(i),a._registerOnCollectionChange(i._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(i){for(var a=0,o=Object.keys(this.controls);a0||this.disabled}}]),e}(Mh),oI=function(t){C(e,t);var r=T(e);function e(n,i,a){var o;return f(this,e),(o=r.call(this,Eh(i),wh(a,i))).controls=n,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return v(e,[{key:"at",value:function(i){return this.controls[i]}},{key:"push",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(i,0,a),this._registerControl(a),this.updateValueAndValidity({emitEvent:o.emitEvent})}},{key:"removeAt",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:a.emitEvent})}},{key:"setControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),a&&(this.controls.splice(i,0,a),this._registerControl(a)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zD(this,i),i.forEach(function(s,u){UD(a,u),a.at(u).setValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(i.forEach(function(s,u){a.at(u)&&a.at(u).patchValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(i[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this.controls.map(function(i){return jD(i)})}},{key:"clear",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(a){return a._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}},{key:"_syncPendingControls",value:function(){var i=this.controls.reduce(function(a,o){return!!o._syncPendingControls()||a},!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){this.controls.forEach(function(a,o){i(a,o)})}},{key:"_updateValue",value:function(){var i=this;this.value=this.controls.filter(function(a){return a.enabled||i.disabled}).map(function(a){return a.value})}},{key:"_anyControls",value:function(i){return this.controls.some(function(a){return a.enabled&&i(a)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(a){return i._registerControl(a)})}},{key:"_allControlsDisabled",value:function(){var a,i=ne(this.controls);try{for(i.s();!(a=i.n()).done;)if(a.value.enabled)return!1}catch(s){i.e(s)}finally{i.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}]),e}(Mh),sI={provide:pr,useExisting:Dt(function(){return $s})},Ys=function(){return Promise.resolve(null)}(),$s=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a){var o;return f(this,n),(o=e.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new It,o.form=new Th({},gh(i),mh(a)),o}return v(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(a){var o=this;Ys.then(function(){var s=o._findContainer(a.path);a.control=s.registerControl(a.name,a.control),qs(a.control,a),a.control.updateValueAndValidity({emitEvent:!1}),o._directives.push(a)})}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){var o=this;Ys.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name),Kl(o._directives,a)})}},{key:"addFormGroup",value:function(a){var o=this;Ys.then(function(){var s=o._findContainer(a.path),u=new Th({});LD(u,a),s.registerControl(a.name,u),u.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(a){var o=this;Ys.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name)})}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){var s=this;Ys.then(function(){s.form.get(a.path).setValue(o)})}},{key:"setValue",value:function(a){this.control.setValue(a)}},{key:"onSubmit",value:function(a){return this.submitted=!0,ND(this.form,this._directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(a){return a.pop(),a.length?this.form.get(a):this.form}}]),n}(pr);return t.\u0275fac=function(e){return new(e||t)(we($n,10),we(na,10))},t.\u0275dir=ht({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&wt("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nn([sI]),xt]}),t}(),lI={provide:Ci,useExisting:Dt(function(){return Ph})},XD=function(){return Promise.resolve(null)}(),Ph=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a,o,s){var u;return f(this,n),(u=e.call(this)).control=new GD,u._registered=!1,u.update=new It,u._parent=i,u._setValidators(a),u._setAsyncValidators(o),u.valueAccessor=function Ah(t,r){if(!r)return null;Array.isArray(r);var e=void 0,n=void 0,i=void 0;return r.forEach(function(a){a.constructor===jl?e=a:function rI(t){return Object.getPrototypeOf(t.constructor)===Ea}(a)?n=a:i=a}),i||n||e||null}(ce(u),s),u}return v(n,[{key:"ngOnChanges",value:function(a){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in a&&this._updateDisabled(a),function Ch(t,r){if(!t.hasOwnProperty("model"))return!1;var e=t.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?function Gl(t,r){return[].concat(P(r.path),[t])}(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){qs(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(a){var o=this;XD.then(function(){o.control.setValue(a,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(a){var o=this,s=a.isDisabled.currentValue,u=""===s||s&&"false"!==s;XD.then(function(){u&&!o.control.disabled?o.control.disable():!u&&o.control.disabled&&o.control.enable()})}}]),n}(Ci);return t.\u0275fac=function(e){return new(e||t)(we(pr,9),we($n,10),we(na,10),we(si,10))},t.\u0275dir=ht({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[nn([lI]),xt,_r]}),t}(),dI={provide:si,useExisting:Dt(function(){return Oh}),multi:!0},Oh=function(){var t=function(r){C(n,r);var e=T(n);function n(){return f(this,n),e.apply(this,arguments)}return v(n,[{key:"writeValue",value:function(a){this.setProperty("value",null==a?"":a)}},{key:"registerOnChange",value:function(a){this.onChange=function(o){a(""==o?null:parseFloat(o))}}}]),n}(Ea);return t.\u0275fac=function(){var r;return function(n){return(r||(r=nr(t)))(n||t)}}(),t.\u0275dir=ht({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&wt("input",function(a){return n.onChange(a.target.value)})("blur",function(){return n.onTouched()})},features:[nn([dI]),xt]}),t}(),KD=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({}),t}(),gI={provide:pr,useExisting:Dt(function(){return Qs})},Qs=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a){var o;return f(this,n),(o=e.call(this)).validators=i,o.asyncValidators=a,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new It,o._setValidators(i),o._setAsyncValidators(a),o}return v(n,[{key:"ngOnChanges",value:function(a){this._checkFormPresent(),a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Xl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(a){var o=this.form.get(a.path);return qs(o,a),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(a),o}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){Wl(a.control||null,a),Kl(this.directives,a)}},{key:"addFormGroup",value:function(a){this._setUpFormContainer(a)}},{key:"removeFormGroup",value:function(a){this._cleanUpFormContainer(a)}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"addFormArray",value:function(a){this._setUpFormContainer(a)}},{key:"removeFormArray",value:function(a){this._cleanUpFormContainer(a)}},{key:"getFormArray",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){this.form.get(a.path).setValue(o)}},{key:"onSubmit",value:function(a){return this.submitted=!0,ND(this.form,this.directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_updateDomValue",value:function(){var a=this;this.directives.forEach(function(o){var s=o.control,u=a.form.get(o.path);s!==u&&(Wl(s||null,o),HD(u)&&(qs(u,o),o.control=u))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(a){var o=this.form.get(a.path);LD(o,a),o.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(a){if(this.form){var o=this.form.get(a.path);if(o){var s=function tI(t,r){return Xl(t,r)}(o,a);s&&o.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){bh(this.form,this),this._oldForm&&Xl(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(pr);return t.\u0275fac=function(e){return new(e||t)(we($n,10),we(na,10))},t.\u0275dir=ht({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,n){1&e&&wt("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nn([gI]),xt,_r]}),t}(),xI={provide:$n,useExisting:Dt(function(){return Vh}),multi:!0},Vh=function(){var t=function(){function r(){f(this,r),this._validator=Ws}return v(r,[{key:"ngOnChanges",value:function(n){"pattern"in n&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(n){return this._validator(n)}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}},{key:"_createValidator",value:function(){this._validator=_D(this.pattern)}}]),r}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ht({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&gn("pattern",n.pattern?n.pattern:null)},inputs:{pattern:"pattern"},features:[nn([xI]),_r]}),t}(),II=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({imports:[[KD]]}),t}(),RI=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({imports:[II]}),t}(),cb=v(function t(){f(this,t)}),LI=v(function t(){f(this,t)}),Hi="*";function Js(t,r){return{type:7,name:t,definitions:r,options:{}}}function wa(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:r,timings:t}}function db(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:r}}function or(t){return{type:6,styles:t,offset:null}}function ra(t,r,e){return{type:0,name:t,styles:r,options:e}}function NI(t){return{type:5,steps:t}}function ia(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:r,options:e}}function BI(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function VI(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:r,options:e}}function fb(t){Promise.resolve(null).then(t)}var Lo=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}return v(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;fb(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(function(i){return i()}),n.length=0}}]),t}(),hb=function(){function t(r){var e=this;f(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;var n=0,i=0,a=0,o=this.players.length;0==o?fb(function(){return e._onFinish()}):this.players.forEach(function(s){s.onDone(function(){++n==o&&e._onFinish()}),s.onDestroy(function(){++i==o&&e._onDestroy()}),s.onStart(function(){++a==o&&e._onStart()})}),this.totalTime=this.players.reduce(function(s,u){return Math.max(s,u.totalTime)},0)}return v(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var n=e*this.totalTime;this.players.forEach(function(i){var a=i.totalTime?Math.min(1,n/i.totalTime):1;i.setPosition(a)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(n,i){return null===n||i.totalTime>n.totalTime?i:n},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(function(i){return i()}),n.length=0}}]),t}();function vb(){return"undefined"!=typeof window&&void 0!==window.document}function jh(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function aa(t){switch(t.length){case 0:return new Lo;case 1:return t[0];default:return new hb(t)}}function pb(t,r,e,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],u=-1,l=null;if(n.forEach(function(y){var w=y.offset,K=w==u,fe=K&&l||{};Object.keys(y).forEach(function(Ee){var Fe=Ee,Te=y[Ee];if("offset"!==Ee)switch(Fe=r.normalizePropertyName(Fe,o),Te){case"!":Te=i[Ee];break;case Hi:Te=a[Ee];break;default:Te=r.normalizeStyleValue(Ee,Fe,Te,o)}fe[Fe]=Te}),K||s.push(fe),l=fe,u=w}),o.length){var h="\n - ";throw new Error("Unable to animate due to the following errors:".concat(h).concat(o.join(h)))}return s}function Uh(t,r,e,n){switch(r){case"start":t.onStart(function(){return n(e&&zh(e,"start",t))});break;case"done":t.onDone(function(){return n(e&&zh(e,"done",t))});break;case"destroy":t.onDestroy(function(){return n(e&&zh(e,"destroy",t))})}}function zh(t,r,e){var n=e.totalTime,a=Gh(t.element,t.triggerName,t.fromState,t.toState,r||t.phaseName,null==n?t.totalTime:n,!!e.disabled),o=t._data;return null!=o&&(a._data=o),a}function Gh(t,r,e,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:r,fromState:e,toState:n,phaseName:i,totalTime:a,disabled:!!o}}function Tr(t,r,e){var n;return t instanceof Map?(n=t.get(r))||t.set(r,n=e):(n=t[r])||(n=t[r]=e),n}function gb(t){var r=t.indexOf(":");return[t.substring(1,r),t.substr(r+1)]}var Wh=function(r,e){return!1},mb=function(r,e,n){return[]};(jh()||"undefined"!=typeof Element)&&(Wh=vb()?function(r,e){for(;e&&e!==document.documentElement;){if(e===r)return!0;e=e.parentNode||e.host}return!1}:function(r,e){return r.contains(e)},mb=function(r,e,n){if(n)return Array.from(r.querySelectorAll(e));var i=r.querySelector(e);return i?[i]:[]});var Sa=null,_b=!1;var GI=Wh,WI=mb,yb=function(){var t=function(){function r(){f(this,r)}return v(r,[{key:"validateStyleProperty",value:function(n){return function UI(t){Sa||(Sa=function zI(){return"undefined"!=typeof document?document.body:null}()||{},_b=!!Sa.style&&"WebkitAppearance"in Sa.style);var r=!0;return Sa.style&&!function jI(t){return"ebkit"==t.substring(1,6)}(t)&&!(r=t in Sa.style)&&_b&&(r="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Sa.style),r}(n)}},{key:"matchesElement",value:function(n,i){return!1}},{key:"containsElement",value:function(n,i){return GI(n,i)}},{key:"query",value:function(n,i,a){return WI(n,i,a)}},{key:"computeStyle",value:function(n,i,a){return a||""}},{key:"animate",value:function(n,i,a,o,s){return new Lo(a,o)}}]),r}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t}(),Db=function(){var t=v(function r(){f(this,r)});return t.NOOP=new yb,t}(),Cb="ng-enter",qh="ng-leave",$l="ng-trigger",Ql=".ng-trigger",Ab="ng-animating",Xh=".ng-animating";function Fa(t){if("number"==typeof t)return t;var r=t.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:Kh(parseFloat(r[1]),r[2])}function Kh(t,r){return"s"===r?1e3*t:t}function Zl(t,r,e){return t.hasOwnProperty("duration")?t:function YI(t,r,e){var i,a=0,o="";if("string"==typeof t){var s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return r.push('The provided timing value "'.concat(t,'" is invalid.')),{duration:0,delay:0,easing:""};i=Kh(parseFloat(s[1]),s[2]);var u=s[3];null!=u&&(a=Kh(parseFloat(u),s[4]));var l=s[5];l&&(o=l)}else i=t;if(!e){var h=!1,y=r.length;i<0&&(r.push("Duration values below 0 are not allowed for this animation step."),h=!0),a<0&&(r.push("Delay values below 0 are not allowed for this animation step."),h=!0),h&&r.splice(y,0,'The provided timing value "'.concat(t,'" is invalid.'))}return{duration:i,delay:a,easing:o}}(t,r,e)}function No(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(e){r[e]=t[e]}),r}function Ma(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r)for(var n in t)e[n]=t[n];else No(t,e);return e}function kb(t,r,e){return e?r+":"+e+";":""}function Eb(t){for(var r="",e=0;e *";case":leave":return"* => void";case":increment":return function(e,n){return parseFloat(n)>parseFloat(e)};case":decrement":return function(e,n){return parseFloat(n) *"}}(t,e);if("function"==typeof n)return void r.push(n);t=n}var i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push('The provided transition expression "'.concat(t,'" is not supported')),r;var a=i[1],o=i[2],s=i[3];r.push(Sb(a,s)),"<"==o[0]&&!("*"==a&&"*"==s)&&r.push(Sb(s,a))}(n,e,r)}):e.push(t),e}var nc=new Set(["true","1"]),rc=new Set(["false","0"]);function Sb(t,r){var e=nc.has(t)||rc.has(t),n=nc.has(r)||rc.has(r);return function(i,a){var o="*"==t||t==i,s="*"==r||r==a;return!o&&e&&"boolean"==typeof i&&(o=i?nc.has(t):rc.has(t)),!s&&n&&"boolean"==typeof a&&(s=a?nc.has(r):rc.has(r)),o&&s}}var rR=new RegExp("s*".concat(":self","s*,?"),"g");function Mb(t,r,e){return new iR(t).build(r,e)}var iR=function(){function t(r){f(this,t),this._driver=r}return v(t,[{key:"build",value:function(e,n){var i=new sR(n);return this._resetContextStyleTimingState(i),Pr(this,tu(e),i)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,n){var i=this,a=n.queryCount=0,o=n.depCount=0,s=[],u=[];return"@"==e.name.charAt(0)&&n.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(l){if(i._resetContextStyleTimingState(n),0==l.type){var h=l,y=h.name;y.toString().split(/\s*,\s*/).forEach(function(K){h.name=K,s.push(i.visitState(h,n))}),h.name=y}else if(1==l.type){var w=i.visitTransition(l,n);a+=w.queryCount,o+=w.depCount,u.push(w)}else n.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:u,queryCount:a,depCount:o,options:null}}},{key:"visitState",value:function(e,n){var i=this.visitStyle(e.styles,n),a=e.options&&e.options.params||null;if(i.containsDynamicStyles){var o=new Set,s=a||{};if(i.styles.forEach(function(l){if(ic(l)){var h=l;Object.keys(h).forEach(function(y){wb(h[y]).forEach(function(w){s.hasOwnProperty(w)||o.add(w)})})}}),o.size){var u=ec(o.values());n.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(u.join(", ")))}}return{type:0,name:e.name,style:i,options:a?{params:a}:null}}},{key:"visitTransition",value:function(e,n){n.queryCount=0,n.depCount=0;var i=Pr(this,tu(e.animation),n);return{type:1,matchers:eR(e.expr,n.errors),animation:i,queryCount:n.queryCount,depCount:n.depCount,options:Ta(e.options)}}},{key:"visitSequence",value:function(e,n){var i=this;return{type:2,steps:e.steps.map(function(a){return Pr(i,a,n)}),options:Ta(e.options)}}},{key:"visitGroup",value:function(e,n){var i=this,a=n.currentTime,o=0,s=e.steps.map(function(u){n.currentTime=a;var l=Pr(i,u,n);return o=Math.max(o,n.currentTime),l});return n.currentTime=o,{type:3,steps:s,options:Ta(e.options)}}},{key:"visitAnimate",value:function(e,n){var i=function lR(t,r){var e=null;if(t.hasOwnProperty("duration"))e=t;else if("number"==typeof t)return Qh(Zl(t,r).duration,0,"");var i=t,a=i.split(/\s+/).some(function(s){return"{"==s.charAt(0)&&"{"==s.charAt(1)});if(a){var o=Qh(0,0,"");return o.dynamic=!0,o.strValue=i,o}return Qh((e=e||Zl(i,r)).duration,e.delay,e.easing)}(e.timings,n.errors);n.currentAnimateTimings=i;var a,o=e.styles?e.styles:or({});if(5==o.type)a=this.visitKeyframes(o,n);else{var s=e.styles,u=!1;if(!s){u=!0;var l={};i.easing&&(l.easing=i.easing),s=or(l)}n.currentTime+=i.duration+i.delay;var h=this.visitStyle(s,n);h.isEmptyStep=u,a=h}return n.currentAnimateTimings=null,{type:4,timings:i,style:a,options:null}}},{key:"visitStyle",value:function(e,n){var i=this._makeStyleAst(e,n);return this._validateStyleAst(i,n),i}},{key:"_makeStyleAst",value:function(e,n){var i=[];Array.isArray(e.styles)?e.styles.forEach(function(s){"string"==typeof s?s==Hi?i.push(s):n.errors.push("The provided style string value ".concat(s," is not allowed.")):i.push(s)}):i.push(e.styles);var a=!1,o=null;return i.forEach(function(s){if(ic(s)){var u=s,l=u.easing;if(l&&(o=l,delete u.easing),!a)for(var h in u)if(u[h].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:i,easing:o,offset:e.offset,containsDynamicStyles:a,options:null}}},{key:"_validateStyleAst",value:function(e,n){var i=this,a=n.currentAnimateTimings,o=n.currentTime,s=n.currentTime;a&&s>0&&(s-=a.duration+a.delay),e.styles.forEach(function(u){"string"!=typeof u&&Object.keys(u).forEach(function(l){if(i._driver.validateStyleProperty(l)){var h=n.collectedStyles[n.currentQuerySelector],y=h[l],w=!0;y&&(s!=o&&s>=y.startTime&&o<=y.endTime&&(n.errors.push('The CSS property "'.concat(l,'" that exists between the times of "').concat(y.startTime,'ms" and "').concat(y.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(s,'ms" and "').concat(o,'ms"')),w=!1),s=y.startTime),w&&(h[l]={startTime:s,endTime:o}),n.options&&function $I(t,r,e){var n=r.params||{},i=wb(t);i.length&&i.forEach(function(a){n.hasOwnProperty(a)||e.push("Unable to resolve the local animation param ".concat(a," in the given list of values"))})}(u[l],n.options,n.errors)}else n.errors.push('The provided animation property "'.concat(l,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,n){var i=this,a={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push("keyframes() must be placed inside of a call to animate()"),a;var s=0,u=[],l=!1,h=!1,y=0,w=e.steps.map(function(ze){var Ye=i._makeStyleAst(ze,n),ut=null!=Ye.offset?Ye.offset:function uR(t){if("string"==typeof t)return null;var r=null;if(Array.isArray(t))t.forEach(function(n){if(ic(n)&&n.hasOwnProperty("offset")){var i=n;r=parseFloat(i.offset),delete i.offset}});else if(ic(t)&&t.hasOwnProperty("offset")){var e=t;r=parseFloat(e.offset),delete e.offset}return r}(Ye.styles),dt=0;return null!=ut&&(s++,dt=Ye.offset=ut),h=h||dt<0||dt>1,l=l||dt0&&s0?Ye==Ee?1:fe*Ye:u[Ye],dt=ut*Ce;n.currentTime=Fe+Te.delay+dt,Te.duration=dt,i._validateStyleAst(ze,n),ze.offset=ut,a.styles.push(ze)}),a}},{key:"visitReference",value:function(e,n){return{type:8,animation:Pr(this,tu(e.animation),n),options:Ta(e.options)}}},{key:"visitAnimateChild",value:function(e,n){return n.depCount++,{type:9,options:Ta(e.options)}}},{key:"visitAnimateRef",value:function(e,n){return{type:10,animation:this.visitReference(e.animation,n),options:Ta(e.options)}}},{key:"visitQuery",value:function(e,n){var i=n.currentQuerySelector,a=e.options||{};n.queryCount++,n.currentQuery=e;var o=function aR(t){var r=!!t.split(/\s*,\s*/).find(function(e){return":self"==e});return r&&(t=t.replace(rR,"")),t=t.replace(/@\*/g,Ql).replace(/@\w+/g,function(e){return Ql+"-"+e.substr(1)}).replace(/:animating/g,Xh),[t,r]}(e.selector),s=j(o,2),u=s[0],l=s[1];n.currentQuerySelector=i.length?i+" "+u:u,Tr(n.collectedStyles,n.currentQuerySelector,{});var h=Pr(this,tu(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:u,limit:a.limit||0,optional:!!a.optional,includeSelf:l,animation:h,originalSelector:e.selector,options:Ta(e.options)}}},{key:"visitStagger",value:function(e,n){n.currentQuery||n.errors.push("stagger() can only be used inside of query()");var i="full"===e.timings?{duration:0,delay:0,easing:"full"}:Zl(e.timings,n.errors,!0);return{type:12,animation:Pr(this,tu(e.animation),n),timings:i,options:null}}}]),t}(),sR=v(function t(r){f(this,t),this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null});function ic(t){return!Array.isArray(t)&&"object"==typeof t}function Ta(t){return t?(t=No(t)).params&&(t.params=function oR(t){return t?No(t):null}(t.params)):t={},t}function Qh(t,r,e){return{duration:t,delay:r,easing:e}}function Zh(t,r,e,n,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:r,preStyleProps:e,postStyleProps:n,duration:i,delay:a,totalTime:i+a,easing:o,subTimeline:s}}var Jh=function(){function t(){f(this,t),this._map=new Map}return v(t,[{key:"get",value:function(e){return this._map.get(e)||[]}},{key:"append",value:function(e,n){var i,a=this._map.get(e);a||this._map.set(e,a=[]),(i=a).push.apply(i,P(n))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),fR=new RegExp(":enter","g"),vR=new RegExp(":leave","g");function Pb(t,r,e,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new pR).buildKeyframes(t,r,e,n,i,a,o,s,u,l)}var pR=function(){function t(){f(this,t)}return v(t,[{key:"buildKeyframes",value:function(e,n,i,a,o,s,u,l,h){var y=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];h=h||new Jh;var w=new gR(e,n,h,a,o,y,[]);w.options=l,w.currentTimeline.setStyles([s],null,w.errors,l),Pr(this,i,w);var K=w.timelines.filter(function(Te){return Te.containsAnimation()});if(Object.keys(u).length){for(var fe,Ee=K.length-1;Ee>=0;Ee--){var Fe=K[Ee];if(Fe.element===n){fe=Fe;break}}fe&&!fe.allowOnlyTimelineStyles()&&fe.setStyles([u],null,w.errors,l)}return K.length?K.map(function(Te){return Te.buildKeyframes()}):[Zh(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,n){}},{key:"visitState",value:function(e,n){}},{key:"visitTransition",value:function(e,n){}},{key:"visitAnimateChild",value:function(e,n){var i=n.subInstructions.get(n.element);if(i){var a=n.createSubContext(e.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(i,a,a.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=e}},{key:"visitAnimateRef",value:function(e,n){var i=n.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),n.transformIntoNewTimeline(i.currentTimeline.currentTime),n.previousNode=e}},{key:"_visitSubInstructions",value:function(e,n,i){var o=n.currentTimeline.currentTime,s=null!=i.duration?Fa(i.duration):null,u=null!=i.delay?Fa(i.delay):null;return 0!==s&&e.forEach(function(l){var h=n.appendInstructionToTimeline(l,s,u);o=Math.max(o,h.duration+h.delay)}),o}},{key:"visitReference",value:function(e,n){n.updateOptions(e.options,!0),Pr(this,e.animation,n),n.previousNode=e}},{key:"visitSequence",value:function(e,n){var i=this,a=n.subContextCount,o=n,s=e.options;if(s&&(s.params||s.delay)&&((o=n.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=ac);var u=Fa(s.delay);o.delayNextStep(u)}e.steps.length&&(e.steps.forEach(function(l){return Pr(i,l,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>a&&o.transformIntoNewTimeline()),n.previousNode=e}},{key:"visitGroup",value:function(e,n){var i=this,a=[],o=n.currentTimeline.currentTime,s=e.options&&e.options.delay?Fa(e.options.delay):0;e.steps.forEach(function(u){var l=n.createSubContext(e.options);s&&l.delayNextStep(s),Pr(i,u,l),o=Math.max(o,l.currentTimeline.currentTime),a.push(l.currentTimeline)}),a.forEach(function(u){return n.currentTimeline.mergeTimelineCollectedStyles(u)}),n.transformIntoNewTimeline(o),n.previousNode=e}},{key:"_visitTiming",value:function(e,n){if(e.dynamic){var i=e.strValue;return Zl(n.params?Jl(i,n.params,n.errors):i,n.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,n){var i=n.currentAnimateTimings=this._visitTiming(e.timings,n),a=n.currentTimeline;i.delay&&(n.incrementTime(i.delay),a.snapshotCurrentStyles());var o=e.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(i.duration),this.visitStyle(o,n),a.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}},{key:"visitStyle",value:function(e,n){var i=n.currentTimeline,a=n.currentAnimateTimings;!a&&i.getCurrentStyleProperties().length&&i.forwardFrame();var o=a&&a.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(o):i.setStyles(e.styles,o,n.errors,n.options),n.previousNode=e}},{key:"visitKeyframes",value:function(e,n){var i=n.currentAnimateTimings,a=n.currentTimeline.duration,o=i.duration,u=n.createSubContext().currentTimeline;u.easing=i.easing,e.styles.forEach(function(l){u.forwardTime((l.offset||0)*o),u.setStyles(l.styles,l.easing,n.errors,n.options),u.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(u),n.transformIntoNewTimeline(a+o),n.previousNode=e}},{key:"visitQuery",value:function(e,n){var i=this,a=n.currentTimeline.currentTime,o=e.options||{},s=o.delay?Fa(o.delay):0;s&&(6===n.previousNode.type||0==a&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=ac);var u=a,l=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=l.length;var h=null;l.forEach(function(y,w){n.currentQueryIndex=w;var K=n.createSubContext(e.options,y);s&&K.delayNextStep(s),y===n.element&&(h=K.currentTimeline),Pr(i,e.animation,K),K.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,K.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(u),h&&(n.currentTimeline.mergeTimelineCollectedStyles(h),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}},{key:"visitStagger",value:function(e,n){var i=n.parentContext,a=n.currentTimeline,o=e.timings,s=Math.abs(o.duration),u=s*(n.currentQueryTotal-1),l=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=u-l;break;case"full":l=i.currentStaggerTime}var y=n.currentTimeline;l&&y.delayNextStep(l);var w=y.currentTime;Pr(this,e.animation,n),n.previousNode=e,i.currentStaggerTime=a.currentTime-w+(a.startTime-i.currentTimeline.startTime)}}]),t}(),ac={},gR=function(){function t(r,e,n,i,a,o,s,u){f(this,t),this._driver=r,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ac,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Ob(this._driver,e,0),s.push(this.currentTimeline)}return v(t,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,n){var i=this;if(e){var a=e,o=this.options;null!=a.duration&&(o.duration=Fa(a.duration)),null!=a.delay&&(o.delay=Fa(a.delay));var s=a.params;if(s){var u=o.params;u||(u=this.options.params={}),Object.keys(s).forEach(function(l){(!n||!u.hasOwnProperty(l))&&(u[l]=Jl(s[l],u,i.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var n=this.options.params;if(n){var i=e.params={};Object.keys(n).forEach(function(a){i[a]=n[a]})}}return e}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=n||this.element,o=new t(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=ac,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,n,i){var a={duration:null!=n?n:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},o=new mR(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,a,e.stretchStartingKeyframe);return this.timelines.push(o),a}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,n,i,a,o,s){var u=[];if(a&&u.push(this.element),e.length>0){e=(e=e.replace(fR,"."+this._enterClassName)).replace(vR,"."+this._leaveClassName);var h=this._driver.query(this.element,e,1!=i);0!==i&&(h=i<0?h.slice(h.length+i,h.length):h.slice(0,i)),u.push.apply(u,P(h))}return!o&&0==u.length&&s.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),u}}]),t}(),Ob=function(){function t(r,e,n,i){f(this,t),this._driver=r,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return v(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,n){this._localTimelineStyles[e]=n,this._globalTimelineStyles[e]=n,this._styleSummary[e]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var n=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(i){n._backFill[i]=n._globalTimelineStyles[i]||Hi,n._currentKeyframe[i]=Hi}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,n,i,a){var o=this;n&&(this._previousKeyframe.easing=n);var s=a&&a.params||{},u=function _R(t,r){var n,e={};return t.forEach(function(i){"*"===i?(n=n||Object.keys(r)).forEach(function(a){e[a]=Hi}):Ma(i,!1,e)}),e}(e,this._globalTimelineStyles);Object.keys(u).forEach(function(l){var h=Jl(u[l],s,i);o._pendingStyles[l]=h,o._localTimelineStyles.hasOwnProperty(l)||(o._backFill[l]=o._globalTimelineStyles.hasOwnProperty(l)?o._globalTimelineStyles[l]:Hi),o._updateStyle(l,h)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,n=this._pendingStyles,i=Object.keys(n);0!=i.length&&(this._pendingStyles={},i.forEach(function(a){e._currentKeyframe[a]=n[a]}),Object.keys(this._localTimelineStyles).forEach(function(a){e._currentKeyframe.hasOwnProperty(a)||(e._currentKeyframe[a]=e._localTimelineStyles[a])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(n){var i=e._localTimelineStyles[n];e._pendingStyles[n]=i,e._updateStyle(n,i)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var n in this._currentKeyframe)e.push(n);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var n=this;Object.keys(e._styleSummary).forEach(function(i){var a=n._styleSummary[i],o=e._styleSummary[i];(!a||o.time>a.time)&&n._updateStyle(i,o.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var n=new Set,i=new Set,a=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(y,w){var K=Ma(y,!0);Object.keys(K).forEach(function(fe){var Ee=K[fe];"!"==Ee?n.add(fe):Ee==Hi&&i.add(fe)}),a||(K.offset=w/e.duration),o.push(K)});var s=n.size?ec(n.values()):[],u=i.size?ec(i.values()):[];if(a){var l=o[0],h=No(l);l.offset=0,h.offset=1,o=[l,h]}return Zh(this.element,o,s,u,this.duration,this.startTime,this.easing,!1)}}]),t}(),mR=function(t){C(e,t);var r=T(e);function e(n,i,a,o,s,u){var l,h=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return f(this,e),(l=r.call(this,n,i,u.delay)).keyframes=a,l.preStyleProps=o,l.postStyleProps=s,l._stretchStartingKeyframe=h,l.timings={duration:u.duration,delay:u.delay,easing:u.easing},l}return v(e,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var i=this.keyframes,a=this.timings,o=a.delay,s=a.duration,u=a.easing;if(this._stretchStartingKeyframe&&o){var l=[],h=s+o,y=o/h,w=Ma(i[0],!1);w.offset=0,l.push(w);var K=Ma(i[0],!1);K.offset=xb(y),l.push(K);for(var fe=i.length-1,Ee=1;Ee<=fe;Ee++){var Fe=Ma(i[Ee],!1);Fe.offset=xb((o+Fe.offset*s)/h),l.push(Fe)}s=h,o=0,u="",i=l}return Zh(this.element,i,this.preStyleProps,this.postStyleProps,s,o,u,!0)}}]),e}(Ob);function xb(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,e=Math.pow(10,r-1);return Math.round(t*e)/e}var ev=v(function t(){f(this,t)}),yR=function(t){C(e,t);var r=T(e);function e(){return f(this,e),r.apply(this,arguments)}return v(e,[{key:"normalizePropertyName",value:function(i,a){return $h(i)}},{key:"normalizeStyleValue",value:function(i,a,o,s){var u="",l=o.toString().trim();if(DR[a]&&0!==o&&"0"!==o)if("number"==typeof o)u="px";else{var h=o.match(/^[+-]?[\d\.]+([a-z]*)$/);h&&0==h[1].length&&s.push("Please provide a CSS unit value for ".concat(i,":").concat(o))}return l+u}}]),e}(ev),DR=function(){return function bR(t){var r={};return t.forEach(function(e){return r[e]=!0}),r}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","))}();function Ib(t,r,e,n,i,a,o,s,u,l,h,y,w){return{type:0,element:t,triggerName:r,isRemovalTransition:i,fromState:e,fromStyles:a,toState:n,toStyles:o,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:h,totalTime:y,errors:w}}var tv={},Rb=function(){function t(r,e,n){f(this,t),this._triggerName=r,this.ast=e,this._stateStyles=n}return v(t,[{key:"match",value:function(e,n,i,a){return function CR(t,r,e,n,i){return t.some(function(a){return a(r,e,n,i)})}(this.ast.matchers,e,n,i,a)}},{key:"buildStyles",value:function(e,n,i){var a=this._stateStyles["*"],o=this._stateStyles[e],s=a?a.buildStyles(n,i):{};return o?o.buildStyles(n,i):s}},{key:"build",value:function(e,n,i,a,o,s,u,l,h,y){var w=[],K=this.ast.options&&this.ast.options.params||tv,Ee=this.buildStyles(i,u&&u.params||tv,w),Fe=l&&l.params||tv,Te=this.buildStyles(a,Fe,w),Ce=new Set,ze=new Map,Ye=new Map,ut="void"===a,dt={params:Object.assign(Object.assign({},K),Fe)},tn=y?[]:Pb(e,n,this.ast.animation,o,s,Ee,Te,dt,h,w),cn=0;if(tn.forEach(function(wn){cn=Math.max(wn.duration+wn.delay,cn)}),w.length)return Ib(n,this._triggerName,i,a,ut,Ee,Te,[],[],ze,Ye,cn,w);tn.forEach(function(wn){var Zn=wn.element,li=Tr(ze,Zn,{});wn.preStyleProps.forEach(function(Dr){return li[Dr]=!0});var zi=Tr(Ye,Zn,{});wn.postStyleProps.forEach(function(Dr){return zi[Dr]=!0}),Zn!==n&&Ce.add(Zn)});var Tn=ec(Ce.values());return Ib(n,this._triggerName,i,a,ut,Ee,Te,tn,Tn,ze,Ye,cn)}}]),t}(),AR=function(){function t(r,e,n){f(this,t),this.styles=r,this.defaultParams=e,this.normalizer=n}return v(t,[{key:"buildStyles",value:function(e,n){var i=this,a={},o=No(this.defaultParams);return Object.keys(e).forEach(function(s){var u=e[s];null!=u&&(o[s]=u)}),this.styles.styles.forEach(function(s){if("string"!=typeof s){var u=s;Object.keys(u).forEach(function(l){var h=u[l];h.length>1&&(h=Jl(h,o,n));var y=i.normalizer.normalizePropertyName(l,n);h=i.normalizer.normalizeStyleValue(l,y,h,n),a[y]=h})}}),a}}]),t}(),ER=function(){function t(r,e,n){var i=this;f(this,t),this.name=r,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(function(a){i.states[a.name]=new AR(a.style,a.options&&a.options.params||{},n)}),Lb(this.states,"true","1"),Lb(this.states,"false","0"),e.transitions.forEach(function(a){i.transitionFactories.push(new Rb(r,a,i.states))}),this.fallbackTransition=function wR(t,r,e){return new Rb(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(o,s){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states)}return v(t,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,n,i,a){return this.transitionFactories.find(function(s){return s.match(e,n,i,a)})||null}},{key:"matchStyles",value:function(e,n,i){return this.fallbackTransition.buildStyles(e,n,i)}}]),t}();function Lb(t,r,e){t.hasOwnProperty(r)?t.hasOwnProperty(e)||(t[e]=t[r]):t.hasOwnProperty(e)&&(t[r]=t[e])}var SR=new Jh,FR=function(){function t(r,e,n){f(this,t),this.bodyNode=r,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return v(t,[{key:"register",value:function(e,n){var i=[],a=Mb(this._driver,n,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: ".concat(i.join("\n")));this._animations[e]=a}},{key:"_buildPlayer",value:function(e,n,i){var a=e.element,o=pb(this._driver,this._normalizer,a,e.keyframes,n,i);return this._driver.animate(a,o,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,n){var u,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[e],l=new Map;if(s?(u=Pb(this._driver,n,s,Cb,qh,{},{},a,SR,o)).forEach(function(w){var K=Tr(l,w.element,{});w.postStyleProps.forEach(function(fe){return K[fe]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),u=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));l.forEach(function(w,K){Object.keys(w).forEach(function(fe){w[fe]=i._driver.computeStyle(K,fe,Hi)})});var h=u.map(function(w){var K=l.get(w.element);return i._buildPlayer(w,{},K)}),y=aa(h);return this._playersById[e]=y,y.onDestroy(function(){return i.destroy(e)}),this.players.push(y),y}},{key:"destroy",value:function(e){var n=this._getPlayer(e);n.destroy(),delete this._playersById[e];var i=this.players.indexOf(n);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(e){var n=this._playersById[e];if(!n)throw new Error("Unable to find the timeline player referenced by ".concat(e));return n}},{key:"listen",value:function(e,n,i,a){var o=Gh(n,"","","");return Uh(this._getPlayer(e),i,o,a),function(){}}},{key:"command",value:function(e,n,i,a){if("register"!=i)if("create"!=i){var s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(e)}}else this.create(e,n,a[0]||{});else this.register(e,a[0])}}]),t}(),Nb="ng-animate-queued",nv="ng-animate-disabled",PR="ng-star-inserted",xR=[],Bb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},IR={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Gr="__ng_removed",rv=function(){function t(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";f(this,t),this.namespaceId=e;var n=r&&r.hasOwnProperty("value"),i=n?r.value:r;if(this.value=BR(i),n){var a=No(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return v(t,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var n=e.params;if(n){var i=this.options.params;Object.keys(n).forEach(function(a){null==i[a]&&(i[a]=n[a])})}}}]),t}(),nu="void",iv=new rv(nu),RR=function(){function t(r,e,n){f(this,t),this.id=r,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Wr(e,this._hostClassName)}return v(t,[{key:"listen",value:function(e,n,i,a){var o=this;if(!this._triggers.hasOwnProperty(n))throw new Error('Unable to listen on the animation trigger event "'.concat(i,'" because the animation trigger "').concat(n,"\" doesn't exist!"));if(null==i||0==i.length)throw new Error('Unable to listen on the animation trigger "'.concat(n,'" because the provided event is undefined!'));if(!function VR(t){return"start"==t||"done"==t}(i))throw new Error('The provided animation trigger event "'.concat(i,'" for the animation trigger "').concat(n,'" is not supported!'));var s=Tr(this._elementListeners,e,[]),u={name:n,phase:i,callback:a};s.push(u);var l=Tr(this._engine.statesByElement,e,{});return l.hasOwnProperty(n)||(Wr(e,$l),Wr(e,$l+"-"+n),l[n]=iv),function(){o._engine.afterFlush(function(){var h=s.indexOf(u);h>=0&&s.splice(h,1),o._triggers[n]||delete l[n]})}}},{key:"register",value:function(e,n){return!this._triggers[e]&&(this._triggers[e]=n,!0)}},{key:"_getTrigger",value:function(e){var n=this._triggers[e];if(!n)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return n}},{key:"trigger",value:function(e,n,i){var a=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(n),u=new av(this.id,n,e),l=this._engine.statesByElement.get(e);l||(Wr(e,$l),Wr(e,$l+"-"+n),this._engine.statesByElement.set(e,l={}));var h=l[n],y=new rv(i,this.id),w=i&&i.hasOwnProperty("value");!w&&h&&y.absorbOptions(h.options),l[n]=y,h||(h=iv);var K=y.value===nu;if(K||h.value!==y.value){var Te=Tr(this._engine.playersByElement,e,[]);Te.forEach(function(Ye){Ye.namespaceId==a.id&&Ye.triggerName==n&&Ye.queued&&Ye.destroy()});var Ce=s.matchTransition(h.value,y.value,e,y.params),ze=!1;if(!Ce){if(!o)return;Ce=s.fallbackTransition,ze=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:Ce,fromState:h,toState:y,player:u,isFallbackTransition:ze}),ze||(Wr(e,Nb),u.onStart(function(){Vo(e,Nb)})),u.onDone(function(){var Ye=a.players.indexOf(u);Ye>=0&&a.players.splice(Ye,1);var ut=a._engine.playersByElement.get(e);if(ut){var dt=ut.indexOf(u);dt>=0&&ut.splice(dt,1)}}),this.players.push(u),Te.push(u),u}if(!UR(h.params,y.params)){var fe=[],Ee=s.matchStyles(h.value,h.params,fe),Fe=s.matchStyles(y.value,y.params,fe);fe.length?this._engine.reportError(fe):this._engine.afterFlush(function(){eu(e,Ee),Bo(e,Fe)})}}},{key:"deregister",value:function(e){var n=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(i,a){delete i[e]}),this._elementListeners.forEach(function(i,a){n._elementListeners.set(a,i.filter(function(o){return o.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var n=this._engine.playersByElement.get(e);n&&(n.forEach(function(i){return i.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,n){var i=this,a=this._engine.driver.query(e,Ql,!0);a.forEach(function(o){if(!o[Gr]){var s=i._engine.fetchNamespacesByElement(o);s.size?s.forEach(function(u){return u.triggerLeaveAnimation(o,n,!1,!0)}):i.clearElementCache(o)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(o){return i.clearElementCache(o)})})}},{key:"triggerLeaveAnimation",value:function(e,n,i,a){var o=this,s=this._engine.statesByElement.get(e),u=new Map;if(s){var l=[];if(Object.keys(s).forEach(function(h){if(u.set(h,s[h].value),o._triggers[h]){var y=o.trigger(e,h,nu,a);y&&l.push(y)}}),l.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,u),i&&aa(l).onDone(function(){return o._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var n=this,i=this._elementListeners.get(e),a=this._engine.statesByElement.get(e);if(i&&a){var o=new Set;i.forEach(function(s){var u=s.name;if(!o.has(u)){o.add(u);var h=n._triggers[u].fallbackTransition,y=a[u]||iv,w=new rv(nu),K=new av(n.id,u,e);n._engine.totalQueuedPlayers++,n._queue.push({element:e,triggerName:u,transition:h,fromState:y,toState:w,player:K,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,n){var i=this,a=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),!this.triggerLeaveAnimation(e,n,!0)){var o=!1;if(a.totalAnimations){var s=a.players.length?a.playersByQueriedElement.get(e):[];if(s&&s.length)o=!0;else for(var u=e;u=u.parentNode;)if(a.statesByElement.get(u)){o=!0;break}}if(this.prepareLeaveAnimationListeners(e),o)a.markElementAsRemoved(this.id,e,!1,n);else{var h=e[Gr];(!h||h===Bb)&&(a.afterFlush(function(){return i.clearElementCache(e)}),a.destroyInnerAnimations(e),a._onRemovalComplete(e,n))}}}},{key:"insertNode",value:function(e,n){Wr(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var n=this,i=[];return this._queue.forEach(function(a){var o=a.player;if(!o.destroyed){var s=a.element,u=n._elementListeners.get(s);u&&u.forEach(function(l){if(l.name==a.triggerName){var h=Gh(s,a.triggerName,a.fromState.value,a.toState.value);h._data=e,Uh(a.player,l.phase,h,l.callback)}}),o.markedForDestroy?n._engine.afterFlush(function(){o.destroy()}):i.push(a)}}),this._queue=[],i.sort(function(a,o){var s=a.transition.ast.depCount,u=o.transition.ast.depCount;return 0==s||0==u?s-u:n._engine.driver.containsElement(a.element,o.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var n=!1;return this._elementListeners.has(e)&&(n=!0),!!this._queue.find(function(i){return i.element===e})||n}}]),t}(),LR=function(){function t(r,e,n){f(this,t),this.bodyNode=r,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(i,a){}}return v(t,[{key:"_onRemovalComplete",value:function(e,n){this.onRemovalComplete(e,n)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(i){i.queued&&e.push(i)})}),e}},{key:"createNamespace",value:function(e,n){var i=new RR(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(i,n):(this.newHostElements.set(n,i),this.collectEnterElement(n)),this._namespaceLookup[e]=i}},{key:"_balanceNamespaceList",value:function(e,n){var i=this._namespaceList.length-1;if(i>=0){for(var a=!1,o=i;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,n)){this._namespaceList.splice(o+1,0,e),a=!0;break}a||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(n,e),e}},{key:"register",value:function(e,n){var i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,n)),i}},{key:"registerTrigger",value:function(e,n,i){var a=this._namespaceLookup[e];a&&a.register(n,i)&&this.totalAnimations++}},{key:"destroy",value:function(e,n){var i=this;if(e){var a=this._fetchNamespace(e);this.afterFlush(function(){i.namespacesByHostElement.delete(a.hostElement),delete i._namespaceLookup[e];var o=i._namespaceList.indexOf(a);o>=0&&i._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(n)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var n=new Set,i=this.statesByElement.get(e);if(i)for(var a=Object.keys(i),o=0;o=0&&this.collectedLeaveElements.splice(s,1)}if(e){var u=this._fetchNamespace(e);u&&u.insertNode(n,i)}a&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Wr(e,nv)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Vo(e,nv))}},{key:"removeNode",value:function(e,n,i,a){if(oc(n)){var o=e?this._fetchNamespace(e):null;if(o?o.removeNode(n,a):this.markElementAsRemoved(e,n,!1,a),i){var s=this.namespacesByHostElement.get(n);s&&s.id!==e&&s.removeNode(n,a)}}else this._onRemovalComplete(n,a)}},{key:"markElementAsRemoved",value:function(e,n,i,a,o){this.collectedLeaveElements.push(n),n[Gr]={namespaceId:e,setForRemoval:a,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}},{key:"listen",value:function(e,n,i,a,o){return oc(n)?this._fetchNamespace(e).listen(n,i,a,o):function(){}}},{key:"_buildInstruction",value:function(e,n,i,a,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,a,e.fromState.options,e.toState.options,n,o)}},{key:"destroyInnerAnimations",value:function(e){var n=this,i=this.driver.query(e,Ql,!0);i.forEach(function(a){return n.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(i=this.driver.query(e,Xh,!0)).forEach(function(a){return n.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var n=this.playersByElement.get(e);n&&n.forEach(function(i){i.queued?i.markedForDestroy=!0:i.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var n=this.playersByQueriedElement.get(e);n&&n.forEach(function(i){return i.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(n){if(e.players.length)return aa(e.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(e){var i,n=this,a=e[Gr];if(a&&a.setForRemoval){if(e[Gr]=Bb,a.namespaceId){this.destroyInnerAnimations(e);var o=this._fetchNamespace(a.namespaceId);o&&o.clearElementCache(e)}this._onRemovalComplete(e,a.setForRemoval)}(null===(i=e.classList)||void 0===i?void 0:i.contains(nv))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(s){n.markElementAsDisabled(s,!1)})}},{key:"flush",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(w,K){return e._balanceNamespaceList(w,K)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a=0;li--)this._namespaceList[li].drainQueuedTransitions(n).forEach(function(lt){var St=lt.player,Tt=lt.element;if(wn.push(St),i.collectedEnterElements.length){var Pn=Tt[Gr];if(Pn&&Pn.setForMove){if(Pn.previousTriggersValues&&Pn.previousTriggersValues.has(lt.triggerName)){var Yo=Pn.previousTriggersValues.get(lt.triggerName),ca=i.statesByElement.get(lt.element);ca&&ca[lt.triggerName]&&(ca[lt.triggerName].value=Yo)}return void St.destroy()}}var yu=!K||!i.driver.containsElement(K,Tt),wc=cn.get(Tt),qv=Fe.get(Tt),Xn=i._buildInstruction(lt,a,qv,wc,yu);if(Xn.errors&&Xn.errors.length)Zn.push(Xn);else{if(yu)return St.onStart(function(){return eu(Tt,Xn.fromStyles)}),St.onDestroy(function(){return Bo(Tt,Xn.toStyles)}),void o.push(St);if(lt.isFallbackTransition)return St.onStart(function(){return eu(Tt,Xn.fromStyles)}),St.onDestroy(function(){return Bo(Tt,Xn.toStyles)}),void o.push(St);var Sc=[];Xn.timelines.forEach(function(Wi){Wi.stretchStartingKeyframe=!0,i.disabledNodes.has(Wi.element)||Sc.push(Wi)}),Xn.timelines=Sc,a.append(Tt,Xn.timelines),u.push({instruction:Xn,player:St,element:Tt}),Xn.queriedElements.forEach(function(Wi){return Tr(l,Wi,[]).push(St)}),Xn.preStyleProps.forEach(function(Wi,Du){var Fc=Object.keys(Wi);if(Fc.length){var Na=h.get(Du);Na||h.set(Du,Na=new Set),Fc.forEach(function(Xv){return Na.add(Xv)})}}),Xn.postStyleProps.forEach(function(Wi,Du){var Fc=Object.keys(Wi),Na=y.get(Du);Na||y.set(Du,Na=new Set),Fc.forEach(function(Xv){return Na.add(Xv)})})}});if(Zn.length){var Dr=[];Zn.forEach(function(lt){Dr.push("@".concat(lt.triggerName," has failed due to:\n")),lt.errors.forEach(function(St){return Dr.push("- ".concat(St,"\n"))})}),wn.forEach(function(lt){return lt.destroy()}),this.reportError(Dr)}var Gi=new Map,la=new Map;u.forEach(function(lt){var St=lt.element;a.has(St)&&(la.set(St,St),i._beforeAnimationBuild(lt.player.namespaceId,lt.instruction,Gi))}),o.forEach(function(lt){var St=lt.element;i._getPreviousPlayers(St,!1,lt.namespaceId,lt.triggerName,null).forEach(function(Pn){Tr(Gi,St,[]).push(Pn),Pn.destroy()})});var KA=Ce.filter(function(lt){return zb(lt,h,y)}),Ec=new Map;Hb(Ec,this.driver,Ye,y,Hi).forEach(function(lt){zb(lt,h,y)&&KA.push(lt)});var Hv=new Map;Ee.forEach(function(lt,St){Hb(Hv,i.driver,new Set(lt),h,"!")}),KA.forEach(function(lt){var St=Ec.get(lt),Tt=Hv.get(lt);Ec.set(lt,Object.assign(Object.assign({},St),Tt))});var jv=[],YA=[],$A={};u.forEach(function(lt){var St=lt.element,Tt=lt.player,Pn=lt.instruction;if(a.has(St)){if(w.has(St))return Tt.onDestroy(function(){return Bo(St,Pn.toStyles)}),Tt.disabled=!0,Tt.overrideTotalTime(Pn.totalTime),void o.push(Tt);var Yo=$A;if(la.size>1){for(var ca=St,yu=[];ca=ca.parentNode;){var wc=la.get(ca);if(wc){Yo=wc;break}yu.push(ca)}yu.forEach(function(Sc){return la.set(Sc,Yo)})}var qv=i._buildAnimation(Tt.namespaceId,Pn,Gi,s,Hv,Ec);if(Tt.setRealPlayer(qv),Yo===$A)jv.push(Tt);else{var Xn=i.playersByElement.get(Yo);Xn&&Xn.length&&(Tt.parentPlayer=aa(Xn)),o.push(Tt)}}else eu(St,Pn.fromStyles),Tt.onDestroy(function(){return Bo(St,Pn.toStyles)}),YA.push(Tt),w.has(St)&&o.push(Tt)}),YA.forEach(function(lt){var St=s.get(lt.element);if(St&&St.length){var Tt=aa(St);lt.setRealPlayer(Tt)}}),o.forEach(function(lt){lt.parentPlayer?lt.syncPlayerEvents(lt.parentPlayer):lt.destroy()});for(var Uv=0;Uv0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,i):new Lo(e.duration,e.delay)}}]),t}(),av=function(){function t(r,e,n){f(this,t),this.namespaceId=r,this.triggerName=e,this.element=n,this._player=new Lo,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return v(t,[{key:"setRealPlayer",value:function(e){var n=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(i){n._queuedCallbacks[i].forEach(function(a){return Uh(e,i,void 0,a)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var n=this,i=this._player;i.triggerCallback&&e.onStart(function(){return i.triggerCallback("start")}),e.onDone(function(){return n.finish()}),e.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(e,n){Tr(this._queuedCallbacks,e,[]).push(n)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var n=this._player;n.triggerCallback&&n.triggerCallback(e)}}]),t}();function BR(t){return null!=t?t:null}function oc(t){return t&&1===t.nodeType}function Vb(t,r){var e=t.style.display;return t.style.display=null!=r?r:"none",e}function Hb(t,r,e,n,i){var a=[];e.forEach(function(u){return a.push(Vb(u))});var o=[];n.forEach(function(u,l){var h={};u.forEach(function(y){var w=h[y]=r.computeStyle(l,y,i);(!w||0==w.length)&&(l[Gr]=IR,o.push(l))}),t.set(l,h)});var s=0;return e.forEach(function(u){return Vb(u,a[s++])}),o}function jb(t,r){var e=new Map;if(t.forEach(function(s){return e.set(s,[])}),0==r.length)return e;var i=new Set(r),a=new Map;function o(s){if(!s)return 1;var u=a.get(s);if(u)return u;var l=s.parentNode;return u=e.has(l)?l:i.has(l)?1:o(l),a.set(s,u),u}return r.forEach(function(s){var u=o(s);1!==u&&e.get(u).push(s)}),e}function Wr(t,r){var e;null===(e=t.classList)||void 0===e||e.add(r)}function Vo(t,r){var e;null===(e=t.classList)||void 0===e||e.remove(r)}function HR(t,r,e){aa(e).onDone(function(){return t.processLeaveNode(r)})}function Ub(t,r){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),t}(),KR=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a){var o;return f(this,n),(o=e.call(this))._nextAnimationId=0,o._renderer=i.createRenderer(a.body,{id:"0",encapsulation:Yr.None,styles:[],data:{animation:[]}}),o}return v(n,[{key:"build",value:function(a){var o=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(a)?db(a):a;return Xb(this._renderer,null,o,"register",[s]),new YR(o,this._renderer)}}]),n}(cb);return t.\u0275fac=function(e){return new(e||t)(He(Ts),He(jt))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t}(),YR=function(t){C(e,t);var r=T(e);function e(n,i){var a;return f(this,e),(a=r.call(this))._id=n,a._renderer=i,a}return v(e,[{key:"create",value:function(i,a){return new $R(this._id,i,a||{},this._renderer)}}]),e}(LI),$R=function(){function t(r,e,n,i){f(this,t),this.id=r,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return v(t,[{key:"_listen",value:function(e,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),n)}},{key:"_command",value:function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a=0&&n3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,n,i),this.engine.onInsert(this.namespaceId,n,e,a)}},{key:"removeChild",value:function(e,n,i){this.engine.onRemove(this.namespaceId,n,this.delegate,i)}},{key:"selectRootElement",value:function(e,n){return this.delegate.selectRootElement(e,n)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,n,i,a){this.delegate.setAttribute(e,n,i,a)}},{key:"removeAttribute",value:function(e,n,i){this.delegate.removeAttribute(e,n,i)}},{key:"addClass",value:function(e,n){this.delegate.addClass(e,n)}},{key:"removeClass",value:function(e,n){this.delegate.removeClass(e,n)}},{key:"setStyle",value:function(e,n,i,a){this.delegate.setStyle(e,n,i,a)}},{key:"removeStyle",value:function(e,n,i){this.delegate.removeStyle(e,n,i)}},{key:"setProperty",value:function(e,n,i){"@"==n.charAt(0)&&n==Kb?this.disableAnimations(e,!!i):this.delegate.setProperty(e,n,i)}},{key:"setValue",value:function(e,n){this.delegate.setValue(e,n)}},{key:"listen",value:function(e,n,i){return this.delegate.listen(e,n,i)}},{key:"disableAnimations",value:function(e,n){this.engine.disableAnimations(e,n)}}]),t}(),ZR=function(t){C(e,t);var r=T(e);function e(n,i,a,o){var s;return f(this,e),(s=r.call(this,i,a,o)).factory=n,s.namespaceId=i,s}return v(e,[{key:"setProperty",value:function(i,a,o){"@"==a.charAt(0)?"."==a.charAt(1)&&a==Kb?this.disableAnimations(i,o=void 0===o||!!o):this.engine.process(this.namespaceId,i,a.substr(1),o):this.delegate.setProperty(i,a,o)}},{key:"listen",value:function(i,a,o){var s=this;if("@"==a.charAt(0)){var u=function JR(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i),l=a.substr(1),h="";if("@"!=l.charAt(0)){var y=function eL(t){var r=t.indexOf(".");return[t.substring(0,r),t.substr(r+1)]}(l),w=j(y,2);l=w[0],h=w[1]}return this.engine.listen(this.namespaceId,u,l,h,function(K){s.factory.scheduleListenerCallback(K._data||-1,o,K)})}return this.delegate.listen(i,a,o)}}]),e}(Yb),tL=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a,o){return f(this,n),e.call(this,i.body,a,o)}return v(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(sc);return t.\u0275fac=function(e){return new(e||t)(He(jt),He(Db),He(ev))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t}(),oa=new at("AnimationModuleType"),iL=[{provide:cb,useClass:KR},{provide:ev,useFactory:function nL(){return new yR}},{provide:sc,useClass:tL},{provide:Ts,useFactory:function rL(t,r,e){return new QR(t,r,e)},deps:[Vl,sc,Gt]}],aL=[{provide:Db,useClass:yb},{provide:oa,useValue:"NoopAnimations"}].concat(iL),oL=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({providers:aL,imports:[nD]}),t}(),sL=new at("cdk-dir-doc",{providedIn:"root",factory:function uL(){return sd(jt)}}),lL=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,Pa=function(){var t=function(){function r(e){f(this,r),this.value="ltr",this.change=new It,e&&(this.value=function cL(t){var r=(null==t?void 0:t.toLowerCase())||"";return"auto"===r&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?lL.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}return v(r,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(sL,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),ru=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({}),t}();try{cv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){cv=!1}var Ho,au,lc,Oa,dv,Qn=function(){var t=v(function r(e){f(this,r),this._platformId=e,this.isBrowser=this._platformId?function nx(t){return t===G0}(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&&!cv)&&"undefined"!=typeof CSS&&!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 t.\u0275fac=function(e){return new(e||t)(He(Al))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),iu=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({}),t}(),Qb=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Zb(){if(Ho)return Ho;if("object"!=typeof document||!document)return Ho=new Set(Qb);var t=document.createElement("input");return Ho=new Set(Qb.filter(function(r){return t.setAttribute("type",r),t.type===r}))}function ou(t){return function dL(){if(null==au&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return au=!0}}))}finally{au=au||!1}return au}()?t:!!t.capture}function Jb(){if(null==Oa){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Oa=!1;if("scrollBehavior"in document.documentElement.style)Oa=!0;else{var t=Element.prototype.scrollTo;Oa=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Oa}function su(){if("object"!=typeof document||!document)return 0;if(null==lc){var t=document.createElement("div"),r=t.style;t.dir="rtl",r.width="1px",r.overflow="auto",r.visibility="hidden",r.pointerEvents="none",r.position="absolute";var e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),lc=0,0===t.scrollLeft&&(t.scrollLeft=1,lc=0===t.scrollLeft?1:2),t.remove()}return lc}function hL(t){if(function fL(){if(null==dv){var t="undefined"!=typeof document?document.head:null;dv=!(!t||!t.createShadowRoot&&!t.attachShadow)}return dv}()){var r=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function xa(t){return t.composedPath?t.composedPath()[0]:t.target}function fv(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}var vL=function(t){C(e,t);var r=T(e);function e(n){var i;return f(this,e),(i=r.call(this))._value=n,i}return v(e,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(i){var a=M(p(e.prototype),"_subscribe",this).call(this,i);return a&&!a.closed&&i.next(this._value),a}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new De;return this._value}},{key:"next",value:function(i){M(p(e.prototype),"next",this).call(this,this._value=i)}}]),e}(Se);function ji(){for(var t=arguments.length,r=new Array(t),e=0;e1?r-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=i;var o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,a)),this.pending=!0,this.delay=a,this.id=this.id||this.requestAsyncId(s,this.id,a),this}},{key:"requestAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(i.flush.bind(i,this),o)}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==o&&this.delay===o&&!1===this.pending)return a;clearInterval(a)}},{key:"execute",value:function(i,a){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(i,a);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(i,a){var o=!1,s=void 0;try{this.work(i)}catch(u){o=!0,s=!!u&&u||new Error(u)}if(o)return this.unsubscribe(),s}},{key:"_unsubscribe",value:function(){var i=this.id,a=this.scheduler,o=a.actions,s=o.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&o.splice(s,1),null!=i&&(this.id=this.recycleAsyncId(a,i,null)),this.delay=null}}]),e}(FL),rC=function(){var t=function(){function r(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;f(this,r),this.SchedulerAction=e,this.now=n}return v(r,[{key:"schedule",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,n).schedule(a,i)}}]),r}();return t.now=function(){return Date.now()},t}(),yv=function(t){C(e,t);var r=T(e);function e(n){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rC.now;return f(this,e),(i=r.call(this,n,function(){return e.delegate&&e.delegate!==ce(i)?e.delegate.now():a()})).actions=[],i.active=!1,i.scheduled=void 0,i}return v(e,[{key:"schedule",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;return e.delegate&&e.delegate!==this?e.delegate.schedule(i,a,o):M(p(e.prototype),"schedule",this).call(this,i,a,o)}},{key:"flush",value:function(i){var a=this.actions;if(this.active)a.push(i);else{var o;this.active=!0;do{if(o=i.execute(i.state,i.delay))break}while(i=a.shift());if(this.active=!1,o){for(;i=a.shift();)i.unsubscribe();throw o}}}}]),e}(rC),Dv=new yv(_v);function uu(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dv;return function(e){return e.lift(new ML(t,r))}}var ML=function(){function t(r,e){f(this,t),this.dueTime=r,this.scheduler=e}return v(t,[{key:"call",value:function(e,n){return n.subscribe(new TL(e,this.dueTime,this.scheduler))}}]),t}(),TL=function(t){C(e,t);var r=T(e);function e(n,i,a){var o;return f(this,e),(o=r.call(this,n)).dueTime=i,o.scheduler=a,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return v(e,[{key:"_next",value:function(i){this.clearDebounce(),this.lastValue=i,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(PL,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var i=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(i)}}},{key:"clearDebounce",value:function(){var i=this.debouncedSubscription;null!==i&&(this.remove(i),i.unsubscribe(),this.debouncedSubscription=null)}}]),e}(b);function PL(t){t.debouncedNext()}function qr(t,r){return function(n){return n.lift(new OL(t,r))}}var OL=function(){function t(r,e){f(this,t),this.predicate=r,this.thisArg=e}return v(t,[{key:"call",value:function(e,n){return n.subscribe(new xL(e,this.predicate,this.thisArg))}}]),t}(),xL=function(t){C(e,t);var r=T(e);function e(n,i,a){var o;return f(this,e),(o=r.call(this,n)).predicate=i,o.thisArg=a,o.count=0,o}return v(e,[{key:"_next",value:function(i){var a;try{a=this.predicate.call(this.thisArg,i,this.count++)}catch(o){return void this.destination.error(o)}a&&this.destination.next(i)}}]),e}(b),IL=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),RL=IL,iC=new ve(function(t){return t.complete()});function aC(t){return t?function LL(t){return new ve(function(r){return t.schedule(function(){return r.complete()})})}(t):iC}function ui(t){return function(r){return 0===t?aC():r.lift(new NL(t))}}var NL=function(){function t(r){if(f(this,t),this.total=r,this.total<0)throw new RL}return v(t,[{key:"call",value:function(e,n){return n.subscribe(new BL(e,this.total))}}]),t}(),BL=function(t){C(e,t);var r=T(e);function e(n,i){var a;return f(this,e),(a=r.call(this,n)).total=i,a.count=0,a}return v(e,[{key:"_next",value:function(i){var a=this.total,o=++this.count;o<=a&&(this.destination.next(i),o===a&&(this.destination.complete(),this.unsubscribe()))}}]),e}(b);function oC(t){return function(r){return r.lift(new VL(t))}}var VL=function(){function t(r){f(this,t),this.total=r}return v(t,[{key:"call",value:function(e,n){return n.subscribe(new HL(e,this.total))}}]),t}(),HL=function(t){C(e,t);var r=T(e);function e(n,i){var a;return f(this,e),(a=r.call(this,n)).total=i,a.count=0,a}return v(e,[{key:"_next",value:function(i){++this.count>this.total&&this.destination.next(i)}}]),e}(b);function bv(t,r){return function(e){return e.lift(new jL(t,r))}}var jL=function(){function t(r,e){f(this,t),this.compare=r,this.keySelector=e}return v(t,[{key:"call",value:function(e,n){return n.subscribe(new UL(e,this.compare,this.keySelector))}}]),t}(),UL=function(t){C(e,t);var r=T(e);function e(n,i,a){var o;return f(this,e),(o=r.call(this,n)).keySelector=a,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return v(e,[{key:"compare",value:function(i,a){return i===a}},{key:"_next",value:function(i){var a;try{var o=this.keySelector;a=o?o(i):i}catch(l){return this.destination.error(l)}var s=!1;if(this.hasKey)try{s=(0,this.compare)(this.key,a)}catch(l){return this.destination.error(l)}else this.hasKey=!0;s||(this.key=a,this.destination.next(i))}}]),e}(b);function Ct(t){return function(r){return r.lift(new zL(t))}}var zL=function(){function t(r){f(this,t),this.notifier=r}return v(t,[{key:"call",value:function(e,n){var i=new GL(e),a=Oe(i,this.notifier);return a&&!i.seenValue?(i.add(a),n.subscribe(i)):i}}]),t}(),GL=function(t){C(e,t);var r=T(e);function e(n){var i;return f(this,e),(i=r.call(this,n)).seenValue=!1,i}return v(e,[{key:"notifyNext",value:function(i,a,o,s,u){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),e}(Ne);function _n(t){return null!=t&&"false"!=="".concat(t)}function lu(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return WL(t)?Number(t):r}function WL(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function dc(t){return Array.isArray(t)?t:[t]}function jn(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function Ui(t){return t instanceof rn?t.nativeElement:t}var sC=function(){var t=function(){function r(){f(this,r)}return v(r,[{key:"create",value:function(n){return"undefined"==typeof MutationObserver?null:new MutationObserver(n)}}]),r}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),qL=function(){var t=function(){function r(e){f(this,r),this._mutationObserverFactory=e,this._observedElements=new Map}return v(r,[{key:"ngOnDestroy",value:function(){var n=this;this._observedElements.forEach(function(i,a){return n._cleanupObserver(a)})}},{key:"observe",value:function(n){var i=this,a=Ui(n);return new ve(function(o){var u=i._observeElement(a).subscribe(o);return function(){u.unsubscribe(),i._unobserveElement(a)}})}},{key:"_observeElement",value:function(n){if(this._observedElements.has(n))this._observedElements.get(n).count++;else{var i=new Se,a=this._mutationObserverFactory.create(function(o){return i.next(o)});a&&a.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:a,stream:i,count:1})}return this._observedElements.get(n).stream}},{key:"_unobserveElement",value:function(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}},{key:"_cleanupObserver",value:function(n){if(this._observedElements.has(n)){var i=this._observedElements.get(n),a=i.observer,o=i.stream;a&&a.disconnect(),o.complete(),this._observedElements.delete(n)}}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(sC))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),uC=function(){var t=function(){function r(e,n,i){f(this,r),this._contentObserver=e,this._elementRef=n,this._ngZone=i,this.event=new It,this._disabled=!1,this._currentSubscription=null}return v(r,[{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=_n(n),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(n){this._debounce=lu(n),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var n=this;this._unsubscribe();var i=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){n._currentSubscription=(n.debounce?i.pipe(uu(n.debounce)):i).subscribe(n.event)})}},{key:"_unsubscribe",value:function(){var n;null===(n=this._currentSubscription)||void 0===n||n.unsubscribe()}}]),r}();return t.\u0275fac=function(e){return new(e||t)(we(qL),we(rn),we(Gt))},t.\u0275dir=ht({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t}(),Cv=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({providers:[sC]}),t}();function fc(t,r){return(t.getAttribute(r)||"").match(/\S+/g)||[]}var cC="cdk-describedby-message-container",dC="cdk-describedby-message",hc="cdk-describedby-host",YL=0,Ai=new Map,Or=null,$L=function(){var t=function(){function r(e){f(this,r),this._document=e}return v(r,[{key:"describe",value:function(n,i,a){if(this._canBeDescribed(n,i)){var o=Av(i,a);"string"!=typeof i?(fC(i),Ai.set(o,{messageElement:i,referenceCount:0})):Ai.has(o)||this._createMessageElement(i,a),this._isElementDescribedByMessage(n,o)||this._addMessageReference(n,o)}}},{key:"removeDescription",value:function(n,i,a){if(i&&this._isElementNode(n)){var o=Av(i,a);if(this._isElementDescribedByMessage(n,o)&&this._removeMessageReference(n,o),"string"==typeof i){var s=Ai.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}Or&&0===Or.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var n=this._document.querySelectorAll("[".concat(hc,"]")),i=0;i-1&&a!==e._activeItemIndex&&(e._activeItemIndex=a)}})}return v(t,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(cc(function(i){return e._pressedLetters.push(i)}),uu(n),qr(function(){return e._pressedLetters.length>0}),Me(function(){return e._pressedLetters.join("")})).subscribe(function(i){for(var a=e._getItemsArray(),o=1;o0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var n=this._activeItem;this.updateActiveItem(e),this._activeItem!==n&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var n=this,i=e.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(function(s){return!e[s]||n._allowedModifierKeys.indexOf(s)>-1});switch(i){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;default:return void((o||Ia(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(i>=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var n=this._getItemsArray(),i="number"==typeof e?e:n.indexOf(e),a=n[i];this._activeItem=null==a?null:a,this._activeItemIndex=i}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var n=this._getItemsArray(),i=1;i<=n.length;i++){var a=(this._activeItemIndex+e*i+n.length)%n.length;if(!this._skipPredicateFn(n[a]))return void this.setActiveItem(a)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,n){var i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=n])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof _l?this._items.toArray():this._items}}]),t}(),ZL=function(t){C(e,t);var r=T(e);function e(){return f(this,e),r.apply(this,arguments)}return v(e,[{key:"setActiveItem",value:function(i){this.activeItem&&this.activeItem.setInactiveStyles(),M(p(e.prototype),"setActiveItem",this).call(this,i),this.activeItem&&this.activeItem.setActiveStyles()}}]),e}(QL),hC=function(){var t=function(){function r(e){f(this,r),this._platform=e}return v(r,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function eN(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var i=function JL(t){try{return t.frameElement}catch(r){return null}}(function uN(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(n));if(i&&(-1===pC(i)||!this.isVisible(i)))return!1;var a=n.nodeName.toLowerCase(),o=pC(n);return n.hasAttribute("contenteditable")?-1!==o:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function oN(t){var r=t.nodeName.toLowerCase(),e="input"===r&&t.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(n))&&("audio"===a?!!n.hasAttribute("controls")&&-1!==o:"video"===a?-1!==o&&(null!==o||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,i){return function sN(t){return!function nN(t){return function iN(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function tN(t){var r=t.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(t)||function rN(t){return function aN(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||vC(t))}(n)&&!this.isDisabled(n)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(n))}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(Qn))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}();function vC(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var r=t.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function pC(t){if(!vC(t))return null;var r=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}var lN=function(){function t(r,e,n,i){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];f(this,t),this._element=r,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return v(t,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,n=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.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)}},{key:"focusInitialElementWhenReady",value:function(e){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){var n=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], ")+"[cdkFocusRegion".concat(e,"], ")+"[cdk-focus-".concat(e,"]"));return"start"==e?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(e){var n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){var i=this._getFirstTabbableElement(n);return null==i||i.focus(e),!!i}return n.focus(e),!0}return this.focusFirstTabbableElement(e)}},{key:"focusFirstTabbableElement",value:function(e){var n=this._getRegionBoundary("start");return n&&n.focus(e),!!n}},{key:"focusLastTabbableElement",value:function(e){var n=this._getRegionBoundary("end");return n&&n.focus(e),!!n}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var n=e.children,i=0;i=0;i--){var a=n[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[i]):null;if(a)return a}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,n){e?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(ui(1)).subscribe(e)}}]),t}(),cN=function(){var t=function(){function r(e,n,i){f(this,r),this._checker=e,this._ngZone=n,this._document=i}return v(r,[{key:"create",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new lN(n,this._checker,this._ngZone,this._document,i)}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(hC),He(Gt),He(jt))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}();function gC(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function mC(t){var r=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}var dN=new at("cdk-input-modality-detector-options"),fN={ignoreKeys:[18,17,224,91,16]},jo=ou({passive:!0,capture:!0}),hN=function(){var t=function(){function r(e,n,i,a){var o=this;f(this,r),this._platform=e,this._mostRecentTarget=null,this._modality=new vL(null),this._lastTouchMs=0,this._onKeydown=function(s){var u,l;(null===(l=null===(u=o._options)||void 0===u?void 0:u.ignoreKeys)||void 0===l?void 0:l.some(function(h){return h===s.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=xa(s))},this._onMousedown=function(s){Date.now()-o._lastTouchMs<650||(o._modality.next(gC(s)?"keyboard":"mouse"),o._mostRecentTarget=xa(s))},this._onTouchstart=function(s){mC(s)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=xa(s))},this._options=Object.assign(Object.assign({},fN),a),this.modalityDetected=this._modality.pipe(oC(1)),this.modalityChanged=this.modalityDetected.pipe(bv()),e.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,jo),i.addEventListener("mousedown",o._onMousedown,jo),i.addEventListener("touchstart",o._onTouchstart,jo)})}return v(r,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,jo),document.removeEventListener("mousedown",this._onMousedown,jo),document.removeEventListener("touchstart",this._onTouchstart,jo))}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(Qn),He(Gt),He(jt),He(dN,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),vN=new at("liveAnnouncerElement",{providedIn:"root",factory:function pN(){return null}}),gN=new at("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),mN=function(){var t=function(){function r(e,n,i,a){f(this,r),this._ngZone=n,this._defaultOptions=a,this._document=i,this._liveElement=e||this._createLiveElement()}return v(r,[{key:"announce",value:function(n){for(var o,s,i=this,a=this._defaultOptions,u=arguments.length,l=new Array(u>1?u-1:0),h=1;h1&&void 0!==arguments[1]&&arguments[1],a=Ui(n);if(!this._platform.isBrowser||1!==a.nodeType)return ji(null);var o=hL(a)||this._getDocument(),s=this._elementInfo.get(a);if(s)return i&&(s.checkChildren=!0),s.subject;var u={checkChildren:i,subject:new Se,rootNode:o};return this._elementInfo.set(a,u),this._registerGlobalListeners(u),u.subject}},{key:"stopMonitoring",value:function(n){var i=Ui(n),a=this._elementInfo.get(i);a&&(a.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(a))}},{key:"focusVia",value:function(n,i,a){var o=this,s=Ui(n);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(function(l){var h=j(l,2);return o._originChanged(h[0],i,h[1])}):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(a))}},{key:"ngOnDestroy",value:function(){var n=this;this._elementInfo.forEach(function(i,a){return n.stopMonitoring(a)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_getFocusOrigin",value:function(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(n){return 1===this._detectionMode||!!(null==n?void 0:n.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(n,i){n.classList.toggle("cdk-focused",!!i),n.classList.toggle("cdk-touch-focused","touch"===i),n.classList.toggle("cdk-keyboard-focused","keyboard"===i),n.classList.toggle("cdk-mouse-focused","mouse"===i),n.classList.toggle("cdk-program-focused","program"===i)}},{key:"_setOrigin",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){i._origin=n,i._originFromTouchInteraction="touch"===n&&a,0===i._detectionMode&&(clearTimeout(i._originTimeoutId),i._originTimeoutId=setTimeout(function(){return i._origin=null},i._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(n,i){var a=this._elementInfo.get(i),o=xa(n);!a||!a.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),a)}},{key:"_onBlur",value:function(n,i){var a=this._elementInfo.get(i);!a||a.checkChildren&&n.relatedTarget instanceof Node&&i.contains(n.relatedTarget)||(this._setClasses(i),this._emitOrigin(a.subject,null))}},{key:"_emitOrigin",value:function(n,i){this._ngZone.run(function(){return n.next(i)})}},{key:"_registerGlobalListeners",value:function(n){var i=this;if(this._platform.isBrowser){var a=n.rootNode,o=this._rootNodeFocusListenerCount.get(a)||0;o||this._ngZone.runOutsideAngular(function(){a.addEventListener("focus",i._rootNodeFocusAndBlurListener,vc),a.addEventListener("blur",i._rootNodeFocusAndBlurListener,vc)}),this._rootNodeFocusListenerCount.set(a,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){i._getWindow().addEventListener("focus",i._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ct(this._stopInputModalityDetector)).subscribe(function(s){i._setOrigin(s,!0)}))}}},{key:"_removeGlobalListeners",value:function(n){var i=n.rootNode;if(this._rootNodeFocusListenerCount.has(i)){var a=this._rootNodeFocusListenerCount.get(i);a>1?this._rootNodeFocusListenerCount.set(i,a-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,vc),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,vc),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(n,i,a){this._setClasses(n,i),this._emitOrigin(a.subject,i),this._lastFocusOrigin=i}},{key:"_getClosestElementsInfo",value:function(n){var i=[];return this._elementInfo.forEach(function(a,o){(o===n||a.checkChildren&&o.contains(n))&&i.push([o,a])}),i}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(Gt),He(Qn),He(hN),He(jt,8),He(_N,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),yC="cdk-high-contrast-black-on-white",DC="cdk-high-contrast-white-on-black",kv="cdk-high-contrast-active",bC=function(){var t=function(){function r(e,n){f(this,r),this._platform=e,this._document=n}return v(r,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);var i=this._document.defaultView||window,a=i&&i.getComputedStyle?i.getComputedStyle(n):null,o=(a&&a.backgroundColor||"").replace(/ /g,"");switch(n.remove(),o){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var n=this._document.body.classList;n.remove(kv),n.remove(yC),n.remove(DC),this._hasCheckedHighContrastMode=!0;var i=this.getHighContrastMode();1===i?(n.add(kv),n.add(yC)):2===i&&(n.add(kv),n.add(DC))}}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(Qn),He(jt))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),yN=function(){var t=v(function r(e){f(this,r),e._applyBodyHighContrastModeCssClasses()});return t.\u0275fac=function(e){return new(e||t)(He(bC))},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({imports:[[iu,Cv]]}),t}();function DN(t,r){if(1&t&&en(0,"mat-pseudo-checkbox",4),2&t){var e=zt();ot("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function bN(t,r){if(1&t&&(je(0,"span",5),Kt(1),Ue()),2&t){var e=zt();et(1),Li("(",e.group.label,")")}}var CN=["*"],kN=new at("mat-sanity-checks",{providedIn:"root",factory:function AN(){return!0}}),Rn=function(){var t=function(){function r(e,n,i){f(this,r),this._sanityChecks=n,this._document=i,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return v(r,[{key:"_checkIsEnabled",value:function(n){return!fv()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(bC),He(kN,8),He(jt))},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({imports:[[ru],ru]}),t}();function Ev(t){return function(r){C(n,r);var e=T(n);function n(){var i;f(this,n);for(var a=arguments.length,o=new Array(a),s=0;s1&&void 0!==arguments[1]?arguments[1]:0;return function(e){C(i,e);var n=T(i);function i(){var a;f(this,i);for(var o=arguments.length,s=new Array(o),u=0;u2&&void 0!==arguments[2]?arguments[2]:{},o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},EC),a.animation);a.centered&&(e=o.left+o.width/2,n=o.top+o.height/2);var u=a.radius||TN(e,n,o),l=e-o.left,h=n-o.top,y=s.enterDuration,w=document.createElement("div");w.classList.add("mat-ripple-element"),w.style.left="".concat(l-u,"px"),w.style.top="".concat(h-u,"px"),w.style.height="".concat(2*u,"px"),w.style.width="".concat(2*u,"px"),null!=a.color&&(w.style.backgroundColor=a.color),w.style.transitionDuration="".concat(y,"ms"),this._containerElement.appendChild(w),MN(w),w.style.transform="scale(1)";var K=new wN(this,w,a);return K.state=0,this._activeRipples.add(K),a.persistent||(this._mostRecentTransientRipple=K),this._runTimeoutOutsideZone(function(){var fe=K===i._mostRecentTransientRipple;K.state=1,!a.persistent&&(!fe||!i._isPointerDown)&&K.fadeOut()},y),K}},{key:"fadeOutRipple",value:function(e){var n=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var i=e.element,a=Object.assign(Object.assign({},EC),e.config.animation);i.style.transitionDuration="".concat(a.exitDuration,"ms"),i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,i.remove()},a.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var n=Ui(e);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(wC))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(SC),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var n=gC(e),i=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,n)})}},{key:"_registerEvents",value:function(e){var n=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(i){n._triggerElement.addEventListener(i,n,Fv)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(wC.forEach(function(n){e._triggerElement.removeEventListener(n,e,Fv)}),this._pointerUpEventsRegistered&&SC.forEach(function(n){e._triggerElement.removeEventListener(n,e,Fv)}))}}]),t}();function MN(t){window.getComputedStyle(t).getPropertyValue("opacity")}function TN(t,r,e){var n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),i=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(n*n+i*i)}var PN=new at("mat-ripple-global-options"),hu=function(){var t=function(){function r(e,n,i,a,o){f(this,r),this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new FN(this,n,e,i)}return v(r,[{key:"disabled",get:function(){return this._disabled},set:function(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,i,Object.assign(Object.assign({},this.rippleConfig),a)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),n))}}]),r}();return t.\u0275fac=function(e){return new(e||t)(we(rn),we(Gt),we(Qn),we(PN,8),we(oa,8))},t.\u0275dir=ht({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,n){2&e&&mn("mat-ripple-unbounded",n.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"]}),t}(),Mv=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({imports:[[Rn,iu],Rn]}),t}(),ON=function(){var t=v(function r(e){f(this,r),this._animationMode=e,this.state="unchecked",this.disabled=!1});return t.\u0275fac=function(e){return new(e||t)(we(oa,8))},t.\u0275cmp=Yn({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,n){2&e&&mn("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,n){},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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::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}\n'],encapsulation:2,changeDetection:0}),t}(),xN=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({imports:[[Rn]]}),t}(),FC=new at("MAT_OPTION_PARENT_COMPONENT"),MC=new at("MatOptgroup"),IN=0,RN=v(function t(r){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f(this,t),this.source=r,this.isUserInput=e}),LN=function(){var t=function(){function r(e,n,i,a){f(this,r),this._element=e,this._changeDetectorRef=n,this._parent=i,this.group=a,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(IN++),this.onSelectionChange=new It,this._stateChanges=new Se}return v(r,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(n){this._disabled=_n(n)}},{key:"disableRipple",get:function(){return!(!this._parent||!this._parent.disableRipple)}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(n,i){var a=this._getHostElement();"function"==typeof a.focus&&a.focus(i)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(n){(13===n.keyCode||32===n.keyCode)&&!Ia(n)&&(this._selectViaInteraction(),n.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue=n,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new RN(this,n))}}]),r}();return t.\u0275fac=function(e){df()},t.\u0275dir=ht({type:t,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),TC=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a,o,s){return f(this,n),e.call(this,i,a,o,s)}return v(n)}(LN);return t.\u0275fac=function(e){return new(e||t)(we(rn),we(Bi),we(FC,8),we(MC,8))},t.\u0275cmp=Yn({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,n){1&e&&wt("click",function(){return n._selectViaInteraction()})("keydown",function(a){return n._handleKeydown(a)}),2&e&&(Es("id",n.id),gn("tabindex",n._getTabIndex())("aria-selected",n._getAriaSelected())("aria-disabled",n.disabled.toString()),mn("mat-selected",n.selected)("mat-option-multiple",n.multiple)("mat-active",n.active)("mat-option-disabled",n.disabled))},exportAs:["matOption"],features:[xt],ngContentSelectors:CN,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(e,n){1&e&&(Hr(),Jt(0,DN,1,2,"mat-pseudo-checkbox",0),je(1,"span",1),kn(2),Ue(),Jt(3,bN,2,1,"span",2),en(4,"div",3)),2&e&&(ot("ngIf",n.multiple),et(3),ot("ngIf",n.group&&n.group._inert),et(1),ot("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},directives:[ON,js,hu],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:transparent}.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;-moz-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}\n"],encapsulation:2,changeDetection:0}),t}();function PC(t,r,e){if(e.length){for(var n=r.toArray(),i=e.toArray(),a=0,o=0;o*,.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}\n"],encapsulation:2,changeDetection:0}),t}(),UN=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a,o,s){var u;return f(this,n),(u=e.call(this,a,i,o))._ngZone=s,u._haltDisabledEvents=function(l){u.disabled&&(l.preventDefault(),l.stopImmediatePropagation())},u}return v(n,[{key:"ngAfterViewInit",value:function(){var a=this;M(p(n.prototype),"ngAfterViewInit",this).call(this),this._ngZone?this._ngZone.runOutsideAngular(function(){a._elementRef.nativeElement.addEventListener("click",a._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}},{key:"ngOnDestroy",value:function(){M(p(n.prototype),"ngOnDestroy",this).call(this),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}]),n}(RC);return t.\u0275fac=function(e){return new(e||t)(we(cu),we(rn),we(oa,8),we(Gt,8))},t.\u0275cmp=Yn({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,n){2&e&&(gn("tabindex",n.disabled?-1:n.tabIndex||0)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString()),mn("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[xt],attrs:xC,ngContentSelectors:IC,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(e,n){1&e&&(Hr(),je(0,"span",0),kn(1),Ue(),en(2,"span",1),en(3,"span",2)),2&e&&(et(2),mn("mat-button-ripple-round",n.isRoundButton||n.isIconButton),ot("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},directives:[hu],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;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-raised-button{transition:none;animation:none}.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;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-fab{transition:none;animation:none}.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;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-mini-fab{transition:none;animation:none}.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}\n"],encapsulation:2,changeDetection:0}),t}(),LC=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({imports:[[Mv,Rn],Rn]}),t}();function yn(t,r,e,n){return B(e)&&(n=e,e=void 0),n?yn(t,r,e).pipe(Me(function(i){return te(i)?n.apply(void 0,P(i)):n(i)})):new ve(function(i){NC(t,r,function a(o){i.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},i,e)})}function NC(t,r,e,n,i){var a;if(function WN(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var o=t;t.addEventListener(r,e,i),a=function(){return o.removeEventListener(r,e,i)}}else if(function GN(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(r,e),a=function(){return s.off(r,e)}}else if(function zN(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var u=t;t.addListener(r,e),a=function(){return u.removeListener(r,e)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l enter",[or({opacity:0,transform:"translateY(-5px)"}),wa("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},pc=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ht({type:t}),t}(),h2=0,VC=new at("MatHint"),v2=function(){var t=v(function r(){f(this,r),this.align="start",this.id="mat-hint-".concat(h2++)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ht({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,n){2&e&&(gn("id",n.id)("align",null),mn("mat-form-field-hint-end","end"===n.align))},inputs:{align:"align",id:"id"},features:[nn([{provide:VC,useExisting:t}])]}),t}(),Pv=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ht({type:t,selectors:[["mat-label"]]}),t}(),p2=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ht({type:t,selectors:[["mat-placeholder"]]}),t}(),g2=new at("MatPrefix"),m2=new at("MatSuffix"),HC=0,y2=du(function(){return v(function t(r){f(this,t),this._elementRef=r})}(),"primary"),D2=new at("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ov=new at("MatFormField"),b2=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a,o,s,u,l,h){var y;return f(this,n),(y=e.call(this,i))._changeDetectorRef=a,y._dir=o,y._defaults=s,y._platform=u,y._ngZone=l,y._outlineGapCalculationNeededImmediately=!1,y._outlineGapCalculationNeededOnStable=!1,y._destroyed=new Se,y._showAlwaysAnimate=!1,y._subscriptAnimationState="",y._hintLabel="",y._hintLabelId="mat-hint-".concat(HC++),y._labelId="mat-form-field-label-".concat(HC++),y.floatLabel=y._getDefaultFloatLabelState(),y._animationsEnabled="NoopAnimations"!==h,y.appearance=s&&s.appearance?s.appearance:"legacy",y._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker,y}return v(n,[{key:"appearance",get:function(){return this._appearance},set:function(a){var o=this._appearance;this._appearance=a||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&o!==a&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=_n(a)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(a){this._hintLabel=a,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(a){a!==this._floatLabel&&(this._floatLabel=a||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(a){this._explicitFormFieldControl=a}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var a=this;this._validateControlChild();var o=this._control;o.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(o.controlType)),o.stateChanges.pipe(ua(null)).subscribe(function(){a._validatePlaceholders(),a._syncDescribedByIds(),a._changeDetectorRef.markForCheck()}),o.ngControl&&o.ngControl.valueChanges&&o.ngControl.valueChanges.pipe(Ct(this._destroyed)).subscribe(function(){return a._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(Ct(a._destroyed)).subscribe(function(){a._outlineGapCalculationNeededOnStable&&a.updateOutlineGap()})}),nt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._outlineGapCalculationNeededOnStable=!0,a._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ua(null)).subscribe(function(){a._processHints(),a._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ua(null)).subscribe(function(){a._syncDescribedByIds(),a._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ct(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?a._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return a.updateOutlineGap()})}):a.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(a){var o=this._control?this._control.ngControl:null;return o&&o[a]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var a=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,yn(this._label.nativeElement,"transitionend").pipe(ui(1)).subscribe(function(){a._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var a=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&a.push.apply(a,P(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var o=this._hintChildren?this._hintChildren.find(function(u){return"start"===u.align}):null,s=this._hintChildren?this._hintChildren.find(function(u){return"end"===u.align}):null;o?a.push(o.id):this._hintLabel&&a.push(this._hintLabelId),s&&a.push(s.id)}else this._errorChildren&&a.push.apply(a,P(this._errorChildren.map(function(u){return u.id})));this._control.setDescribedByIds(a)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var a=this._label?this._label.nativeElement:null,o=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"===this.appearance&&this._platform.isBrowser){if(!a||!a.children.length||!a.textContent.trim()){for(var l=o.querySelectorAll("".concat(s,", ").concat(u)),h=0;h0?.75*ze+10:0}for(var ut=0;ut-1}},{key:"_isBadInput",value:function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var a=this._elementRef.nativeElement,o=a.options[0];return this.focused||a.multiple||!this.empty||!!(a.selectedIndex>-1&&o&&o.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||a.size>1)}}]),n}(w2);return t.\u0275fac=function(e){return new(e||t)(we(rn),we(Qn),we(Ci,10),we($s,8),we(Qs,8),we(Sv),we(A2,10),we(C2),we(Gt),we(Ov,8))},t.\u0275dir=ht({type:t,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(e,n){1&e&&wt("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&e&&(Es("disabled",n.disabled)("required",n.required),gn("id",n.id)("data-placeholder",n.placeholder)("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),mn("mat-input-server",n._isServer)("mat-native-select-inline",n._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:[nn([{provide:pc,useExisting:t}]),xt,_r]}),t}(),GC=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({providers:[Sv],imports:[[zC,vu,Rn],zC,vu]}),t}(),F2=["thumbContainer"],M2=["toggleBar"],T2=["input"],P2=function(r){return{enterDuration:r}},O2=["*"],x2=new at("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),I2=0,R2={provide:si,useExisting:Dt(function(){return WC}),multi:!0},L2=v(function t(r,e){f(this,t),this.source=r,this.checked=e}),N2=AC(du(wv(Ev(function(){return v(function t(r){f(this,t),this._elementRef=r})}())))),WC=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a,o,s,u,l){var h;return f(this,n),(h=e.call(this,i))._focusMonitor=a,h._changeDetectorRef=o,h.defaults=u,h._onChange=function(y){},h._onTouched=function(){},h._uniqueId="mat-slide-toggle-".concat(++I2),h._required=!1,h._checked=!1,h.name=null,h.id=h._uniqueId,h.labelPosition="after",h.ariaLabel=null,h.ariaLabelledby=null,h.change=new It,h.toggleChange=new It,h.tabIndex=parseInt(s)||0,h.color=h.defaultColor=u.color||"accent",h._noopAnimations="NoopAnimations"===l,h}return v(n,[{key:"required",get:function(){return this._required},set:function(a){this._required=_n(a)}},{key:"checked",get:function(){return this._checked},set:function(a){this._checked=_n(a),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(o){o||Promise.resolve().then(function(){return a._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(a){a.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(a){a.stopPropagation()}},{key:"writeValue",value:function(a){this.checked=!!a}},{key:"registerOnChange",value:function(a){this._onChange=a}},{key:"registerOnTouched",value:function(a){this._onTouched=a}},{key:"setDisabledState",value:function(a){this.disabled=a,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(a,o){o?this._focusMonitor.focusVia(this._inputElement,o,a):this._inputElement.nativeElement.focus(a)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new L2(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),n}(N2);return t.\u0275fac=function(e){return new(e||t)(we(rn),we(cu),we(Bi),ga("tabindex"),we(x2),we(oa,8))},t.\u0275cmp=Yn({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,n){var i;1&e&&(hr(F2,5),hr(M2,5),hr(T2,5)),2&e&&(sn(i=un())&&(n._thumbEl=i.first),sn(i=un())&&(n._thumbBarEl=i.first),sn(i=un())&&(n._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(e,n){2&e&&(Es("id",n.id),gn("tabindex",null)("aria-label",null)("aria-labelledby",null),mn("mat-checked",n.checked)("mat-disabled",n.disabled)("mat-slide-toggle-label-before","before"==n.labelPosition)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[nn([R2]),xt],ngContentSelectors:O2,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,n){if(1&e&&(Hr(),je(0,"label",0,1),je(2,"div",2,3),je(4,"input",4,5),wt("change",function(s){return n._onChangeEvent(s)})("click",function(s){return n._onInputClick(s)}),Ue(),je(6,"div",6,7),en(8,"div",8),je(9,"div",9),en(10,"div",10),Ue(),Ue(),Ue(),je(11,"span",11,12),wt("cdkObserveContent",function(){return n._onLabelTextChange()}),je(13,"span",13),Kt(14,"\xa0"),Ue(),kn(15),Ue(),Ue()),2&e){var i=Do(1),a=Do(12);gn("for",n.inputId),et(2),mn("mat-slide-toggle-bar-no-side-margin",!a.textContent||!a.textContent.trim()),et(2),ot("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex)("checked",n.checked)("disabled",n.disabled),gn("name",n.name)("aria-checked",n.checked.toString())("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),et(5),ot("matRippleTrigger",i)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",function Cy(t,r,e,n){return Ay(We(),lr(),t,r,e,n)}(18,P2,n._noopAnimations?0:150))}},directives:[hu,uC],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t}(),qC=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({}),t}(),XC=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({imports:[[qC,Mv,Rn,Cv],qC,Rn]}),t}(),H2=["*",[["mat-toolbar-row"]]],j2=["*","mat-toolbar-row"],U2=du(function(){return v(function t(r){f(this,t),this._elementRef=r})}()),KC=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ht({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t}(),z2=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a,o){var s;return f(this,n),(s=e.call(this,i))._platform=a,s._document=o,s}return v(n,[{key:"ngAfterViewInit",value:function(){var a=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return a._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(U2);return t.\u0275fac=function(e){return new(e||t)(we(rn),we(Qn),we(jt))},t.\u0275cmp=Yn({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,n,i){var a;1&e&&ar(i,KC,5),2&e&&sn(a=un())&&(n._toolbarRows=a)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,n){2&e&&mn("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[xt],ngContentSelectors:j2,decls:2,vars:0,template:function(e,n){1&e&&(Hr(H2),kn(0),kn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t}(),YC=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({imports:[[Rn],Rn]}),t}(),G2=function(t){C(e,t);var r=T(e);function e(n,i){var a;return f(this,e),(a=r.call(this,n,i)).scheduler=n,a.work=i,a}return v(e,[{key:"requestAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?M(p(e.prototype),"requestAsyncId",this).call(this,i,a,o):(i.actions.push(this),i.scheduled||(i.scheduled=requestAnimationFrame(function(){return i.flush(null)})))}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==o&&o>0||null===o&&this.delay>0)return M(p(e.prototype),"recycleAsyncId",this).call(this,i,a,o);0===i.actions.length&&(cancelAnimationFrame(a),i.scheduled=void 0)}}]),e}(_v),W2=function(t){C(e,t);var r=T(e);function e(){return f(this,e),r.apply(this,arguments)}return v(e,[{key:"flush",value:function(i){this.active=!0,this.scheduled=void 0;var o,a=this.actions,s=-1,u=a.length;i=i||a.shift();do{if(o=i.execute(i.state,i.delay))break}while(++s2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?M(p(e.prototype),"requestAsyncId",this).call(this,i,a,o):(i.actions.push(this),i.scheduled||(i.scheduled=QC_setImmediate(i.flush.bind(i,null))))}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==o&&o>0||null===o&&this.delay>0)return M(p(e.prototype),"recycleAsyncId",this).call(this,i,a,o);0===i.actions.length&&(QC_clearImmediate(a),i.scheduled=void 0)}}]),e}(_v),$2=function(t){C(e,t);var r=T(e);function e(){return f(this,e),r.apply(this,arguments)}return v(e,[{key:"flush",value:function(i){this.active=!0,this.scheduled=void 0;var o,a=this.actions,s=-1,u=a.length;i=i||a.shift();do{if(o=i.execute(i.state,i.delay))break}while(++s=0}function tB(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,n=-1;return ZC(r)?n=Number(r)<1?1:Number(r):Ke(r)&&(e=r),Ke(e)||(e=Dv),new ve(function(i){var a=ZC(t)?t:+t-e.now();return e.schedule(nB,a,{index:0,period:n,subscriber:i})})}function nB(t){var r=t.index,e=t.period,n=t.subscriber;if(n.next(r),!n.closed){if(-1===e)return n.complete();t.index=r+1,this.schedule(t,e)}}function JC(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dv;return Z2(function(){return tB(t,r)})}var mc=function(){var t=function(){function r(e,n,i){f(this,r),this._ngZone=e,this._platform=n,this._scrolled=new Se,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return v(r,[{key:"register",value:function(n){var i=this;this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(function(){return i._scrolled.next(n)}))}},{key:"deregister",value:function(n){var i=this.scrollContainers.get(n);i&&(i.unsubscribe(),this.scrollContainers.delete(n))}},{key:"scrolled",value:function(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new ve(function(a){n._globalSubscription||n._addGlobalListener();var o=i>0?n._scrolled.pipe(JC(i)).subscribe(a):n._scrolled.subscribe(a);return n._scrolledCount++,function(){o.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):ji()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(i,a){return n.deregister(a)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,i){var a=this.getAncestorScrollContainers(n);return this.scrolled(i).pipe(qr(function(o){return!o||a.indexOf(o)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var i=this,a=[];return this.scrollContainers.forEach(function(o,s){i._scrollableContainsElement(s,n)&&a.push(s)}),a}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,i){var a=Ui(i),o=n.getElementRef().nativeElement;do{if(a==o)return!0}while(a=a.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return yn(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(Gt),He(Qn),He(jt,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),xv=function(){var t=function(){function r(e,n,i,a){var o=this;f(this,r),this.elementRef=e,this.scrollDispatcher=n,this.ngZone=i,this.dir=a,this._destroyed=new Se,this._elementScrolled=new ve(function(s){return o.ngZone.runOutsideAngular(function(){return yn(o.elementRef.nativeElement,"scroll").pipe(Ct(o._destroyed)).subscribe(s)})})}return v(r,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(n){var i=this.elementRef.nativeElement,a=this.dir&&"rtl"==this.dir.value;null==n.left&&(n.left=a?n.end:n.start),null==n.right&&(n.right=a?n.start:n.end),null!=n.bottom&&(n.top=i.scrollHeight-i.clientHeight-n.bottom),a&&0!=su()?(null!=n.left&&(n.right=i.scrollWidth-i.clientWidth-n.left),2==su()?n.left=n.right:1==su()&&(n.left=n.right?-n.right:n.right)):null!=n.right&&(n.left=i.scrollWidth-i.clientWidth-n.right),this._applyScrollToOptions(n)}},{key:"_applyScrollToOptions",value:function(n){var i=this.elementRef.nativeElement;Jb()?i.scrollTo(n):(null!=n.top&&(i.scrollTop=n.top),null!=n.left&&(i.scrollLeft=n.left))}},{key:"measureScrollOffset",value:function(n){var i="left",a="right",o=this.elementRef.nativeElement;if("top"==n)return o.scrollTop;if("bottom"==n)return o.scrollHeight-o.clientHeight-o.scrollTop;var s=this.dir&&"rtl"==this.dir.value;return"start"==n?n=s?a:i:"end"==n&&(n=s?i:a),s&&2==su()?n==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&1==su()?n==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:n==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}]),r}();return t.\u0275fac=function(e){return new(e||t)(we(rn),we(mc),we(Gt),we(Pa,8))},t.\u0275dir=ht({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t}(),_c=function(){var t=function(){function r(e,n,i){var a=this;f(this,r),this._platform=e,this._change=new Se,this._changeListener=function(o){a._change.next(o)},this._document=i,n.runOutsideAngular(function(){if(e.isBrowser){var o=a._getWindow();o.addEventListener("resize",a._changeListener),o.addEventListener("orientationchange",a._changeListener)}a.change().subscribe(function(){return a._viewportSize=null})})}return v(r,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),i=this.getViewportSize(),a=i.width,o=i.height;return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+a,height:o,width:a}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,i=this._getWindow(),a=n.documentElement,o=a.getBoundingClientRect();return{top:-o.top||n.body.scrollTop||i.scrollY||a.scrollTop||0,left:-o.left||n.body.scrollLeft||i.scrollX||a.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(JC(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(Qn),He(Gt),He(jt,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),Uo=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({}),t}(),eA=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({imports:[[ru,iu,Uo],ru,Uo]}),t}();function tA(t){return function(r){return r.lift(new aB(t))}}var aB=function(){function t(r){f(this,t),this.value=r}return v(t,[{key:"call",value:function(e,n){return n.subscribe(new oB(e,this.value))}}]),t}(),oB=function(t){C(e,t);var r=T(e);function e(n,i){var a;return f(this,e),(a=r.call(this,n)).value=i,a}return v(e,[{key:"_next",value:function(i){this.destination.next(this.value)}}]),e}(b),nA=["*"],sB=["content"];function uB(t,r){if(1&t){var e=Mr();je(0,"div",2),wt("click",function(){return tr(e),zt()._onBackdropClicked()}),Ue()}2&t&&mn("mat-drawer-shown",zt()._isShowingBackdrop())}function lB(t,r){1&t&&(je(0,"mat-drawer-content"),kn(1,2),Ue())}var cB=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],dB=["mat-drawer","mat-drawer-content","*"],fB={transformDrawer:Js("transform",[ra("open, open-instant",or({transform:"none",visibility:"visible"})),ra("void",or({"box-shadow":"none",visibility:"hidden"})),ia("void => open-instant",wa("0ms")),ia("void <=> open, open-instant => void",wa("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},hB=new at("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function vB(){return!1}}),rA=new at("MAT_DRAWER_CONTAINER"),yc=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a,o,s,u){var l;return f(this,n),(l=e.call(this,o,s,u))._changeDetectorRef=i,l._container=a,l}return v(n,[{key:"ngAfterContentInit",value:function(){var a=this;this._container._contentMarginChanges.subscribe(function(){a._changeDetectorRef.markForCheck()})}}]),n}(xv);return t.\u0275fac=function(e){return new(e||t)(we(Bi),we(Dt(function(){return aA})),we(rn),we(mc),we(Gt))},t.\u0275cmp=Yn({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,n){2&e&&Ao("margin-left",n._container._contentMargins.left,"px")("margin-right",n._container._contentMargins.right,"px")},features:[nn([{provide:xv,useExisting:t}]),xt],ngContentSelectors:nA,decls:1,vars:0,template:function(e,n){1&e&&(Hr(),kn(0))},encapsulation:2,changeDetection:0}),t}(),iA=function(){var t=function(){function r(e,n,i,a,o,s,u,l){var h=this;f(this,r),this._elementRef=e,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=a,this._ngZone=o,this._interactivityChecker=s,this._doc=u,this._container=l,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Se,this._animationEnd=new Se,this._animationState="void",this.openedChange=new It(!0),this._openedStream=this.openedChange.pipe(qr(function(y){return y}),Me(function(){})),this.openedStart=this._animationStarted.pipe(qr(function(y){return y.fromState!==y.toState&&0===y.toState.indexOf("open")}),tA(void 0)),this._closedStream=this.openedChange.pipe(qr(function(y){return!y}),Me(function(){})),this.closedStart=this._animationStarted.pipe(qr(function(y){return y.fromState!==y.toState&&"void"===y.toState}),tA(void 0)),this._destroyed=new Se,this.onPositionChanged=new It,this._modeChanged=new Se,this.openedChange.subscribe(function(y){y?(h._doc&&(h._elementFocusedBeforeDrawerWasOpened=h._doc.activeElement),h._takeFocus()):h._isFocusWithinDrawer()&&h._restoreFocus(h._openedVia||"program")}),this._ngZone.runOutsideAngular(function(){yn(h._elementRef.nativeElement,"keydown").pipe(qr(function(y){return 27===y.keyCode&&!h.disableClose&&!Ia(y)}),Ct(h._destroyed)).subscribe(function(y){return h._ngZone.run(function(){h.close(),y.stopPropagation(),y.preventDefault()})})}),this._animationEnd.pipe(bv(function(y,w){return y.fromState===w.fromState&&y.toState===w.toState})).subscribe(function(y){var w=y.fromState,K=y.toState;(0===K.indexOf("open")&&"void"===w||"void"===K&&0===w.indexOf("open"))&&h.openedChange.emit(h._opened)})}return v(r,[{key:"position",get:function(){return this._position},set:function(n){(n="end"===n?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(n),this._position=n,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(n){this._mode=n,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(n){this._disableClose=_n(n)}},{key:"autoFocus",get:function(){var n=this._autoFocus;return null==n?"side"===this.mode?"dialog":"first-tabbable":n},set:function(n){("true"===n||"false"===n||null==n)&&(n=_n(n)),this._autoFocus=n}},{key:"opened",get:function(){return this._opened},set:function(n){this.toggle(_n(n))}},{key:"_forceFocus",value:function(n,i){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(function(){n.addEventListener("blur",function(){return n.removeAttribute("tabindex")}),n.addEventListener("mousedown",function(){return n.removeAttribute("tabindex")})})),n.focus(i)}},{key:"_focusByCssSelector",value:function(n,i){var a=this._elementRef.nativeElement.querySelector(n);a&&this._forceFocus(a,i)}},{key:"_takeFocus",value:function(){var n=this;if(this._focusTrap){var i=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(a){!a&&"function"==typeof n._elementRef.nativeElement.focus&&i.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}}},{key:"_restoreFocus",value:function(n){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,n):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}},{key:"_isFocusWithinDrawer",value:function(){var n=this._doc.activeElement;return!!n&&this._elementRef.nativeElement.contains(n)}},{key:"ngAfterViewInit",value:function(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){var n;this._focusTrap&&this._focusTrap.destroy(),null===(n=this._anchor)||void 0===n||n.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(n){return this.toggle(!0,n)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0,"mouse")}},{key:"toggle",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1?arguments[1]:void 0;n&&i&&(this._openedVia=i);var a=this._setOpen(n,!n&&this._isFocusWithinDrawer(),this._openedVia||"program");return n||(this._openedVia=null),a}},{key:"_setOpen",value:function(n,i,a){var o=this;return this._opened=n,n?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(a)),this._updateFocusTrapState(),new Promise(function(s){o.openedChange.pipe(ui(1)).subscribe(function(u){return s(u?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_updatePositionInParent",value:function(n){var i=this._elementRef.nativeElement,a=i.parentNode;"end"===n?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),a.insertBefore(this._anchor,i)),a.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}]),r}();return t.\u0275fac=function(e){return new(e||t)(we(rn),we(cN),we(cu),we(Qn),we(Gt),we(hC),we(jt,8),we(rA,8))},t.\u0275cmp=Yn({type:t,selectors:[["mat-drawer"]],viewQuery:function(e,n){var i;1&e&&hr(sB,5),2&e&&sn(i=un())&&(n._content=i.first)},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,n){1&e&&hf("@transform.start",function(a){return n._animationStarted.next(a)})("@transform.done",function(a){return n._animationEnd.next(a)}),2&e&&(gn("align",null),_f("@transform",n._animationState),mn("mat-drawer-end","end"===n.position)("mat-drawer-over","over"===n.mode)("mat-drawer-push","push"===n.mode)("mat-drawer-side","side"===n.mode)("mat-drawer-opened",n.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:nA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,n){1&e&&(Hr(),je(0,"div",0,1),kn(2),Ue())},directives:[xv],encapsulation:2,data:{animation:[fB.transformDrawer]},changeDetection:0}),t}(),aA=function(){var t=function(){function r(e,n,i,a,o){var s=this,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;f(this,r),this._dir=e,this._element=n,this._ngZone=i,this._changeDetectorRef=a,this._animationMode=l,this._drawers=new _l,this.backdropClick=new It,this._destroyed=new Se,this._doCheckSubject=new Se,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Se,e&&e.change.pipe(Ct(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),o.change().pipe(Ct(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=u}return v(r,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(n){this._autosize=_n(n)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(n){this._backdropOverride=null==n?null:_n(n)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var n=this;this._allDrawers.changes.pipe(ua(this._allDrawers),Ct(this._destroyed)).subscribe(function(i){n._drawers.reset(i.filter(function(a){return!a._container||a._container===n})),n._drawers.notifyOnChanges()}),this._drawers.changes.pipe(ua(null)).subscribe(function(){n._validateDrawers(),n._drawers.forEach(function(i){n._watchDrawerToggle(i),n._watchDrawerPosition(i),n._watchDrawerMode(i)}),(!n._drawers.length||n._isDrawerOpen(n._start)||n._isDrawerOpen(n._end))&&n.updateContentMargins(),n._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){n._doCheckSubject.pipe(uu(10),Ct(n._destroyed)).subscribe(function(){return n.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(n){return n.open()})}},{key:"close",value:function(){this._drawers.forEach(function(n){return n.close()})}},{key:"updateContentMargins",value:function(){var n=this,i=0,a=0;if(this._left&&this._left.opened)if("side"==this._left.mode)i+=this._left._getWidth();else if("push"==this._left.mode){var o=this._left._getWidth();i+=o,a-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)a+=this._right._getWidth();else if("push"==this._right.mode){var s=this._right._getWidth();a+=s,i-=s}a=a||null,((i=i||null)!==this._contentMargins.left||a!==this._contentMargins.right)&&(this._contentMargins={left:i,right:a},this._ngZone.run(function(){return n._contentMarginChanges.next(n._contentMargins)}))}},{key:"ngDoCheck",value:function(){var n=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return n._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(n){var i=this;n._animationStarted.pipe(qr(function(a){return a.fromState!==a.toState}),Ct(this._drawers.changes)).subscribe(function(a){"open-instant"!==a.toState&&"NoopAnimations"!==i._animationMode&&i._element.nativeElement.classList.add("mat-drawer-transition"),i.updateContentMargins(),i._changeDetectorRef.markForCheck()}),"side"!==n.mode&&n.openedChange.pipe(Ct(this._drawers.changes)).subscribe(function(){return i._setContainerClass(n.opened)})}},{key:"_watchDrawerPosition",value:function(n){var i=this;!n||n.onPositionChanged.pipe(Ct(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe(ui(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(n){var i=this;n&&n._modeChanged.pipe(Ct(nt(this._drawers.changes,this._destroyed))).subscribe(function(){i.updateContentMargins(),i._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(n){var i=this._element.nativeElement.classList,a="mat-drawer-container-has-open";n?i.add(a):i.remove(a)}},{key:"_validateDrawers",value:function(){var n=this;this._start=this._end=null,this._drawers.forEach(function(i){"end"==i.position?n._end=i:n._start=i}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var n=this;[this._start,this._end].filter(function(i){return i&&!i.disableClose&&n._canHaveBackdrop(i)}).forEach(function(i){return i._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(n){return"side"!==n.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(n){return null!=n&&n.opened}}]),r}();return t.\u0275fac=function(e){return new(e||t)(we(Pa,8),we(rn),we(Gt),we(Bi),we(_c),we(hB),we(oa,8))},t.\u0275cmp=Yn({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(e,n,i){var a;1&e&&(ar(i,yc,5),ar(i,iA,5)),2&e&&(sn(a=un())&&(n._content=a.first),sn(a=un())&&(n._allDrawers=a))},viewQuery:function(e,n){var i;1&e&&hr(yc,5),2&e&&sn(i=un())&&(n._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,n){2&e&&mn("mat-drawer-container-explicit-backdrop",n._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[nn([{provide:rA,useExisting:t}])],ngContentSelectors:dB,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,n){1&e&&(Hr(cB),Jt(0,uB,1,2,"div",0),kn(1),kn(2,1),Jt(3,lB,2,0,"mat-drawer-content",1)),2&e&&(ot("ngIf",n.hasBackdrop),et(3),ot("ngIf",!n._content))},directives:[yc,js],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t}(),oA=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({imports:[[Io,Rn,iu,Uo],Uo,Rn]}),t}(),Iv=function(){function t(){f(this,t)}return v(t,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),t}(),sA=function(t){C(e,t);var r=T(e);function e(n,i,a,o){var s;return f(this,e),(s=r.call(this)).component=n,s.viewContainerRef=i,s.injector=a,s.componentFactoryResolver=o,s}return v(e)}(Iv),uA=function(t){C(e,t);var r=T(e);function e(n,i,a){var o;return f(this,e),(o=r.call(this)).templateRef=n,o.viewContainerRef=i,o.context=a,o}return v(e,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=a,M(p(e.prototype),"attach",this).call(this,i)}},{key:"detach",value:function(){return this.context=void 0,M(p(e.prototype),"detach",this).call(this)}}]),e}(Iv),pB=function(t){C(e,t);var r=T(e);function e(n){var i;return f(this,e),(i=r.call(this)).element=n instanceof rn?n.nativeElement:n,i}return v(e)}(Iv),gB=function(){function t(){f(this,t),this._isDisposed=!1,this.attachDomPortal=null}return v(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof sA?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof uA?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof pB?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),mB=function(t){C(e,t);var r=T(e);function e(n,i,a,o,s){var u,l;return f(this,e),(l=r.call(this)).outletElement=n,l._componentFactoryResolver=i,l._appRef=a,l._defaultInjector=o,l.attachDomPortal=function(h){var y=h.element,w=l._document.createComment("dom-portal");y.parentNode.insertBefore(w,y),l.outletElement.appendChild(y),l._attachedPortal=h,M((u=ce(l),p(e.prototype)),"setDisposeFn",u).call(u,function(){w.parentNode&&w.parentNode.replaceChild(y,w)})},l._document=s,l}return v(e,[{key:"attachComponentPortal",value:function(i){var u,a=this,s=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);return i.viewContainerRef?(u=i.viewContainerRef.createComponent(s,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector),this.setDisposeFn(function(){return u.destroy()})):(u=s.create(i.injector||this._defaultInjector),this._appRef.attachView(u.hostView),this.setDisposeFn(function(){a._appRef.detachView(u.hostView),u.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(u)),this._attachedPortal=i,u}},{key:"attachTemplatePortal",value:function(i){var a=this,o=i.viewContainerRef,s=o.createEmbeddedView(i.templateRef,i.context);return s.rootNodes.forEach(function(u){return a.outletElement.appendChild(u)}),s.detectChanges(),this.setDisposeFn(function(){var u=o.indexOf(s);-1!==u&&o.remove(u)}),this._attachedPortal=i,s}},{key:"dispose",value:function(){M(p(e.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(i){return i.hostView.rootNodes[0]}}]),e}(gB),_B=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({}),t}(),DB=function(){function t(r,e){f(this,t),this.predicate=r,this.inclusive=e}return v(t,[{key:"call",value:function(e,n){return n.subscribe(new bB(e,this.predicate,this.inclusive))}}]),t}(),bB=function(t){C(e,t);var r=T(e);function e(n,i,a){var o;return f(this,e),(o=r.call(this,n)).predicate=i,o.inclusive=a,o.index=0,o}return v(e,[{key:"_next",value:function(i){var o,a=this.destination;try{o=this.predicate(i,this.index++)}catch(s){return void a.error(s)}this.nextOrComplete(i,o)}},{key:"nextOrComplete",value:function(i,a){var o=this.destination;Boolean(a)?o.next(i):(this.inclusive&&o.next(i),o.complete())}}]),e}(b),lA=Jb(),CB=function(){function t(r,e){f(this,t),this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return v(t,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=jn(-this._previousScrollPosition.left),e.style.top=jn(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,i=e.style,a=this._document.body.style,o=i.scrollBehavior||"",s=a.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),lA&&(i.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),lA&&(i.scrollBehavior=o,a.scrollBehavior=s)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var n=this._document.body,i=this._viewportRuler.getViewportSize();return n.scrollHeight>i.height||n.scrollWidth>i.width}}]),t}(),AB=function(){function t(r,e,n,i){var a=this;f(this,t),this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return v(t,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var i=e._viewportRuler.getViewportScrollPosition().top;Math.abs(i-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),cA=function(){function t(){f(this,t)}return v(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function Rv(t,r){return r.some(function(e){return t.bottome.bottom||t.righte.right})}function dA(t,r){return r.some(function(e){return t.tope.bottom||t.lefte.right})}var kB=function(){function t(r,e,n,i){f(this,t),this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}return v(t,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var i=e._overlayRef.overlayElement.getBoundingClientRect(),a=e._viewportRuler.getViewportSize(),o=a.width,s=a.height;Rv(i,[{width:o,height:s,bottom:s,right:o,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),EB=function(){var t=v(function r(e,n,i,a){var o=this;f(this,r),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new cA},this.close=function(s){return new AB(o._scrollDispatcher,o._ngZone,o._viewportRuler,s)},this.block=function(){return new CB(o._viewportRuler,o._document)},this.reposition=function(s){return new kB(o._scrollDispatcher,o._viewportRuler,o._ngZone,s)},this._document=a});return t.\u0275fac=function(e){return new(e||t)(He(mc),He(_c),He(Gt),He(jt))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),fA=v(function t(r){if(f(this,t),this.scrollStrategy=new cA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r)for(var n=0,i=Object.keys(r);nEe&&(Ee=ze,fe=Ce)}}catch(Ye){Fe.e(Ye)}finally{Fe.f()}return this._isPushed=!1,void this._applyPosition(fe.position,fe.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Ra(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(vA),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var e=this._lastPosition||this._preferredPositions[0],n=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,n)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,n,i){var a,u;if("center"==i.originX)a=e.left+e.width/2;else{var o=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;a="start"==i.originX?o:s}return n.left<0&&(a-=n.left),u="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,n.top<0&&(u-=n.top),{x:a,y:u}}},{key:"_getOverlayPoint",value:function(e,n,i){var a;return a="center"==i.overlayX?-n.width/2:"start"===i.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:e.x+a,y:e.y+("center"==i.overlayY?-n.height/2:"top"==i.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(e,n,i,a){var o=gA(n),s=e.x,u=e.y,l=this._getOffset(a,"x"),h=this._getOffset(a,"y");l&&(s+=l),h&&(u+=h);var K=0-u,fe=u+o.height-i.height,Ee=this._subtractOverflows(o.width,0-s,s+o.width-i.width),Fe=this._subtractOverflows(o.height,K,fe),Te=Ee*Fe;return{visibleArea:Te,isCompletelyWithinViewport:o.width*o.height===Te,fitsInViewportVertically:Fe===o.height,fitsInViewportHorizontally:Ee==o.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,n,i){if(this._hasFlexibleDimensions){var a=i.bottom-n.y,o=i.right-n.x,s=pA(this._overlayRef.getConfig().minHeight),u=pA(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=s&&s<=a)&&(e.fitsInViewportHorizontally||null!=u&&u<=o)}return!1}},{key:"_pushOverlayOnScreen",value:function(e,n,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var y,w,a=gA(n),o=this._viewportRect,s=Math.max(e.x+a.width-o.width,0),u=Math.max(e.y+a.height-o.height,0),l=Math.max(o.top-i.top-e.y,0),h=Math.max(o.left-i.left-e.x,0);return this._previousPushAmount={x:y=a.width<=o.width?h||-s:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-h/2)}if("end"===n.overlayX&&!a||"start"===n.overlayX&&a)Ee=i.width-e.x+this._viewportMargin,K=e.x-this._viewportMargin;else if("start"===n.overlayX&&!a||"end"===n.overlayX&&a)fe=e.x,K=i.right-e.x;else{var Fe=Math.min(i.right-e.x+i.left,e.x),Te=this._lastBoundingBoxSize.width;fe=e.x-Fe,(K=2*Fe)>Te&&!this._isInitialRender&&!this._growAfterOpen&&(fe=e.x-Te/2)}return{top:s,left:fe,bottom:u,right:Ee,width:K,height:o}}},{key:"_setBoundingBoxStyles",value:function(e,n){var i=this._calculateBoundingBoxRect(e,n);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{var o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;a.height=jn(i.height),a.top=jn(i.top),a.bottom=jn(i.bottom),a.width=jn(i.width),a.left=jn(i.left),a.right=jn(i.right),a.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",a.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",o&&(a.maxHeight=jn(o)),s&&(a.maxWidth=jn(s))}this._lastBoundingBoxSize=i,Ra(this._boundingBox.style,a)}},{key:"_resetBoundingBoxStyles",value:function(){Ra(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Ra(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,n){var i={},a=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(a){var u=this._viewportRuler.getViewportScrollPosition();Ra(i,this._getExactOverlayY(n,e,u)),Ra(i,this._getExactOverlayX(n,e,u))}else i.position="static";var l="",h=this._getOffset(n,"x"),y=this._getOffset(n,"y");h&&(l+="translateX(".concat(h,"px) ")),y&&(l+="translateY(".concat(y,"px)")),i.transform=l.trim(),s.maxHeight&&(a?i.maxHeight=jn(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(a?i.maxWidth=jn(s.maxWidth):o&&(i.maxWidth="")),Ra(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(e,n,i){var a={top:"",bottom:""},o=this._getOverlayPoint(n,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===e.overlayY?a.bottom="".concat(this._document.documentElement.clientHeight-(o.y+this._overlayRect.height),"px"):a.top=jn(o.y),a}},{key:"_getExactOverlayX",value:function(e,n,i){var a={left:"",right:""},o=this._getOverlayPoint(n,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"right"==(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?a.right="".concat(this._document.documentElement.clientWidth-(o.x+this._overlayRect.width),"px"):a.left=jn(o.x),a}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),n=this._pane.getBoundingClientRect(),i=this._scrollables.map(function(a){return a.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:dA(e,i),isOriginOutsideView:Rv(e,i),isOverlayClipped:dA(n,i),isOverlayOutsideView:Rv(n,i)}}},{key:"_subtractOverflows",value:function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),a=i.width,o=i.height,s=i.maxWidth,u=i.maxHeight,l=!("100%"!==a&&"100vw"!==a||s&&"100%"!==s&&"100vw"!==s),h=!("100%"!==o&&"100vh"!==o||u&&"100%"!==u&&"100vh"!==u);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=h?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=h?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,i=n.style;n.classList.remove(mA),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),PB=function(){var t=function(){function r(e,n,i,a){f(this,r),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=a}return v(r,[{key:"global",value:function(){return new TB}},{key:"flexibleConnectedTo",value:function(n){return new MB(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(_c),He(jt),He(Qn),He(hA))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),_A=function(){var t=function(){function r(e){f(this,r),this._attachedOverlays=[],this._document=e}return v(r,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(n){this.remove(n),this._attachedOverlays.push(n)}},{key:"remove",value:function(n){var i=this._attachedOverlays.indexOf(n);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(jt))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),OB=function(){var t=function(r){C(n,r);var e=T(n);function n(i){var a;return f(this,n),(a=e.call(this,i))._keydownListener=function(o){for(var s=a._attachedOverlays,u=s.length-1;u>-1;u--)if(s[u]._keydownEvents.observers.length>0){s[u]._keydownEvents.next(o);break}},a}return v(n,[{key:"add",value:function(a){M(p(n.prototype),"add",this).call(this,a),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(_A);return t.\u0275fac=function(e){return new(e||t)(He(jt))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),xB=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a){var o;return f(this,n),(o=e.call(this,i))._platform=a,o._cursorStyleIsSet=!1,o._pointerDownListener=function(s){o._pointerDownEventTarget=xa(s)},o._clickListener=function(s){var u=xa(s),l="click"===s.type&&o._pointerDownEventTarget?o._pointerDownEventTarget:u;o._pointerDownEventTarget=null;for(var h=o._attachedOverlays.slice(),y=h.length-1;y>-1;y--){var w=h[y];if(!(w._outsidePointerEvents.observers.length<1)&&w.hasAttached()){if(w.overlayElement.contains(u)||w.overlayElement.contains(l))break;w._outsidePointerEvents.next(s)}}},o}return v(n,[{key:"add",value:function(a){if(M(p(n.prototype),"add",this).call(this,a),!this._isAttached){var o=this._document.body;o.addEventListener("pointerdown",this._pointerDownListener,!0),o.addEventListener("click",this._clickListener,!0),o.addEventListener("auxclick",this._clickListener,!0),o.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=o.style.cursor,o.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var a=this._document.body;a.removeEventListener("pointerdown",this._pointerDownListener,!0),a.removeEventListener("click",this._clickListener,!0),a.removeEventListener("auxclick",this._clickListener,!0),a.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(a.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(_A);return t.\u0275fac=function(e){return new(e||t)(He(jt),He(Qn))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),IB=0,zo=function(){var t=function(){function r(e,n,i,a,o,s,u,l,h,y,w){f(this,r),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=a,this._keyboardDispatcher=o,this._injector=s,this._ngZone=u,this._document=l,this._directionality=h,this._location=y,this._outsideClickDispatcher=w}return v(r,[{key:"create",value:function(n){var i=this._createHostElement(),a=this._createPaneElement(i),o=this._createPortalOutlet(a),s=new fA(n);return s.direction=s.direction||this._directionality.value,new SB(o,i,a,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var i=this._document.createElement("div");return i.id="cdk-overlay-".concat(IB++),i.classList.add("cdk-overlay-pane"),n.appendChild(i),i}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(Ls)),new mB(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(EB),He(hA),He(wo),He(PB),He(OB),He(dr),He(Gt),He(jt),He(Pa),He(w0),He(xB))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t}(),RB=[{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"}],yA=new at("cdk-connected-overlay-scroll-strategy"),DA=function(){var t=v(function r(e){f(this,r),this.elementRef=e});return t.\u0275fac=function(e){return new(e||t)(we(rn))},t.\u0275dir=ht({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),bA=function(){var t=function(){function r(e,n,i,a,o){f(this,r),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=N.EMPTY,this._attachSubscription=N.EMPTY,this._detachSubscription=N.EMPTY,this._positionSubscription=N.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new It,this.positionChange=new It,this.attach=new It,this.detach=new It,this.overlayKeydown=new It,this.overlayOutsideClick=new It,this._templatePortal=new uA(n,i),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}return v(r,[{key:"offsetX",get:function(){return this._offsetX},set:function(n){this._offsetX=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(n){this._offsetY=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(n){this._hasBackdrop=_n(n)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(n){this._lockPosition=_n(n)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(n){this._flexibleDimensions=_n(n)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(n){this._growAfterOpen=_n(n)}},{key:"push",get:function(){return this._push},set:function(n){this._push=_n(n)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(n){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),n.origin&&this.open&&this._position.apply()),n.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var n=this;(!this.positions||!this.positions.length)&&(this.positions=RB);var i=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=i.attachments().subscribe(function(){return n.attach.emit()}),this._detachSubscription=i.detachments().subscribe(function(){return n.detach.emit()}),i.keydownEvents().subscribe(function(a){n.overlayKeydown.next(a),27===a.keyCode&&!n.disableClose&&!Ia(a)&&(a.preventDefault(),n._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(a){n.overlayOutsideClick.next(a)})}},{key:"_buildConfig",value:function(){var n=this._position=this.positionStrategy||this._createPositionStrategy(),i=new fA({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}},{key:"_updatePositionStrategy",value:function(n){var i=this,a=this.positions.map(function(o){return{originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||i.offsetX,offsetY:o.offsetY||i.offsetY,panelClass:o.panelClass||void 0}});return n.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(a).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(n),n}},{key:"_getFlexibleConnectedPositionStrategyOrigin",value:function(){return this.origin instanceof DA?this.origin.elementRef:this.origin}},{key:"_attachOverlay",value:function(){var n=this;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(function(i){n.backdropClick.emit(i)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function yB(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e){return e.lift(new DB(t,r))}}(function(){return n.positionChange.observers.length>0})).subscribe(function(i){n.positionChange.emit(i),0===n.positionChange.observers.length&&n._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),r}();return t.\u0275fac=function(e){return new(e||t)(we(zo),we(Di),we(jr),we(yA),we(Pa,8))},t.\u0275dir=ht({type:t,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:[_r]}),t}(),NB={provide:yA,deps:[zo],useFactory:function LB(t){return function(){return t.scrollStrategies.reposition()}}},CA=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({providers:[zo,NB],imports:[[ru,_B,eA],eA]}),t}(),AA={},VB=function(){function t(r){f(this,t),this.resultSelector=r}return v(t,[{key:"call",value:function(e,n){return n.subscribe(new HB(e,this.resultSelector))}}]),t}(),HB=function(t){C(e,t);var r=T(e);function e(n,i){var a;return f(this,e),(a=r.call(this,n)).resultSelector=i,a.active=0,a.values=[],a.observables=[],a}return v(e,[{key:"_next",value:function(i){this.values.push(AA),this.observables.push(i)}},{key:"_complete",value:function(){var i=this.observables,a=i.length;if(0===a)this.destination.complete();else{this.active=a,this.toRespond=a;for(var o=0;o visible",wa("200ms cubic-bezier(0, 0, 0.2, 1)",NI([or({opacity:0,transform:"scale(0)",offset:0}),or({opacity:.5,transform:"scale(0.99)",offset:.5}),or({opacity:1,transform:"scale(1)",offset:1})]))),ia("* => hidden",wa("100ms cubic-bezier(0, 0, 0.2, 1)",or({opacity:0})))])},wA="tooltip-panel",SA=ou({passive:!0}),FA=new at("mat-tooltip-scroll-strategy"),$B={provide:FA,deps:[zo],useFactory:function YB(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},QB=new at("mat-tooltip-default-options",{providedIn:"root",factory:function ZB(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),JB=function(){var t=function(){function r(e,n,i,a,o,s,u,l,h,y,w,K){var fe=this;f(this,r),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=a,this._ngZone=o,this._platform=s,this._ariaDescriber=u,this._focusMonitor=l,this._dir=y,this._defaultOptions=w,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 Se,this._scrollStrategy=h,this._document=K,w&&(w.position&&(this.position=w.position),w.touchGestures&&(this.touchGestures=w.touchGestures)),y.change.pipe(Ct(this._destroyed)).subscribe(function(){fe._overlayRef&&fe._updatePosition(fe._overlayRef)})}return v(r,[{key:"position",get:function(){return this._position},set:function(n){var i;n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=_n(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"showDelay",get:function(){return this._showDelay},set:function(n){this._showDelay=lu(n)}},{key:"hideDelay",get:function(){return this._hideDelay},set:function(n){this._hideDelay=lu(n)}},{key:"message",get:function(){return this._message},set:function(n){var i=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=n?String(n).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){i._ariaDescriber.describe(i._elementRef.nativeElement,i.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var n=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ct(this._destroyed)).subscribe(function(i){i?"keyboard"===i&&n._ngZone.run(function(){return n.show()}):n._ngZone.run(function(){return n.hide(0)})})}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(function(i){var a=j(i,2);n.removeEventListener(a[0],a[1],SA)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}},{key:"show",value:function(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var a=this._createOverlay();this._detach(),this._portal=this._portal||new sA(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=a.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ct(this._destroyed)).subscribe(function(){return n._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(i)}}},{key:"hide",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(n)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var n=this;if(this._overlayRef)return this._overlayRef;var i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),a=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return a.positionChanges.pipe(Ct(this._destroyed)).subscribe(function(o){n._updateCurrentPositionClass(o.connectionPair),n._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&n._tooltipInstance.isVisible()&&n._ngZone.run(function(){return n.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:"".concat(this._cssClassPrefix,"-").concat(wA),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ct(this._destroyed)).subscribe(function(){return n._detach()}),this._overlayRef.outsidePointerEvents().pipe(Ct(this._destroyed)).subscribe(function(){var o;return null===(o=n._tooltipInstance)||void 0===o?void 0:o._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Ct(this._destroyed)).subscribe(function(o){n._isTooltipVisible()&&27===o.keyCode&&!Ia(o)&&(o.preventDefault(),o.stopPropagation(),n._ngZone.run(function(){return n.hide(0)}))}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(n){var i=n.getConfig().positionStrategy,a=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},a.main),o.main)),this._addOffset(Object.assign(Object.assign({},a.fallback),o.fallback))])}},{key:"_addOffset",value:function(n){return n}},{key:"_getOrigin",value:function(){var a,n=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i||"below"==i?a={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&n||"right"==i&&!n?a={originX:"start",originY:"center"}:("after"==i||"right"==i&&n||"left"==i&&!n)&&(a={originX:"end",originY:"center"});var o=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:o.x,originY:o.y}}}},{key:"_getOverlayPosition",value:function(){var a,n=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i?a={overlayX:"center",overlayY:"bottom"}:"below"==i?a={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&n||"right"==i&&!n?a={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&n||"left"==i&&!n)&&(a={overlayX:"start",overlayY:"center"});var o=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:o.x,overlayY:o.y}}}},{key:"_updateTooltipMessage",value:function(){var n=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(ui(1),Ct(this._destroyed)).subscribe(function(){n._tooltipInstance&&n._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(n,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===n?n="start":"start"===n&&(n="end"),{x:n,y:i}}},{key:"_updateCurrentPositionClass",value:function(n){var s,i=n.overlayY,a=n.originX;if((s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===i&&"top"===n.originY?"above":"below")!==this._currentPosition){var u=this._overlayRef;if(u){var l="".concat(this._cssClassPrefix,"-").concat(wA,"-");u.removePanelClass(l+this._currentPosition),u.addPanelClass(l+s)}this._currentPosition=s}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var n=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){n._setupPointerExitEventsIfNeeded(),n.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){n._setupPointerExitEventsIfNeeded(),clearTimeout(n._touchstartTimeout),n._touchstartTimeout=setTimeout(function(){return n.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var i,n=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var a=[];if(this._platformSupportsMouseEvents())a.push(["mouseleave",function(){return n.hide()}],["wheel",function(s){return n._wheelListener(s)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var o=function(){clearTimeout(n._touchstartTimeout),n.hide(n._defaultOptions.touchendHideDelay)};a.push(["touchend",o],["touchcancel",o])}this._addListeners(a),(i=this._passiveListeners).push.apply(i,a)}}},{key:"_addListeners",value:function(n){var i=this;n.forEach(function(a){var o=j(a,2);i._elementRef.nativeElement.addEventListener(o[0],o[1],SA)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(n){if(this._isTooltipVisible()){var i=this._document.elementFromPoint(n.clientX,n.clientY),a=this._elementRef.nativeElement;i!==a&&!a.contains(i)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var n=this.touchGestures;if("off"!==n){var i=this._elementRef.nativeElement,a=i.style;("on"===n||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===n||!i.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}]),r}();return t.\u0275fac=function(e){df()},t.\u0275dir=ht({type:t,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t}(),e3=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a,o,s,u,l,h,y,w,K,fe,Ee){var Fe;return f(this,n),(Fe=e.call(this,i,a,o,s,u,l,h,y,w,K,fe,Ee))._tooltipComponent=n3,Fe}return v(n)}(JB);return t.\u0275fac=function(e){return new(e||t)(we(zo),we(rn),we(mc),we(jr),we(Gt),we(Qn),we($L),we(cu),we(FA),we(Pa,8),we(QB,8),we(jt))},t.\u0275dir=ht({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[xt]}),t}(),t3=function(){var t=function(){function r(e){f(this,r),this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Se}return v(r,[{key:"show",value:function(n){var i=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){i._visibility="visible",i._showTimeoutId=void 0,i._onShow(),i._markForCheck()},n)}},{key:"hide",value:function(n){var i=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){i._visibility="hidden",i._hideTimeoutId=void 0,i._markForCheck()},n)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(n){var i=n.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),r}();return t.\u0275fac=function(e){return new(e||t)(we(Bi))},t.\u0275dir=ht({type:t}),t}(),n3=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a){var o;return f(this,n),(o=e.call(this,i))._breakpointObserver=a,o._isHandset=o._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),o}return v(n)}(t3);return t.\u0275fac=function(e){return new(e||t)(we(Bi),we(GB))},t.\u0275cmp=Yn({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,n){2&e&&Ao("zoom","visible"===n._visibility?1:null)},features:[xt],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,n){var i;1&e&&(je(0,"div",0),wt("@state.start",function(){return n._animationStart()})("@state.done",function(o){return n._animationDone(o)}),Ff(1,"async"),Kt(2),Ue()),2&e&&(mn("mat-tooltip-handset",null==(i=Mf(1,5,n._isHandset))?null:i.matches),ot("ngClass",n.tooltipClass)("@state",n._visibility),et(2),Da(n.message))},directives:[oh],pipes:[j0],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[qB.tooltipState]},changeDetection:0}),t}(),MA=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({providers:[$B],imports:[[yN,Io,CA,Rn],Rn,Uo]}),t}(),r3=function(){function t(){var r=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];f(this,t),this._multiple=e,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Se,n&&n.length&&(e?n.forEach(function(a){return r._markSelected(a)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return v(t,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,n=arguments.length,i=new Array(n),a=0;a void",VI("@transformPanel",[BI()],{optional:!0}))]),transformPanel:Js("transformPanel",[ra("void",or({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ra("showing",or({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ra("showing-multiple",or({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ia("void => *",wa("120ms cubic-bezier(0, 0, 0.2, 1)")),ia("* => void",wa("100ms 25ms linear",or({opacity:0})))])},PA=0,xA=new at("mat-select-scroll-strategy"),y3=new at("MAT_SELECT_CONFIG"),D3={provide:xA,deps:[zo],useFactory:function _3(t){return function(){return t.scrollStrategies.reposition()}}},b3=v(function t(r,e){f(this,t),this.source=r,this.value=e}),C3=wv(AC(Ev(kC(function(){return v(function t(r,e,n,i,a){f(this,t),this._elementRef=r,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=a})}())))),A3=new at("MatSelectTrigger"),k3=function(){var t=function(r){C(n,r);var e=T(n);function n(i,a,o,s,u,l,h,y,w,K,fe,Ee,Fe,Te){var Ce,ze,Ye,ut;return f(this,n),(Ce=e.call(this,u,s,h,y,K))._viewportRuler=i,Ce._changeDetectorRef=a,Ce._ngZone=o,Ce._dir=l,Ce._parentFormField=w,Ce._liveAnnouncer=Fe,Ce._defaultOptions=Te,Ce._panelOpen=!1,Ce._compareWith=function(dt,tn){return dt===tn},Ce._uid="mat-select-".concat(PA++),Ce._triggerAriaLabelledBy=null,Ce._destroy=new Se,Ce._onChange=function(){},Ce._onTouched=function(){},Ce._valueId="mat-select-value-".concat(PA++),Ce._panelDoneAnimatingStream=new Se,Ce._overlayPanelClass=(null===(ze=Ce._defaultOptions)||void 0===ze?void 0:ze.overlayPanelClass)||"",Ce._focused=!1,Ce.controlType="mat-select",Ce._multiple=!1,Ce._disableOptionCentering=null!==(ut=null===(Ye=Ce._defaultOptions)||void 0===Ye?void 0:Ye.disableOptionCentering)&&void 0!==ut&&ut,Ce.ariaLabel="",Ce.optionSelectionChanges=function i3(t){return new ve(function(r){var e;try{e=t()}catch(i){return void r.error(i)}return(e?rt(e):aC()).subscribe(r)})}(function(){var dt=Ce.options;return dt?dt.changes.pipe(ua(dt),Lv(function(){return nt.apply(void 0,P(dt.map(function(tn){return tn.onSelectionChange})))})):Ce._ngZone.onStable.pipe(ui(1),Lv(function(){return Ce.optionSelectionChanges}))}),Ce.openedChange=new It,Ce._openedStream=Ce.openedChange.pipe(qr(function(dt){return dt}),Me(function(){})),Ce._closedStream=Ce.openedChange.pipe(qr(function(dt){return!dt}),Me(function(){})),Ce.selectionChange=new It,Ce.valueChange=new It,Ce.ngControl&&(Ce.ngControl.valueAccessor=ce(Ce)),null!=(null==Te?void 0:Te.typeaheadDebounceInterval)&&(Ce._typeaheadDebounceInterval=Te.typeaheadDebounceInterval),Ce._scrollStrategyFactory=Ee,Ce._scrollStrategy=Ce._scrollStrategyFactory(),Ce.tabIndex=parseInt(fe)||0,Ce.id=Ce.id,Ce}return v(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(a){this._placeholder=a,this.stateChanges.next()}},{key:"required",get:function(){var a,o,s,u;return null!==(u=null!==(a=this._required)&&void 0!==a?a:null===(s=null===(o=this.ngControl)||void 0===o?void 0:o.control)||void 0===s?void 0:s.hasValidator(cD.required))&&void 0!==u&&u},set:function(a){this._required=_n(a),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(a){this._multiple=_n(a)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(a){this._disableOptionCentering=_n(a)}},{key:"compareWith",get:function(){return this._compareWith},set:function(a){this._compareWith=a,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(a){(a!==this._value||this._multiple&&Array.isArray(a))&&(this.options&&this._setSelectionByValue(a),this._value=a)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(a){this._typeaheadDebounceInterval=lu(a)}},{key:"id",get:function(){return this._id},set:function(a){this._id=a||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var a=this;this._selectionModel=new r3(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(bv(),Ct(this._destroy)).subscribe(function(){return a._panelDoneAnimating(a.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var a=this;this._initKeyManager(),this._selectionModel.changed.pipe(Ct(this._destroy)).subscribe(function(o){o.added.forEach(function(s){return s.select()}),o.removed.forEach(function(s){return s.deselect()})}),this.options.changes.pipe(ua(null),Ct(this._destroy)).subscribe(function(){a._resetOptions(),a._initializeSelection()})}},{key:"ngDoCheck",value:function(){var a=this._getTriggerAriaLabelledby();if(a!==this._triggerAriaLabelledBy){var o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=a,a?o.setAttribute("aria-labelledby",a):o.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(a){a.disabled&&this.stateChanges.next(),a.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(a){this.value=a}},{key:"registerOnChange",value:function(a){this._onChange=a}},{key:"registerOnTouched",value:function(a){this._onTouched=a}},{key:"setDisabledState",value:function(a){this.disabled=a,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var a,o;return this.multiple?(null===(a=this._selectionModel)||void 0===a?void 0:a.selected)||[]:null===(o=this._selectionModel)||void 0===o?void 0:o.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var a=this._selectionModel.selected.map(function(o){return o.viewValue});return this._isRtl()&&a.reverse(),a.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(a){this.disabled||(this.panelOpen?this._handleOpenKeydown(a):this._handleClosedKeydown(a))}},{key:"_handleClosedKeydown",value:function(a){var o=a.keyCode,s=40===o||38===o||37===o||39===o,u=13===o||32===o,l=this._keyManager;if(!l.isTyping()&&u&&!Ia(a)||(this.multiple||a.altKey)&&s)a.preventDefault(),this.open();else if(!this.multiple){var h=this.selected;l.onKeydown(a);var y=this.selected;y&&h!==y&&this._liveAnnouncer.announce(y.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(a){var o=this._keyManager,s=a.keyCode,u=40===s||38===s,l=o.isTyping();if(u&&a.altKey)a.preventDefault(),this.close();else if(l||13!==s&&32!==s||!o.activeItem||Ia(a))if(!l&&this._multiple&&65===s&&a.ctrlKey){a.preventDefault();var h=this.options.some(function(w){return!w.disabled&&!w.selected});this.options.forEach(function(w){w.disabled||(h?w.select():w.deselect())})}else{var y=o.activeItemIndex;o.onKeydown(a),this._multiple&&u&&a.shiftKey&&o.activeItem&&o.activeItemIndex!==y&&o.activeItem._selectViaInteraction()}else a.preventDefault(),o.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var a=this;this._overlayDir.positionChange.pipe(ui(1)).subscribe(function(){a._changeDetectorRef.detectChanges(),a._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var a=this;Promise.resolve().then(function(){a.ngControl&&(a._value=a.ngControl.value),a._setSelectionByValue(a._value),a.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(a){var o=this;if(this._selectionModel.selected.forEach(function(u){return u.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&a)Array.isArray(a),a.forEach(function(u){return o._selectValue(u)}),this._sortValues();else{var s=this._selectValue(a);s?this._keyManager.updateActiveItem(s):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(a){var o=this,s=this.options.find(function(u){if(o._selectionModel.isSelected(u))return!1;try{return null!=u.value&&o._compareWith(u.value,a)}catch(l){return!1}});return s&&this._selectionModel.select(s),s}},{key:"_initKeyManager",value:function(){var a=this;this._keyManager=new ZL(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ct(this._destroy)).subscribe(function(){a.panelOpen&&(!a.multiple&&a._keyManager.activeItem&&a._keyManager.activeItem._selectViaInteraction(),a.focus(),a.close())}),this._keyManager.change.pipe(Ct(this._destroy)).subscribe(function(){a._panelOpen&&a.panel?a._scrollOptionIntoView(a._keyManager.activeItemIndex||0):!a._panelOpen&&!a.multiple&&a._keyManager.activeItem&&a._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var a=this,o=nt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ct(o)).subscribe(function(s){a._onSelect(s.source,s.isUserInput),s.isUserInput&&!a.multiple&&a._panelOpen&&(a.close(),a.focus())}),nt.apply(void 0,P(this.options.map(function(s){return s._stateChanges}))).pipe(Ct(o)).subscribe(function(){a._changeDetectorRef.markForCheck(),a.stateChanges.next()})}},{key:"_onSelect",value:function(a,o){var s=this._selectionModel.isSelected(a);null!=a.value||this._multiple?(s!==a.selected&&(a.selected?this._selectionModel.select(a):this._selectionModel.deselect(a)),o&&this._keyManager.setActiveItem(a),this.multiple&&(this._sortValues(),o&&this.focus())):(a.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(a.value)),s!==this._selectionModel.isSelected(a)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var a=this;if(this.multiple){var o=this.options.toArray();this._selectionModel.sort(function(s,u){return a.sortComparator?a.sortComparator(s,u,o):o.indexOf(s)-o.indexOf(u)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(a){var o;o=this.multiple?this.selected.map(function(s){return s.value}):this.selected?this.selected.value:a,this._value=o,this.valueChange.emit(o),this._onChange(o),this.selectionChange.emit(this._getChangeEvent(o)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var a;return!this._panelOpen&&!this.disabled&&(null===(a=this.options)||void 0===a?void 0:a.length)>0}},{key:"focus",value:function(a){this._elementRef.nativeElement.focus(a)}},{key:"_getPanelAriaLabelledby",value:function(){var a;if(this.ariaLabel)return null;var o=null===(a=this._parentFormField)||void 0===a?void 0:a.getLabelId();return this.ariaLabelledby?(o?o+" ":"")+this.ariaLabelledby:o}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var a;if(this.ariaLabel)return null;var o=null===(a=this._parentFormField)||void 0===a?void 0:a.getLabelId(),s=(o?o+" ":"")+this._valueId;return this.ariaLabelledby&&(s+=" "+this.ariaLabelledby),s}},{key:"_panelDoneAnimating",value:function(a){this.openedChange.emit(a)}},{key:"setDescribedByIds",value:function(a){this._ariaDescribedby=a.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(C3);return t.\u0275fac=function(e){return new(e||t)(we(_c),we(Bi),we(Gt),we(Sv),we(rn),we(Pa,8),we($s,8),we(Qs,8),we(Ov,8),we(Ci,10),ga("tabindex"),we(xA),we(mN),we(y3,8))},t.\u0275dir=ht({type:t,viewQuery:function(e,n){var i;1&e&&(hr(s3,5),hr(u3,5),hr(bA,5)),2&e&&(sn(i=un())&&(n.trigger=i.first),sn(i=un())&&(n.panel=i.first),sn(i=un())&&(n._overlayDir=i.first))},inputs:{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:[xt,_r]}),t}(),E3=function(){var t=function(r){C(n,r);var e=T(n);function n(){var i;return f(this,n),(i=e.apply(this,arguments))._scrollTop=0,i._triggerFontSize=0,i._transformOrigin="top",i._offsetY=0,i._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],i}return v(n,[{key:"_calculateOverlayScroll",value:function(a,o,s){var u=this._getItemHeight();return Math.min(Math.max(0,u*a-o+u/2),s)}},{key:"ngOnInit",value:function(){var a=this;M(p(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Ct(this._destroy)).subscribe(function(){a.panelOpen&&(a._triggerRect=a.trigger.nativeElement.getBoundingClientRect(),a._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var a=this;M(p(n.prototype),"_canOpen",this).call(this)&&(M(p(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(ui(1)).subscribe(function(){a._triggerFontSize&&a._overlayDir.overlayRef&&a._overlayDir.overlayRef.overlayElement&&(a._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(a._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(a){var o=PC(a,this.options,this.optionGroups),s=this._getItemHeight();this.panel.nativeElement.scrollTop=0===a&&1===o?0:function NN(t,r,e,n){return te+n?Math.max(0,t-n+r):e}((a+o)*s,s,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(a){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),M(p(n.prototype),"_panelDoneAnimating",this).call(this,a)}},{key:"_getChangeEvent",value:function(a){return new b3(this,a)}},{key:"_calculateOverlayOffsetX",value:function(){var l,a=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),o=this._viewportRuler.getViewportSize(),s=this._isRtl(),u=this.multiple?56:32;if(this.multiple)l=40;else if(this.disableOptionCentering)l=16;else{var h=this._selectionModel.selected[0]||this.options.first;l=h&&h.group?32:16}s||(l*=-1);var y=0-(a.left+l-(s?u:0)),w=a.right+l-o.width+(s?0:u);y>0?l+=y+8:w>0&&(l-=w+8),this._overlayDir.offsetX=Math.round(l),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(a,o,s){var y,u=this._getItemHeight(),l=(u-this._triggerRect.height)/2,h=Math.floor(256/u);return this.disableOptionCentering?0:(y=0===this._scrollTop?a*u:this._scrollTop===s?(a-(this._getItemCount()-h))*u+(u-(this._getItemCount()*u-256)%u):o-u/2,Math.round(-1*y-l))}},{key:"_checkOverlayWithinViewport",value:function(a){var o=this._getItemHeight(),s=this._viewportRuler.getViewportSize(),u=this._triggerRect.top-8,l=s.height-this._triggerRect.bottom-8,h=Math.abs(this._offsetY),w=Math.min(this._getItemCount()*o,256)-h-this._triggerRect.height;w>l?this._adjustPanelUp(w,l):h>u?this._adjustPanelDown(h,u,a):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(a,o){var s=Math.round(a-o);this._scrollTop-=s,this._offsetY-=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(a,o,s){var u=Math.round(a-o);if(this._scrollTop+=u,this._offsetY+=u,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=s)return this._scrollTop=s,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var h,a=this._getItemHeight(),o=this._getItemCount(),s=Math.min(o*a,256),l=o*a-s;h=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),h+=PC(h,this.options,this.optionGroups);var y=s/2;this._scrollTop=this._calculateOverlayScroll(h,y,l),this._offsetY=this._calculateOverlayOffsetY(h,y,l),this._checkOverlayWithinViewport(l)}},{key:"_getOriginBasedOnOption",value:function(){var a=this._getItemHeight(),o=(a-this._triggerRect.height)/2,s=Math.abs(this._offsetY)-o+a/2;return"50% ".concat(s,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(k3);return t.\u0275fac=function(){var r;return function(n){return(r||(r=nr(t)))(n||t)}}(),t.\u0275cmp=Yn({type:t,selectors:[["mat-select"]],contentQueries:function(e,n,i){var a;1&e&&(ar(i,A3,5),ar(i,TC,5),ar(i,MC,5)),2&e&&(sn(a=un())&&(n.customTrigger=a.first),sn(a=un())&&(n.options=a),sn(a=un())&&(n.optionGroups=a))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,n){1&e&&wt("keydown",function(a){return n._handleKeydown(a)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&e&&(gn("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-describedby",n._ariaDescribedby||null)("aria-activedescendant",n._getAriaActiveDescendant()),mn("mat-select-disabled",n.disabled)("mat-select-invalid",n.errorState)("mat-select-required",n.required)("mat-select-empty",n.empty)("mat-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[nn([{provide:pc,useExisting:t},{provide:FC,useExisting:t}]),xt],ngContentSelectors:p3,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(e,n){if(1&e&&(Hr(v3),je(0,"div",0,1),wt("click",function(){return n.toggle()}),je(3,"div",2),Jt(4,l3,2,1,"span",3),Jt(5,f3,3,2,"span",4),Ue(),je(6,"div",5),en(7,"div",6),Ue(),Ue(),Jt(8,h3,4,14,"ng-template",7),wt("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&e){var i=Do(1);gn("aria-owns",n.panelOpen?n.id+"-panel":null),et(3),ot("ngSwitch",n.empty),gn("id",n._valueId),et(1),ot("ngSwitchCase",!0),et(1),ot("ngSwitchCase",!1),et(3),ot("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayMinWidth",null==n._triggerRect?null:n._triggerRect.width)("cdkConnectedOverlayOffsetY",n._offsetY)}},directives:[DA,Us,uh,V0,bA,oh],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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 transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[TA.transformPanelWrap,TA.transformPanel]},changeDetection:0}),t}(),IA=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=$t({providers:[D3],imports:[[Io,CA,OC,Rn],Uo,vu,OC,Rn]}),t}();function w3(t,r){return new ve(r?function(e){return r.schedule(S3,0,{error:t,subscriber:e})}:function(e){return e.error(t)})}function S3(t){t.subscriber.error(t.error)}var M3=function(){function t(r){f(this,t),this.selector=r}return v(t,[{key:"call",value:function(e,n){return n.subscribe(new T3(e,this.selector,this.caught))}}]),t}(),T3=function(t){C(e,t);var r=T(e);function e(n,i,a){var o;return f(this,e),(o=r.call(this,n)).selector=i,o.caught=a,o}return v(e,[{key:"error",value:function(i){if(!this.isStopped){var a;try{a=this.selector(i,this.caught)}catch(u){return void M(p(e.prototype),"error",this).call(this,u)}this._unsubscribeAndRecycle();var o=new Xe(this,void 0,void 0);this.add(o);var s=Oe(this,a,void 0,void 0,o);s!==o&&this.add(s)}}}]),e}(Ne),O3=function(){function t(r){f(this,t),this.callback=r}return v(t,[{key:"call",value:function(e,n){return n.subscribe(new x3(e,this.callback))}}]),t}(),x3=function(t){C(e,t);var r=T(e);function e(n,i){var a;return f(this,e),(a=r.call(this,n)).add(new N(i)),a}return v(e)}(b);function I3(t,r){return Le(t,r,1)}var R3=v(function t(){f(this,t)}),bc=function(){function t(r){var e=this;f(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,r?this.lazyInit="string"==typeof r?function(){e.headers=new Map,r.split("\n").forEach(function(n){var i=n.indexOf(":");if(i>0){var a=n.slice(0,i),o=a.toLowerCase(),s=n.slice(i+1).trim();e.maybeSetNormalizedName(a,o),e.headers.has(o)?e.headers.get(o).push(s):e.headers.set(o,[s])}})}:function(){e.headers=new Map,Object.keys(r).forEach(function(n){var i=r[n],a=n.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(e.headers.set(a,i),e.maybeSetNormalizedName(n,a))})}:this.headers=new Map}return v(t,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,n){return this.clone({name:e,value:n,op:"a"})}},{key:"set",value:function(e,n){return this.clone({name:e,value:n,op:"s"})}},{key:"delete",value:function(e,n){return this.clone({name:e,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(n){return e.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var n=this;e.init(),Array.from(e.headers.keys()).forEach(function(i){n.headers.set(i,e.headers.get(i)),n.normalizedNames.set(i,e.normalizedNames.get(i))})}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(e){var n=e.name.toLowerCase();switch(e.op){case"a":case"s":var i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,n);var a=("a"===e.op?this.headers.get(n):void 0)||[];a.push.apply(a,P(i)),this.headers.set(n,a);break;case"d":var o=e.value;if(o){var s=this.headers.get(n);if(!s)return;0===(s=s.filter(function(u){return-1===o.indexOf(u)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(e){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(i){return e(n.normalizedNames.get(i),n.headers.get(i))})}}]),t}(),L3=function(){function t(){f(this,t)}return v(t,[{key:"encodeKey",value:function(e){return RA(e)}},{key:"encodeValue",value:function(e){return RA(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),t}();function N3(t,r){var e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(function(i){var a=i.indexOf("="),s=j(-1==a?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,a)),r.decodeValue(i.slice(a+1))],2),u=s[0],l=s[1],h=e.get(u)||[];h.push(l),e.set(u,h)}),e}var B3=/%(\d[a-f0-9])/gi,V3={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function RA(t){return encodeURIComponent(t).replace(B3,function(r,e){var n;return null!==(n=V3[e])&&void 0!==n?n:r})}function LA(t){return"".concat(t)}var qo=function(){function t(){var r=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(f(this,t),this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new L3,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=N3(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(function(n){var i=e.fromObject[n];r.map.set(n,Array.isArray(i)?i:[i])})):this.map=null}return v(t,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var n=this.map.get(e);return n?n[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,n){return this.clone({param:e,value:n,op:"a"})}},{key:"appendAll",value:function(e){var n=[];return Object.keys(e).forEach(function(i){var a=e[i];Array.isArray(a)?a.forEach(function(o){n.push({param:i,value:o,op:"a"})}):n.push({param:i,value:a,op:"a"})}),this.clone(n)}},{key:"set",value:function(e,n){return this.clone({param:e,value:n,op:"s"})}},{key:"delete",value:function(e,n){return this.clone({param:e,value:n,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(n){var i=e.encoder.encodeKey(n);return e.map.get(n).map(function(a){return i+"="+e.encoder.encodeValue(a)}).join("&")}).filter(function(n){return""!==n}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(n){return e.map.set(n,e.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var i=("a"===n.op?e.map.get(n.param):void 0)||[];i.push(LA(n.value)),e.map.set(n.param,i);break;case"d":if(void 0===n.value){e.map.delete(n.param);break}var a=e.map.get(n.param)||[],o=a.indexOf(LA(n.value));-1!==o&&a.splice(o,1),a.length>0?e.map.set(n.param,a):e.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),t}(),H3=function(){function t(){f(this,t),this.map=new Map}return v(t,[{key:"set",value:function(e,n){return this.map.set(e,n),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"has",value:function(e){return this.map.has(e)}},{key:"keys",value:function(){return this.map.keys()}}]),t}();function NA(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function BA(t){return"undefined"!=typeof Blob&&t instanceof Blob}function VA(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Nv=function(){function t(r,e,n,i){var a;if(f(this,t),this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase(),function j3(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,a=i):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new bc),this.context||(this.context=new H3),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=e.method||this.method,a=e.url||this.url,o=e.responseType||this.responseType,s=void 0!==e.body?e.body:this.body,u=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,h=e.headers||this.headers,y=e.params||this.params,w=null!==(n=e.context)&&void 0!==n?n:this.context;return void 0!==e.setHeaders&&(h=Object.keys(e.setHeaders).reduce(function(K,fe){return K.set(fe,e.setHeaders[fe])},h)),e.setParams&&(y=Object.keys(e.setParams).reduce(function(K,fe){return K.set(fe,e.setParams[fe])},y)),new t(i,a,s,{params:y,headers:h,context:w,reportProgress:l,responseType:o,withCredentials:u})}}]),t}(),sr=function(){return(sr=sr||{})[sr.Sent=0]="Sent",sr[sr.UploadProgress=1]="UploadProgress",sr[sr.ResponseHeader=2]="ResponseHeader",sr[sr.DownloadProgress=3]="DownloadProgress",sr[sr.Response=4]="Response",sr[sr.User=5]="User",sr}(),z3=v(function t(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";f(this,t),this.headers=r.headers||new bc,this.status=void 0!==r.status?r.status:e,this.statusText=r.statusText||n,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}),G3=function(t){C(e,t);var r=T(e);function e(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(this,e),(n=r.call(this,i)).type=sr.Response,n.body=void 0!==i.body?i.body:null,n}return v(e,[{key:"clone",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}]),e}(z3);function Bv(t,r){return{body:r,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Cc,HA=function(){var t=function(){function r(e){f(this,r),this.handler=e}return v(r,[{key:"request",value:function(n,i){var s,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Nv)s=n;else{var u=void 0;u=o.headers instanceof bc?o.headers:new bc(o.headers);var l=void 0;o.params&&(l=o.params instanceof qo?o.params:new qo({fromObject:o.params})),s=new Nv(n,i,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var h=ji(s).pipe(I3(function(w){return a.handler.handle(w)}));if(n instanceof Nv||"events"===o.observe)return h;var y=h.pipe(qr(function(w){return w instanceof G3}));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return y.pipe(Me(function(w){if(null!==w.body&&!(w.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return w.body}));case"blob":return y.pipe(Me(function(w){if(null!==w.body&&!(w.body instanceof Blob))throw new Error("Response is not a Blob.");return w.body}));case"text":return y.pipe(Me(function(w){if(null!==w.body&&"string"!=typeof w.body)throw new Error("Response is not a string.");return w.body}));default:return y.pipe(Me(function(w){return w.body}))}case"response":return y;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,i)}},{key:"get",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,i)}},{key:"head",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,i)}},{key:"jsonp",value:function(n,i){return this.request("JSONP",n,{params:(new qo).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,i)}},{key:"patch",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,Bv(a,i))}},{key:"post",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,Bv(a,i))}},{key:"put",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,Bv(a,i))}}]),r}();return t.\u0275fac=function(e){return new(e||t)(He(R3))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t}(),q3=["*"];function gu(t){var r;return(null===(r=function X3(){if(void 0===Cc&&(Cc=null,"undefined"!=typeof window)){var t=window;void 0!==t.trustedTypes&&(Cc=t.trustedTypes.createPolicy("angular#components",{createHTML:function(e){return e}}))}return Cc}())||void 0===r?void 0:r.createHTML(t))||t}function jA(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function UA(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(t,'".'))}function zA(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var La=v(function t(r,e,n){f(this,t),this.url=r,this.svgText=e,this.options=n}),Ac=function(){var t=function(){function r(e,n,i,a){f(this,r),this._httpClient=e,this._sanitizer=n,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return v(r,[{key:"addSvgIcon",value:function(n,i,a){return this.addSvgIconInNamespace("",n,i,a)}},{key:"addSvgIconLiteral",value:function(n,i,a){return this.addSvgIconLiteralInNamespace("",n,i,a)}},{key:"addSvgIconInNamespace",value:function(n,i,a,o){return this._addSvgIconConfig(n,i,new La(a,null,o))}},{key:"addSvgIconResolver",value:function(n){return this._resolvers.push(n),this}},{key:"addSvgIconLiteralInNamespace",value:function(n,i,a,o){var s=this._sanitizer.sanitize(on.HTML,a);if(!s)throw zA(a);var u=gu(s);return this._addSvgIconConfig(n,i,new La("",u,o))}},{key:"addSvgIconSet",value:function(n,i){return this.addSvgIconSetInNamespace("",n,i)}},{key:"addSvgIconSetLiteral",value:function(n,i){return this.addSvgIconSetLiteralInNamespace("",n,i)}},{key:"addSvgIconSetInNamespace",value:function(n,i,a){return this._addSvgIconSetConfig(n,new La(i,null,a))}},{key:"addSvgIconSetLiteralInNamespace",value:function(n,i,a){var o=this._sanitizer.sanitize(on.HTML,i);if(!o)throw zA(i);var s=gu(o);return this._addSvgIconSetConfig(n,new La("",s,a))}},{key:"registerFontClassAlias",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return this._fontCssClassesByAlias.set(n,i),this}},{key:"classNameForFontAlias",value:function(n){return this._fontCssClassesByAlias.get(n)||n}},{key:"setDefaultFontSetClass",value:function(n){return this._defaultFontSetClass=n,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(n){var i=this,a=this._sanitizer.sanitize(on.RESOURCE_URL,n);if(!a)throw UA(n);var o=this._cachedIconsByUrl.get(a);return o?ji(kc(o)):this._loadSvgIconFromConfig(new La(n,null)).pipe(cc(function(s){return i._cachedIconsByUrl.set(a,s)}),Me(function(s){return kc(s)}))}},{key:"getNamedSvgIcon",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=GA(i,n),o=this._svgIconConfigs.get(a);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,n))return this._svgIconConfigs.set(a,o),this._getSvgFromConfig(o);var s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(n,s):w3(jA(a))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(n){return n.svgText?ji(kc(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(Me(function(i){return kc(i)}))}},{key:"_getSvgFromIconSetConfigs",value:function(n,i){var a=this,o=this._extractIconWithNameFromAnySet(n,i);if(o)return ji(o);var s=i.filter(function(u){return!u.svgText}).map(function(u){return a._loadSvgIconSetFromConfig(u).pipe(function F3(t){return function(e){var n=new M3(t),i=e.lift(n);return n.caught=i}}(function(l){var h=a._sanitizer.sanitize(on.RESOURCE_URL,u.url),y="Loading icon set URL: ".concat(h," failed: ").concat(l.message);return a._errorHandler.handleError(new Error(y)),ji(null)}))});return oD(s).pipe(Me(function(){var u=a._extractIconWithNameFromAnySet(n,i);if(!u)throw jA(n);return u}))}},{key:"_extractIconWithNameFromAnySet",value:function(n,i){for(var a=i.length-1;a>=0;a--){var o=i[a];if(o.svgText&&o.svgText.toString().indexOf(n)>-1){var s=this._svgElementFromConfig(o),u=this._extractSvgIconFromSet(s,n,o.options);if(u)return u}}return null}},{key:"_loadSvgIconFromConfig",value:function(n){var i=this;return this._fetchIcon(n).pipe(cc(function(a){return n.svgText=a}),Me(function(){return i._svgElementFromConfig(n)}))}},{key:"_loadSvgIconSetFromConfig",value:function(n){return n.svgText?ji(null):this._fetchIcon(n).pipe(cc(function(i){return n.svgText=i}))}},{key:"_extractSvgIconFromSet",value:function(n,i,a){var o=n.querySelector('[id="'.concat(i,'"]'));if(!o)return null;var s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,a);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),a);var u=this._svgElementFromString(gu(""));return u.appendChild(s),this._setSvgAttributes(u,a)}},{key:"_svgElementFromString",value:function(n){var i=this._document.createElement("DIV");i.innerHTML=n;var a=i.querySelector("svg");if(!a)throw Error(" tag not found");return a}},{key:"_toSvgElement",value:function(n){for(var i=this._svgElementFromString(gu("")),a=n.attributes,o=0;on.pdfViewerContainer.nativeElement.clientWidth){var h=a.getViewport({scale:1,rotation:o});u=n.getScale(h.width,h.height),l=!n._stickToPage}n.pdfViewer._setScale(u,l)}})}},{key:"clear",value:function(){this.loadingTask&&!this.loadingTask.destroyed&&this.loadingTask.destroy(),this._pdf&&(this._latestScrolledPage=0,this._pdf.destroy(),this._pdf=null,this.pdfViewer.setDocument(null),this.pdfLinkService.setDocument(null,null),this.pdfFindController.setDocument(null))}},{key:"getPDFLinkServiceConfig",value:function(){var n=r.getLinkTarget(this._externalLinkTarget);return n?{externalLinkTarget:n}:{}}},{key:"initEventBus",value:function(){var n=this;this.eventBus=function aV(t,r){var e=new t.EventBus;return function oV(t,r){yn(t,"documentload").pipe(Ct(r)).subscribe(function(){var e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)}),yn(t,"pagerendered").pipe(Ct(r)).subscribe(function(e){var n=e.pageNumber,i=e.cssTransform,a=e.source,o=document.createEvent("CustomEvent");o.initCustomEvent("pagerendered",!0,!0,{pageNumber:n,cssTransform:i}),a.div.dispatchEvent(o)}),yn(t,"textlayerrendered").pipe(Ct(r)).subscribe(function(e){var n=e.pageNumber,i=e.source,a=document.createEvent("CustomEvent");a.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:n}),i.textLayerDiv.dispatchEvent(a)}),yn(t,"pagechanging").pipe(Ct(r)).subscribe(function(e){var n=e.pageNumber,i=e.source,a=document.createEvent("UIEvents");a.initEvent("pagechanging",!0,!0),a.pageNumber=n,i.container.dispatchEvent(a)}),yn(t,"pagesinit").pipe(Ct(r)).subscribe(function(e){var n=e.source,i=document.createEvent("CustomEvent");i.initCustomEvent("pagesinit",!0,!0,null),n.container.dispatchEvent(i)}),yn(t,"pagesloaded").pipe(Ct(r)).subscribe(function(e){var n=e.pagesCount,i=e.source,a=document.createEvent("CustomEvent");a.initCustomEvent("pagesloaded",!0,!0,{pagesCount:n}),i.container.dispatchEvent(a)}),yn(t,"scalechange").pipe(Ct(r)).subscribe(function(e){var n=e.scale,i=e.presetValue,a=e.source,o=document.createEvent("UIEvents");o.initEvent("scalechange",!0,!0),o.scale=n,o.presetValue=i,a.container.dispatchEvent(o)}),yn(t,"updateviewarea").pipe(Ct(r)).subscribe(function(e){var n=e.location,i=e.source,a=document.createEvent("UIEvents");a.initEvent("updateviewarea",!0,!0),a.location=n,i.container.dispatchEvent(a)}),yn(t,"find").pipe(Ct(r)).subscribe(function(e){var i=e.type,a=e.query,o=e.phraseSearch,s=e.caseSensitive,u=e.highlightAll,l=e.findPrevious;if(e.source!==window){var h=document.createEvent("CustomEvent");h.initCustomEvent("find"+i,!0,!0,{query:a,phraseSearch:o,caseSensitive:s,highlightAll:u,findPrevious:l}),window.dispatchEvent(h)}}),yn(t,"attachmentsloaded").pipe(Ct(r)).subscribe(function(e){var n=e.attachmentsCount,i=e.source,a=document.createEvent("CustomEvent");a.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:n}),i.container.dispatchEvent(a)}),yn(t,"sidebarviewchanged").pipe(Ct(r)).subscribe(function(e){var n=e.view,i=e.source,a=document.createEvent("CustomEvent");a.initCustomEvent("sidebarviewchanged",!0,!0,{view:n}),i.outerContainer.dispatchEvent(a)}),yn(t,"pagemode").pipe(Ct(r)).subscribe(function(e){var n=e.mode,i=e.source,a=document.createEvent("CustomEvent");a.initCustomEvent("pagemode",!0,!0,{mode:n}),i.pdfViewer.container.dispatchEvent(a)}),yn(t,"namedaction").pipe(Ct(r)).subscribe(function(e){var n=e.action,i=e.source,a=document.createEvent("CustomEvent");a.initCustomEvent("namedaction",!0,!0,{action:n}),i.pdfViewer.container.dispatchEvent(a)}),yn(t,"presentationmodechanged").pipe(Ct(r)).subscribe(function(e){var n=e.active,i=e.switchInProgress,a=document.createEvent("CustomEvent");a.initCustomEvent("presentationmodechanged",!0,!0,{active:n,switchInProgress:i}),window.dispatchEvent(a)}),yn(t,"outlineloaded").pipe(Ct(r)).subscribe(function(e){var n=e.outlineCount,i=e.source,a=document.createEvent("CustomEvent");a.initCustomEvent("outlineloaded",!0,!0,{outlineCount:n}),i.container.dispatchEvent(a)})}(e,r),e}(Ei,this.destroy$),yn(this.eventBus,"pagerendered").pipe(Ct(this.destroy$)).subscribe(function(i){n.pageRendered.emit(i)}),yn(this.eventBus,"pagesinit").pipe(Ct(this.destroy$)).subscribe(function(i){n.pageInitialized.emit(i)}),yn(this.eventBus,"pagechanging").pipe(Ct(this.destroy$)).subscribe(function(i){var a=i.pageNumber;n.pageScrollTimeout&&clearTimeout(n.pageScrollTimeout),n.pageScrollTimeout=window.setTimeout(function(){n._latestScrolledPage=a,n.pageChange.emit(a)},100)}),yn(this.eventBus,"textlayerrendered").pipe(Ct(this.destroy$)).subscribe(function(i){n.textLayerRendered.emit(i)})}},{key:"initPDFServices",value:function(){this.pdfLinkService=new Ei.PDFLinkService(Object.assign({eventBus:this.eventBus},this.getPDFLinkServiceConfig())),this.pdfFindController=new Ei.PDFFindController({eventBus:this.eventBus,linkService:this.pdfLinkService})}},{key:"getPDFOptions",value:function(){return{eventBus:this.eventBus,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfLinkService,textLayerMode:this._renderText?this._renderTextMode:Xo.DISABLED,findController:this.pdfFindController,renderer:"canvas",l10n:void 0,imageResourcesPath:this._imageResourcesPath}}},{key:"setupViewer",value:function(){Vv(ki,"disableTextLayer",!this._renderText),this.initPDFServices(),this.pdfViewer=this._showAll?new Ei.PDFViewer(this.getPDFOptions()):new Ei.PDFSinglePageViewer(this.getPDFOptions()),this.pdfLinkService.setViewer(this.pdfViewer),this.pdfViewer._currentPageNumber=this._page}},{key:"getValidPageNumber",value:function(n){return n<1?1:n>this._pdf.numPages?this._pdf.numPages:n}},{key:"getDocumentParams",value:function(){var n=typeof this.src;if(!this._cMapsUrl)return this.src;var i={cMapUrl:this._cMapsUrl,cMapPacked:!0,enableXfa:!0};return"string"===n?i.url=this.src:"object"===n&&(void 0!==this.src.byteLength?i.data=this.src:Object.assign(i,this.src)),i}},{key:"loadPDF",value:function(){var n=this;if(this.src){if(this.lastLoaded===this.src)return void this.update();this.clear(),this.setupViewer(),this.loadingTask=ki.getDocument(this.getDocumentParams()),this.loadingTask.onProgress=function(a){n.onProgress.emit(a)};var i=this.src;rt(this.loadingTask.promise).pipe(Ct(this.destroy$)).subscribe({next:function(o){n._pdf=o,n.lastLoaded=i,n.afterLoadComplete.emit(o),n.resetPdfDocument(),n.update()},error:function(o){n.lastLoaded=null,n.onError.emit(o)}})}}},{key:"update",value:function(){this.page=this._page,this.render()}},{key:"render",value:function(){var n=this;this._page=this.getValidPageNumber(this._page),(0!==this._rotation||this.pdfViewer.pagesRotation!==this._rotation)&&setTimeout(function(){n.pdfViewer.pagesRotation=n._rotation}),this._stickToPage&&setTimeout(function(){n.pdfViewer.currentPageNumber=n._page}),this.updateSize()}},{key:"getScale",value:function(n,i){var a=this._showBorders?2*r.BORDER_WIDTH:0,o=this.pdfViewerContainer.nativeElement.clientWidth-a,s=this.pdfViewerContainer.nativeElement.clientHeight-a;if(0===s||0===i||0===o||0===n)return 1;var u=1;switch(this._zoomScale){case"page-fit":u=Math.min(s/i,o/n);break;case"page-height":u=s/i;break;default:u=o/n}return this._zoom*u/r.CSS_UNITS}},{key:"resetPdfDocument",value:function(){this.pdfLinkService.setDocument(this._pdf,null),this.pdfFindController.setDocument(this._pdf),this.pdfViewer.setDocument(this._pdf)}},{key:"initialize",value:function(){mu()||!this.isVisible||(this.isInitialized=!0,this.initEventBus(),this.setupViewer())}},{key:"setupResizeListener",value:function(){var n=this;mu()||this.ngZone.runOutsideAngular(function(){yn(window,"resize").pipe(uu(100),qr(function(){return n._canAutoResize&&!!n._pdf}),Ct(n.destroy$)).subscribe(function(){n.updateSize()})})}}],[{key:"getLinkTarget",value:function(n){switch(n){case"blank":return Ei.LinkTarget.BLANK;case"none":return Ei.LinkTarget.NONE;case"self":return Ei.LinkTarget.SELF;case"parent":return Ei.LinkTarget.PARENT;case"top":return Ei.LinkTarget.TOP}return null}}]),r}();return t.CSS_UNITS=96/72,t.BORDER_WIDTH=9,t.\u0275fac=function(e){return new(e||t)(we(rn),we(Gt))},t.\u0275cmp=Yn({type:t,selectors:[["pdf-viewer"]],viewQuery:function(e,n){var i;1&e&&hr(sV,5),2&e&&sn(i=un())&&(n.pdfViewerContainer=i.first)},inputs:{src:"src",cMapsUrl:["c-maps-url","cMapsUrl"],page:"page",renderText:["render-text","renderText"],renderTextMode:["render-text-mode","renderTextMode"],originalSize:["original-size","originalSize"],showAll:["show-all","showAll"],stickToPage:["stick-to-page","stickToPage"],zoom:"zoom",zoomScale:["zoom-scale","zoomScale"],rotation:"rotation",externalLinkTarget:["external-link-target","externalLinkTarget"],autoresize:"autoresize",fitToPage:["fit-to-page","fitToPage"],showBorders:["show-borders","showBorders"]},outputs:{afterLoadComplete:"after-load-complete",pageRendered:"page-rendered",pageInitialized:"pages-initialized",textLayerRendered:"text-layer-rendered",onError:"error",onProgress:"on-progress",pageChange:"pageChange"},features:[_r],decls:3,vars:0,consts:[[1,"ng2-pdf-viewer-container"],["pdfViewerContainer",""],[1,"pdfViewer"]],template:function(e,n){1&e&&(je(0,"div",0,1),en(2,"div",2),Ue())},styles:[".ng2-pdf-viewer-container[_ngcontent-%COMP%]{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}[_nghost-%COMP%]{display:block;position:relative}[_nghost-%COMP%] {--pdfViewer-padding-bottom: 0;--page-margin: 1px auto -8px;--page-border: 9px solid transparent;--spreadHorizontalWrapped-margin-LR: -3.5px;--zoom-factor: 1;--viewport-scale-factor: 1;--shadow: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAA1ElEQVQ4jbWUWw6EIAxFy2NFs/8NzR4UJhpqLsdi5mOmSSMUOfYWqv3S0gMr4XlYH/64gZa/gN3ANYA7KAXALt4ktoQ5MI9YxqaG8bWmsIysMuT6piSQCa4whZThCu8CM4zP9YJaKci9jicPq3NcBWYoPMGUlhG7ivtkB+gVyFY75wXghOvh8t5mto1Mdim6e+MBqH6XsY+YAwjpq3vGF7weTWQptLEDVCZvPTMl5JZZsdh47FHW6qFMyvLYqjcnmdFfY9Xk/KDOlzCusX2mi/ofM7MPkzBcSp4Q1/wAAAAASUVORK5CYII=);--viewer-container-height: 0;--annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,\");--xfa-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,\")}@media screen and (forced-colors: active){[_nghost-%COMP%] {--pdfViewer-padding-bottom: 9px;--page-margin: 9px auto 0;--page-border: none;--spreadHorizontalWrapped-margin-LR: 4.5px}}[_nghost-%COMP%] .textLayer{position:absolute;text-align:initial;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1;-webkit-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none}[_nghost-%COMP%] .textLayer span, [_nghost-%COMP%] .textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}[_nghost-%COMP%] .textLayer span.markedContent{top:0;height:0}[_nghost-%COMP%] .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}[_nghost-%COMP%] .textLayer .highlight.appended{position:initial}[_nghost-%COMP%] .textLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .textLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .textLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .textLayer .highlight.selected{background-color:#006400}[_nghost-%COMP%] .textLayer ::selection{background:blue}[_nghost-%COMP%] .textLayer br::selection{background:transparent}[_nghost-%COMP%] .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .textLayer .endOfContent.active{top:0}[_nghost-%COMP%] .annotationLayer section{position:absolute;text-align:initial}[_nghost-%COMP%] .annotationLayer .linkAnnotation>a, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>canvas{position:relative;top:0;left:0;z-index:-1}[_nghost-%COMP%] .annotationLayer .linkAnnotation>a:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover{opacity:.2;background:yellow;box-shadow:0 2px 10px #ff0}[_nghost-%COMP%] .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{background-image:var(--annotation-unfocused-field-background);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}[_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select option{padding:0}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input[disabled], [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea[disabled], [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:hover, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:hover, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid black}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:focus, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:1px solid transparent}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input :focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea :focus, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select :focus, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox :focus, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent;outline:auto}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:\"\";display:block;position:absolute}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}[_nghost-%COMP%] .annotationLayer .popupWrapper{position:absolute;width:20em}[_nghost-%COMP%] .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;white-space:normal;word-wrap:break-word}[_nghost-%COMP%] .annotationLayer .popup>*{font-size:9px}[_nghost-%COMP%] .annotationLayer .popup h1{display:inline-block}[_nghost-%COMP%] .annotationLayer .popupDate{display:inline-block;margin-left:5px}[_nghost-%COMP%] .annotationLayer .popupContent{border-top:1px solid #333333;margin-top:2px;padding-top:2px}[_nghost-%COMP%] .annotationLayer .richText>*{white-space:pre-wrap}[_nghost-%COMP%] .annotationLayer .highlightAnnotation, [_nghost-%COMP%] .annotationLayer .underlineAnnotation, [_nghost-%COMP%] .annotationLayer .squigglyAnnotation, [_nghost-%COMP%] .annotationLayer .strikeoutAnnotation, [_nghost-%COMP%] .annotationLayer .freeTextAnnotation, [_nghost-%COMP%] .annotationLayer .lineAnnotation svg line, [_nghost-%COMP%] .annotationLayer .squareAnnotation svg rect, [_nghost-%COMP%] .annotationLayer .circleAnnotation svg ellipse, [_nghost-%COMP%] .annotationLayer .polylineAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .polygonAnnotation svg polygon, [_nghost-%COMP%] .annotationLayer .caretAnnotation, [_nghost-%COMP%] .annotationLayer .inkAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .stampAnnotation, [_nghost-%COMP%] .annotationLayer .fileAttachmentAnnotation{cursor:pointer}[_nghost-%COMP%] .xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}[_nghost-%COMP%] .xfaLayer .highlight.appended{position:initial}[_nghost-%COMP%] .xfaLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .xfaLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .xfaLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .xfaLayer .highlight.selected{background-color:#cbdfcb}[_nghost-%COMP%] .xfaLayer ::selection{background:blue}[_nghost-%COMP%] .xfaPage{overflow:hidden;position:relative}[_nghost-%COMP%] .xfaContentarea{position:absolute}[_nghost-%COMP%] .xfaPrintOnly{display:none}[_nghost-%COMP%] .xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}[_nghost-%COMP%] .xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-feature-settings:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}[_nghost-%COMP%] .xfaLayer div{pointer-events:none}[_nghost-%COMP%] .xfaLayer svg{pointer-events:none}[_nghost-%COMP%] .xfaLayer svg *{pointer-events:none}[_nghost-%COMP%] .xfaLayer a{color:#00f}[_nghost-%COMP%] .xfaRich li{margin-left:3em}[_nghost-%COMP%] .xfaFont{color:#000;font-weight:400;font-feature-settings:\"kern\" off;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}[_nghost-%COMP%] .xfaCaption{overflow:hidden;flex:0 0 auto}[_nghost-%COMP%] .xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}[_nghost-%COMP%] .xfaLabel{height:100%;width:100%}[_nghost-%COMP%] .xfaLeft{display:flex;flex-direction:row;align-items:center}[_nghost-%COMP%] .xfaRight{display:flex;flex-direction:row-reverse;align-items:center}[_nghost-%COMP%] .xfaLeft>.xfaCaption, [_nghost-%COMP%] .xfaLeft>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaRight>.xfaCaption, [_nghost-%COMP%] .xfaRight>.xfaCaptionForCheckButton{max-height:100%}[_nghost-%COMP%] .xfaTop{display:flex;flex-direction:column;align-items:flex-start}[_nghost-%COMP%] .xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}[_nghost-%COMP%] .xfaTop>.xfaCaption, [_nghost-%COMP%] .xfaTop>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaBottom>.xfaCaption, [_nghost-%COMP%] .xfaBottom>.xfaCaptionForCheckButton{width:100%}[_nghost-%COMP%] .xfaBorder{background-color:transparent;position:absolute;pointer-events:none}[_nghost-%COMP%] .xfaWrapped{width:100%;height:100%}[_nghost-%COMP%] .xfaTextfield:focus, [_nghost-%COMP%] .xfaSelect:focus{background-image:none;background-color:transparent;outline:auto;outline-offset:-1px}[_nghost-%COMP%] .xfaCheckbox:focus, [_nghost-%COMP%] .xfaRadio:focus{outline:auto}[_nghost-%COMP%] .xfaTextfield, [_nghost-%COMP%] .xfaSelect{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}[_nghost-%COMP%] .xfaTop>.xfaTextfield, [_nghost-%COMP%] .xfaTop>.xfaSelect, [_nghost-%COMP%] .xfaBottom>.xfaTextfield, [_nghost-%COMP%] .xfaBottom>.xfaSelect{flex:0 1 auto}[_nghost-%COMP%] .xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}[_nghost-%COMP%] .xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}[_nghost-%COMP%] .xfaCheckbox, [_nghost-%COMP%] .xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}[_nghost-%COMP%] .xfaRich{white-space:pre-wrap;width:100%;height:100%}[_nghost-%COMP%] .xfaImage{object-position:left top;object-fit:contain;width:100%;height:100%}[_nghost-%COMP%] .xfaLrTb, [_nghost-%COMP%] .xfaRlTb, [_nghost-%COMP%] .xfaTb{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaLr{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}[_nghost-%COMP%] .xfaTb>div{justify-content:left}[_nghost-%COMP%] .xfaPosition{position:relative}[_nghost-%COMP%] .xfaArea{position:relative}[_nghost-%COMP%] .xfaValignMiddle{display:flex;align-items:center}[_nghost-%COMP%] .xfaTable{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}[_nghost-%COMP%] .xfaTable .xfaRlRow>div{flex:1}[_nghost-%COMP%] .xfaNonInteractive input, [_nghost-%COMP%] .xfaNonInteractive textarea, [_nghost-%COMP%] .xfaDisabled input, [_nghost-%COMP%] .xfaDisabled textarea, [_nghost-%COMP%] .xfaReadOnly input, [_nghost-%COMP%] .xfaReadOnly textarea{background:initial}@media print{[_nghost-%COMP%] .xfaTextfield, [_nghost-%COMP%] .xfaSelect{background:transparent}[_nghost-%COMP%] .xfaSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:\"\"}}[_nghost-%COMP%] .pdfViewer{padding-bottom:var(--pdfViewer-padding-bottom)}[_nghost-%COMP%] .pdfViewer .canvasWrapper{overflow:hidden}[_nghost-%COMP%] .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);background-clip:content-box;border-image:var(--shadow) 9 9 repeat;background-color:#fff}[_nghost-%COMP%] .pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}[_nghost-%COMP%] .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}[_nghost-%COMP%] .pdfViewer.singlePageView{display:inline-block}[_nghost-%COMP%] .pdfViewer.singlePageView .page{margin:0;border:none}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .pdfViewer.scrollWrapped, [_nghost-%COMP%] .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .spread{white-space:nowrap}[_nghost-%COMP%] .pdfViewer.removePageBorders, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}[_nghost-%COMP%] .spread .page, [_nghost-%COMP%] .spread .dummyPage, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}[_nghost-%COMP%] .spread .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page{margin-left:var(--spreadHorizontalWrapped-margin-LR);margin-right:var(--spreadHorizontalWrapped-margin-LR)}[_nghost-%COMP%] .pdfViewer.removePageBorders .spread .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}[_nghost-%COMP%] .pdfViewer .page canvas{margin:0;display:block}[_nghost-%COMP%] .pdfViewer .page canvas[hidden]{display:none}[_nghost-%COMP%] .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQQAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/ilPcHRpbWl6ZWQgd2l0aCBodHRwczovL2V6Z2lmLmNvbS9vcHRpbWl6ZQAh+QQJBwAQACwAAAAAGAAYAAAFmiAkjiTkOGVaBgjZNGSgkgKjjM8zLoI8iy+BKCdiCX8iBeMAhEEIPRXLxViYUE9CbCQoFAzFhHY3zkaT3oPvBz1zE4UBsr1eWZH4vAowOBwGAHk8AoQLfH6Agm0Ed3qOAXWOIgQKiWyFJQgDgJEpdG+WEACNEFNFmKVlVzJQk6qdkwqBoi1mebJ3ALNGeIZHtGSwNDS1RZKueCEAIfkECQcAEAAsAAAAABgAGAAABZcgJI4kpChlWgYCWRQkEKgjURgjw4zOg9CjVwuiEyEeO6CxkBC9nA+HiuUqLEyoBZI0Mx4SAFFgQCDZuguBoGv6Dtg0gvpqdhxQQDkBzuUr/4A1JwMKP39pc2mDhYCIc4GQYn6QCwCMeY91l0p6dBAEJ0OfcFRimZ91Mwt0alxxAIZyRmuAsKxDLKKvZbM1tJxmvGKRpn8hACH5BAkHABAALAAAAAAYABgAAAWhICSOJGQYZVoGAnkcJBKoI3EAY1GMCtPSosSBINKJBIwGkHdwBGGQA0OhYpEGQxNqkYzNIITBACEKKBaxxNfBeOCO4vMy0Hg8nDHFeCktkKtfNAtoS4UqAicKBj9zBAKPC4iKi4aRkISGmWWBmjUIAIyHkCUEAKCVo2WmREecVqoCgZhgP4NHrGWCj7e3szSpuxAsoVWxnp6cVV4kyZW+KSEAIfkECQcAEAAsAAAAABgAGAAABZkgJI4kBABlWgYEOQykEKgjMSDjcYxG0dKi108nEhQKQN4rCIMkCgbawjWYnSCLY2yGVSgEooBhWqsGGwxc0RtNBgoMhmJ1QgETjANYFeBKyUmBKQQIdT9JDmgPDQ6EhoKJD4sOgpWWgiwChyqEBH5hmptSoSOZgJ4kLKWkYTF7C2SaqaM/hEWygay4mYG8t6uffFuzl1iANCEAIfkECQcAEAAsAAAAABgAGAAABZ0gJI4khCBlmhKkopBCoI6LIozDMAIHO4uuBVBnOiR+I4FrCDwAZsKdQnaCLIwwmRUA8JmioprWUCjcwlwUMnAoG0qL03k2KCS8cC0UjOzDCQKBfHQFDAwFU4CCfgqFhy9+kZJWgzSKSAcPZn+BfQENDw8OljGWJAFeDoZPYTBnC1GdSXqnsoBolSulX2GyP6hgvnG0KrS3NJNhuSQhACH5BAkHABAALAAAAAAYABgAAAWaICSOJCQIZZoupGGQRKCOC0CMijIiwz2LABtQZxoMfjQhxAXszWQ7gOwECRhh0MCJJRJARTUoIHFAgbfI6uBwAJS01J/i4PClVYHvfV8lbLlIBmwFbQt+aGmChG18jXeGT4dICQxlb4g/AQUMDER9XjR6BAdiDQwINDBmkAsPDVh4cX4imw53iLKuaVqAcUsPqEiidkt6j4AzIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiREEGWaBiSCtCoZCMsIAKOg1LEo0KKbaKFQ9EYLoOkFuQlirNxzCQkUW9GZ0hQd4nyDAWr4G/esYSbyZFYZwu3jqiuvr8u8I2BwOAwASXh1e31/doeHC3klWnElfAlTd46MfQUGk2stCVEGBQWSdCciDg5VDAVYKoEiDQ0iBwxGcj9RDw8+qHIzebc2DJJQJK6qiKVyIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiS0LGWaBiRBtCoZCKgoCCMB1DF0sz6cCQDo5W62l28XAyZFpyECBv3lnCbhUqHMIo0Qg4Jbmn1jRCa4iV27TzfXGjEecOFWMN1OdvvfPGUuXSoKBw6EXokrAwcHRVU0UAeEBANAAAmUI1gNDyhjJgUHLW0iDg8FIqOnBQZrDA9TELE2rEYIDw4jta2LMpCrqld/YQpgIQAh+QQJBwAQACwAAAAAGAAYAAAFmyAkjiS0LGWaBiRBkKw6BgIqCsJcyyMe4yJajhcEml5H26o1PN2QQd3uFiv2AADlAgflIbDdZLgkABOJgep5LfWty4p4zeU+w+XsvJWXliEKDwdEBgMKYQ4PDw1qK3EDCCMAiQ5BCV0LCj+FSDQkgCgGBiYHAy2MIgoMghAHqw4HAGsNDEMFBTekdgwKI7aRB2MwkL2rVHoQoWchACH5BAkHABAALAAAAAAYABgAAAWWICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkfbqjU83ZBB3e4WK0qrCxyU55peid0qcUwuixyNx6PhILsAcAJazXYj4lvz2MkLiFsHDAlEcABKZwwMBX8pBgoKQxAIigpBA1sLBj+PSDQkB4uSACYDlTMyBgWDEKVnl2QFBUigN61gBQYjtLV5JZ4jtlR6omMhACH5BAkHABAALAAAAAAYABgAAAWaICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkdbidYanm7I4AjwYDh6saJuJ3JUG1mZi9srPA7EcRimJLrfJYWZUVC8TziXnEG3u/E+cIJaPAFrPQl1aQAIbRAGBZGHJQiMUQKRBkEKbQsAPZaEXQcslSYKmjMyAAdXj34ACkNEiUgDA5t+PAQHn6Ogjkuzry2DNwhuIQAh+QQFBwAQACwAAAAAGAAYAAAFnCAkjiS0LGVaBgBJEGSguo8zCsK4CPIsMg+ECCcKEH0ix6MwhJl4KiOp8UCdmrEbo6EoHpxF8A6aBBZ6vhf5dmAkkGr0CoWs21WGQ2FvsI9xC3l7B311fy93iWGKJQQOhHCAJQB6A3IqcWwJLU90i2FkUiMKlhBELEI6MwgDXRAGhQgAYD6tTqRFAJxpA6mvrqazSKJJhUWMpjlIIQA7) center no-repeat}[_nghost-%COMP%] .pdfViewer .page .loadingIcon.notVisible{background:none}[_nghost-%COMP%] .pdfViewer.enablePermissions .textLayer span{-webkit-user-select:none!important;user-select:none!important;cursor:not-allowed}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer{padding-bottom:0}[_nghost-%COMP%] .pdfPresentationMode .spread{margin:0}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}"]}),t}();function uV(t,r){if(1&t){var e=Mr();je(0,"button",36),wt("click",function(){return tr(e),zt(),Do(12).toggle()}),je(1,"mat-icon"),Kt(2,"menu"),Ue(),Ue()}}function lV(t,r){1&t&&(je(0,"span",37),Kt(1,"Angular 5+ Component to render PDF"),Ue())}function cV(t,r){1&t&&en(0,"iframe",38)}function dV(t,r){if(1&t&&(je(0,"div",39),Kt(1),Ff(2,"json"),Ue()),2&t){var e=zt();et(1),Li(" ",Mf(2,1,e.error.message)," ")}}function fV(t,r){if(1&t){var e=Mr();je(0,"mat-form-field"),je(1,"mat-label"),Kt(2,"Select an option"),Ue(),je(3,"mat-select",40),wt("valueChange",function(a){return tr(e),zt().zoomScale=a}),je(4,"mat-option",41),Kt(5,"Page Width"),Ue(),je(6,"mat-option",42),Kt(7,"Page Height"),Ue(),je(8,"mat-option",43),Kt(9,"Page Fit"),Ue(),Ue(),Ue()}if(2&t){var n=zt();et(3),ot("value",n.zoomScale)}}function hV(t,r){if(1&t){var e=Mr();Ti(),Pi(),je(0,"div",9),je(1,"mat-slide-toggle",14),wt("ngModelChange",function(a){return tr(e),zt().stickToPage=a}),Kt(2," Stick to page "),Ue(),Ue()}if(2&t){var n=zt();et(1),ot("ngModel",n.stickToPage)}}function vV(t,r){if(1&t&&(je(0,"span"),Kt(1),Ue()),2&t){var e=zt(2);et(1),Li("of ",e.pdf.numPages,"")}}function pV(t,r){if(1&t){var e=Mr();Ti(),Pi(),je(0,"div",9),je(1,"button",17),wt("click",function(){return tr(e),zt().incrementPage(-1)}),Kt(2," Previous "),Ue(),je(3,"mat-form-field",22),je(4,"input",44),wt("ngModelChange",function(a){return tr(e),zt().page=a}),Ue(),je(5,"mat-error"),Kt(6,"Input is not a number!"),Ue(),Ue(),Jt(7,vV,2,1,"span",16),je(8,"button",17),wt("click",function(){return tr(e),zt().incrementPage(1)}),Kt(9," Next "),Ue(),Ue()}if(2&t){var n=zt();et(4),ot("ngModel",n.page),et(3),ot("ngIf",n.pdf)}}function gV(t,r){if(1&t){var e=Mr();Ti(),Pi(),je(0,"div",9),je(1,"mat-slide-toggle",14),wt("ngModelChange",function(a){return tr(e),zt().isOutlineShown=a}),Kt(2," Show outline "),Ue(),Ue()}if(2&t){var n=zt();et(1),ot("ngModel",n.isOutlineShown)}}function mV(t,r){if(1&t){var e=Mr();je(0,"ul"),je(1,"li"),je(2,"a",47),wt("click",function(){var o=tr(e).$implicit;return zt(3).navigateTo(o.dest)}),Kt(3),Ue(),Ue(),Ue()}if(2&t){var n=r.$implicit;et(3),Li(" ",n.title," ")}}function _V(t,r){if(1&t){var e=Mr();je(0,"ul",46),je(1,"li"),je(2,"a",47),wt("click",function(){var o=tr(e).$implicit;return zt(2).navigateTo(o.dest)}),Kt(3),Ue(),Jt(4,mV,4,1,"ul",48),Ue(),Ue()}if(2&t){var n=r.$implicit;et(3),Li(" ",n.title," "),et(1),ot("ngForOf",n.items)}}function yV(t,r){if(1&t&&(Ti(),Pi(),je(0,"div"),Jt(1,_V,5,2,"ul",45),Ue()),2&t){var e=zt();et(1),ot("ngForOf",e.outline)}}function DV(t,r){if(1&t&&(je(0,"div",49),je(1,"div",50),en(2,"div",51),Ue(),je(3,"span"),Kt(4),Ue(),Ue()),2&t){var e=zt();et(2),Ao("width",e.progressData.loaded/e.progressData.total*100+"%"),et(2),Li("",e.getInt(e.progressData.loaded/e.progressData.total*100),"%")}}var bV=function(){var t=function(){function r(){f(this,r),this.pdfSrc="./assets/pdf-test.pdf",this.page=1,this.rotation=0,this.zoom=1,this.zoomScale="page-width",this.originalSize=!1,this.renderText=!0,this.isLoaded=!1,this.stickToPage=!1,this.showAll=!0,this.autoresize=!0,this.fitToPage=!1,this.isOutlineShown=!1,this.pdfQuery="",this.mobile=!1}return v(r,[{key:"ngOnInit",value:function(){window.screen.width<=768&&(this.mobile=!0)}},{key:"loadPdf",value:function(){var n=this,i=new XMLHttpRequest;i.open("GET","/assets/pdf-test.pdf",!0),i.responseType="blob",i.onload=function(a){if(console.log(i),200===i.status){var o=new Blob([i.response],{type:"application/pdf"});n.pdfSrc=URL.createObjectURL(o)}},i.send()}},{key:"setCustomWorkerPath",value:function(){window.pdfWorkerSrc="/lib/pdfjs-dist/build/pdf.worker.js"}},{key:"incrementPage",value:function(n){this.page+=n}},{key:"incrementZoom",value:function(n){this.zoom+=n}},{key:"rotate",value:function(n){this.rotation+=n}},{key:"onFileSelected",value:function(){var n=this,i=document.querySelector("#file");if("undefined"!=typeof FileReader){var a=new FileReader;a.onload=function(o){n.pdfSrc=o.target.result},a.readAsArrayBuffer(i.files[0])}}},{key:"afterLoadComplete",value:function(n){this.pdf=n,this.loadOutline()}},{key:"loadOutline",value:function(){var n=this;this.pdf.getOutline().then(function(i){n.outline=i})}},{key:"onError",value:function(n){if(this.error=n,"PasswordException"===n.name){var i=prompt("This document is password protected. Enter the password:");i&&(this.error=null,this.setPassword(i))}}},{key:"setPassword",value:function(n){var i;(i=this.pdfSrc instanceof ArrayBuffer?{data:this.pdfSrc}:"string"==typeof this.pdfSrc?{url:this.pdfSrc}:Object.assign({},this.pdfSrc)).password=n,this.pdfSrc=i}},{key:"onProgress",value:function(n){console.log(n),this.progressData=n,this.isLoaded=n.loaded>=n.total,this.error=null}},{key:"getInt",value:function(n){return Math.round(n)}},{key:"navigateTo",value:function(n){this.pdfComponent.pdfLinkService.goToDestination(n)}},{key:"scrollToPage",value:function(){this.pdfComponent.pdfViewer.scrollPageIntoView({pageNumber:3})}},{key:"pageRendered",value:function(n){console.log("(page-rendered)",n)}},{key:"pageInitialized",value:function(n){console.log("(page-initialized)",n)}},{key:"pageChange",value:function(n){console.log("(page-change)",n)}},{key:"searchQueryChanged",value:function(n){var i=n!==this.pdfQuery?"":"again";this.pdfQuery=n,this.pdfComponent.eventBus.dispatch("find",{type:i,query:this.pdfQuery,highlightAll:!0,caseSensitive:!1,phraseSearch:!0})}},{key:"onResize",value:function(n){this.mobile=n.target.innerWidth<=768}}]),r}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Yn({type:t,selectors:[["pdf-viewer-app"]],viewQuery:function(e,n){var i;1&e&&hr(XA,5),2&e&&sn(i=un())&&(n.pdfComponent=i.first)},hostBindings:function(e,n){1&e&&wt("resize",function(a){return n.onResize(a)},!1,pg)},decls:78,vars:40,consts:[["color","primary"],["class","toggle-menu","mat-raised-button","",3,"click",4,"ngIf"],["class","description hide-md",4,"ngIf"],[1,"spacer"],["src","https://ghbtns.com/github-btn.html?user=vadimdez&repo=ng2-pdf-viewer&type=star&count=true","frameborder","0","scrolling","0","width","170px","height","20px",4,"ngIf"],["href","https://github.com/vadimdez/ng2-pdf-viewer","mat-raised-button","",1,"button"],[1,"example-container"],[3,"mode","opened"],["drawer",""],[1,"mb"],["matInput","","type","text","placeholder","Set URL of the PDF file",3,"ngModel","ngModelChange"],[1,"select-file__container"],["type","file","id","file",3,"change"],["class","error mb",4,"ngIf"],[3,"ngModel","ngModelChange"],[1,"mb",3,"hidden"],[4,"ngIf"],["mat-button","","type","button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["cx","11","cy","11","r","8"],["x1","21","y1","21","x2","16.65","y2","16.65"],["x1","8","y1","11","x2","14","y2","11"],[1,"page-number"],["matInput","","type","number","placeholder","Zoom","pattern","-?[0-9]*(\\.[0-9]+)?",3,"ngModel","ngModelChange"],["x1","11","y1","8","x2","11","y2","14"],["class","mb",4,"ngIf"],["mat-button","","type","button","matTooltip","Rotate left",3,"matTooltipPosition","click"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","transform","scale(-1,1)"],["points","23 4 23 10 17 10"],["d","M20.49 15a9 9 0 1 1-2.12-9.36L23 10"],["matInput","","type","number","placeholder","Rotation","disabled","",3,"ngModel"],["mat-button","","type","button","matTooltip","Rotate right",3,"matTooltipPosition","click"],["matInput","","id","pdfQueryInput","type","text","placeholder","Search...",3,"value","input","keyup.enter"],["queryInp",""],["id","progress",4,"ngIf"],[3,"src","page","rotation","original-size","show-all","fit-to-page","zoom","zoom-scale","stick-to-page","render-text","external-link-target","autoresize","show-borders","pageChange","after-load-complete","error","on-progress","page-rendered","pages-initialized"],["mat-raised-button","",1,"toggle-menu",3,"click"],[1,"description","hide-md"],["src","https://ghbtns.com/github-btn.html?user=vadimdez&repo=ng2-pdf-viewer&type=star&count=true","frameborder","0","scrolling","0","width","170px","height","20px"],[1,"error","mb"],[3,"value","valueChange"],["value","page-width"],["value","page-height"],["value","page-fit"],["matInput","","type","number","placeholder","Page","pattern","-?[0-9]*(\\.[0-9]+)?",3,"ngModel","ngModelChange"],["class","outline-list",4,"ngFor","ngForOf"],[1,"outline-list"],[3,"click"],[4,"ngFor","ngForOf"],["id","progress"],[1,"bg"],[1,"bar"]],template:function(e,n){if(1&e){var i=Mr();je(0,"mat-toolbar",0),je(1,"mat-toolbar-row"),Jt(2,uV,3,0,"button",1),je(3,"span"),Kt(4,"ng2-pdf-viewer"),Ue(),Jt(5,lV,2,0,"span",2),en(6,"span",3),Jt(7,cV,1,0,"iframe",4),je(8,"a",5),Kt(9,"Get Started"),Ue(),Ue(),Ue(),je(10,"mat-drawer-container",6),je(11,"mat-drawer",7,8),je(13,"mat-form-field",9),je(14,"input",10),wt("ngModelChange",function(o){return n.pdfSrc=o}),Ue(),Ue(),je(15,"div",11),je(16,"p"),Kt(17," Or render preview by just selecting PDF file (no upload required) "),Ue(),je(18,"input",12),wt("change",function(){return n.onFileSelected()}),Ue(),Ue(),Jt(19,dV,3,3,"div",13),je(20,"div",9),je(21,"mat-slide-toggle",14),wt("ngModelChange",function(o){return n.originalSize=o}),Kt(22," Original size "),Ue(),Ue(),je(23,"div",15),je(24,"mat-slide-toggle",14),wt("ngModelChange",function(o){return n.fitToPage=o}),Kt(25," Fit to page "),Ue(),Ue(),je(26,"div",9),je(27,"mat-slide-toggle",14),wt("ngModelChange",function(o){return n.renderText=o}),Kt(28," Render text layer "),Ue(),Ue(),je(29,"div",9),je(30,"mat-slide-toggle",14),wt("ngModelChange",function(o){return n.autoresize=o}),Kt(31," Auto resize "),Ue(),Ue(),je(32,"div",9),je(33,"mat-slide-toggle",14),wt("ngModelChange",function(o){return n.showAll=o}),Kt(34," Show all pages "),Ue(),Ue(),Jt(35,fV,10,1,"mat-form-field",16),je(36,"div",9),je(37,"button",17),wt("click",function(){return n.incrementZoom(-.1)}),Ti(),je(38,"svg",18),en(39,"circle",19),en(40,"line",20),en(41,"line",21),Ue(),Ue(),Pi(),je(42,"mat-form-field",22),je(43,"input",23),wt("ngModelChange",function(o){return n.zoom=o}),Ue(),je(44,"mat-error"),Kt(45,"Input is not a number!"),Ue(),Ue(),je(46,"button",17),wt("click",function(){return n.incrementZoom(.1)}),Ti(),je(47,"svg",18),en(48,"circle",19),en(49,"line",20),en(50,"line",24),en(51,"line",21),Ue(),Ue(),Ue(),Jt(52,hV,3,1,"div",25),Jt(53,pV,10,2,"div",25),Pi(),je(54,"div",9),je(55,"button",26),wt("click",function(){return n.rotate(-90)}),Ti(),je(56,"svg",27),en(57,"polyline",28),en(58,"path",29),Ue(),Ue(),Pi(),je(59,"mat-form-field",22),en(60,"input",30),je(61,"mat-error"),Kt(62,"Input is not a number!"),Ue(),Ue(),je(63,"button",31),wt("click",function(){return n.rotate(90)}),Ti(),je(64,"svg",18),en(65,"polyline",28),en(66,"path",29),Ue(),Ue(),Ue(),Jt(67,gV,3,1,"div",25),Jt(68,yV,2,1,"div",16),Pi(),je(69,"div",9),je(70,"mat-form-field"),je(71,"input",32,33),wt("input",function(o){return n.searchQueryChanged(o.target.value)})("keyup.enter",function(){tr(i);var o=Do(72);return n.searchQueryChanged(o.value)}),Ue(),je(73,"mat-hint"),Kt(74,"Search in entire pdf"),Ue(),Ue(),Ue(),Jt(75,DV,5,3,"div",34),Ue(),je(76,"mat-drawer-content"),je(77,"pdf-viewer",35),wt("pageChange",function(o){return n.page=o})("after-load-complete",function(o){return n.afterLoadComplete(o)})("error",function(o){return n.onError(o)})("on-progress",function(o){return n.onProgress(o)})("page-rendered",function(o){return n.pageRendered(o)})("pages-initialized",function(o){return n.pageInitialized(o)})("pageChange",function(o){return n.pageChange(o)}),Ue(),Ue(),Ue()}2&e&&(et(2),ot("ngIf",n.mobile),et(1),mf("title ",n.mobile?"mob":"desk",""),et(2),ot("ngIf",!n.mobile),et(2),ot("ngIf",!n.mobile),et(4),ot("mode",n.mobile?"push":"side")("opened",!n.mobile),et(3),ot("ngModel",n.pdfSrc),et(5),ot("ngIf",n.error),et(2),ot("ngModel",n.originalSize),et(2),ot("hidden",!n.originalSize),et(1),ot("ngModel",n.fitToPage),et(3),ot("ngModel",n.renderText),et(3),ot("ngModel",n.autoresize),et(3),ot("ngModel",n.showAll),et(2),ot("ngIf",!n.originalSize),et(8),ot("ngModel",n.zoom),et(9),ot("ngIf",n.showAll),et(1),ot("ngIf",n.stickToPage&&n.showAll||!n.showAll),et(2),ot("matTooltipPosition","above"),et(5),ot("ngModel",n.rotation),et(3),ot("matTooltipPosition","above"),et(4),ot("ngIf",n.showAll),et(1),ot("ngIf",n.showAll&&n.isOutlineShown),et(3),ot("value",n.pdfQuery),et(4),ot("ngIf",!n.isLoaded&&!n.error&&n.progressData),et(2),ot("src",n.pdfSrc)("page",n.page)("rotation",n.rotation)("original-size",n.originalSize)("show-all",n.showAll)("fit-to-page",n.fitToPage)("zoom",n.zoom)("zoom-scale",n.zoomScale)("stick-to-page",n.stickToPage)("render-text",n.renderText)("external-link-target","blank")("autoresize",n.autoresize)("show-borders",!1))},directives:[z2,KC,js,RC,nV,UN,aA,iA,b2,S2,jl,xD,Ph,WC,Pv,E3,TC,Oh,Vh,d2,e3,L0,v2,yc,XA],pipes:[U0],styles:["mat-toolbar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;z-index:100}.select-file__container[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:20px}.select-file__container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0}.page-number[_ngcontent-%COMP%]{width:50px}.mb[_ngcontent-%COMP%]{margin-bottom:15px}pdf-viewer[_ngcontent-%COMP%]{display:block}.error[_ngcontent-%COMP%]{color:#ff4146}#progress[_ngcontent-%COMP%]{margin-top:50px;width:100px;text-align:center;margin-left:auto;margin-right:auto}#progress[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%], #progress[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{height:20px}#progress[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{background-color:#e3e3e3}#progress[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{width:0;max-width:100%;background-color:#3f51b5;transition:.5s width}.outline-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer}.outline-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#ea1f62}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-drawer[_ngcontent-%COMP%]{width:320px;padding:12px}mat-drawer-container[_ngcontent-%COMP%]{position:absolute;top:64px;right:0;bottom:0;left:0}pdf-viewer[_ngcontent-%COMP%]{height:100%}.title[_ngcontent-%COMP%]{width:284px;text-align:left}.title.mob[_ngcontent-%COMP%]{text-align:center}a.button[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly}"]}),t}(),CV=function(){var t=v(function r(){f(this,r)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t,bootstrap:[bV]}),t.\u0275inj=$t({providers:[],imports:[[nD,RI,oL,rV,iV]]}),t}();(function dP(){false})(),document.write('"+t;try{const e=(new window.DOMParser).parseFromString(go(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class EP{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const e=this.inertDocument.createElement("template");return e.innerHTML=go(t),e}}const xP=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function gc(n){return(n=String(n)).match(xP)?n:"unsafe:"+n}function Lr(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function wa(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const nv=Lr("area,br,col,hr,img,wbr"),iv=Lr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),rv=Lr("rp,rt"),lh=wa(nv,wa(iv,Lr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),wa(rv,Lr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),wa(rv,iv)),ch=Lr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),sv=wa(ch,Lr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Lr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),AP=Lr("script,style,template");class MP{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!lh.hasOwnProperty(e))return this.sanitizedSomething=!0,!AP.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();lh.hasOwnProperty(e)&&!nv.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ov(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const DP=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,PP=/([^\#-~ |!])/g;function ov(n){return n.replace(/&/g,"&").replace(DP,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(PP,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let _c;function av(n,t){let e=null;try{_c=_c||function tv(n){const t=new EP(n);return function SP(){try{return!!(new window.DOMParser).parseFromString(go(""),"text/html")}catch{return!1}}()?new CP(t):t}(n);let i=t?String(t):"";e=_c.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=_c.getInertBodyElement(i)}while(i!==s);return go((new MP).sanitizeChildren(dh(e)||e))}finally{if(e){const i=dh(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function dh(n){return"content"in n&&function TP(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Zt=(()=>((Zt=Zt||{})[Zt.NONE=0]="NONE",Zt[Zt.HTML=1]="HTML",Zt[Zt.STYLE=2]="STYLE",Zt[Zt.SCRIPT=3]="SCRIPT",Zt[Zt.URL=4]="URL",Zt[Zt.RESOURCE_URL=5]="RESOURCE_URL",Zt))();class Xe{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=at({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const vc=new Xe("ENVIRONMENT_INITIALIZER"),dv=new Xe("INJECTOR",-1),uv=new Xe("INJECTOR_DEF_TYPES");class hv{get(t,e=Jo){if(e===Jo){const i=new Error(`NullInjectorError: No provider for ${Rn(t)}!`);throw i.name="NullInjectorError",i}return e}}function VP(...n){return{\u0275providers:pv(0,n),\u0275fromNgModule:!0}}function pv(n,...t){const e=[],i=new Set;let r;return fa(t,s=>{const o=s;uh(o,e,[],i)&&(r||=[],r.push(o))}),void 0!==r&&mv(r,e),e}function mv(n,t){for(let e=0;e{t.push(s)})}}function uh(n,t,e,i){if(!(n=xt(n)))return!1;let r=null,s=Jm(n);const o=!s&&Kt(n);if(s||o){if(o&&!o.standalone)return!1;r=n}else{const l=n.ngModule;if(s=Jm(l),!s)return!1;r=l}const a=i.has(r);if(o){if(a)return!1;if(i.add(r),o.dependencies){const l="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const c of l)uh(c,t,e,i)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;i.add(r);try{fa(s.imports,f=>{uh(f,t,e,i)&&(c||=[],c.push(f))})}finally{}void 0!==c&&mv(c,t)}if(!a){const c=ms(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:Xt},{provide:uv,useValue:r,multi:!0},{provide:vc,useValue:()=>Re(r),multi:!0})}const l=s.providers;null==l||a||hh(l,f=>{t.push(f)})}}return r!==n&&void 0!==n.providers}function hh(n,t){for(let e of n)du(e)&&(e=e.\u0275providers),Array.isArray(e)?hh(e,t):t(e)}const BP=on({provide:String,useValue:on});function fh(n){return null!==n&&"object"==typeof n&&BP in n}function ws(n){return"function"==typeof n}const ph=new Xe("Set Injector scope."),bc={},jP={};let mh;function yc(){return void 0===mh&&(mh=new hv),mh}class _o{}class gh extends _o{get destroyed(){return this._destroyed}constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,vh(t,o=>this.processProvider(o)),this.records.set(dv,vo(void 0,this)),r.has("environment")&&this.records.set(_o,vo(void 0,this));const s=this.records.get(ph);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(uv.multi,Xt,St.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of t)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const e=Yr(this),i=li(void 0);try{return t()}finally{Yr(e),li(i)}}get(t,e=Jo,i=St.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(og))return t[og](this);i=Rl(i);const r=Yr(this),s=li(void 0);try{if(!(i&St.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function $P(n){return"function"==typeof n||"object"==typeof n&&n instanceof Xe}(t)&&Fl(t);a=l&&this.injectableDefInScope(l)?vo(_h(t),bc):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&St.Self?yc():this.parent).get(t,e=i&St.Optional&&e===Jo?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Ol]=o[Ol]||[]).unshift(Rn(t)),r)throw o;return function jA(n,t,e,i){const r=n[Ol];throw t[ig]&&r.unshift(t[ig]),n.message=function UA(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=Rn(t);if(Array.isArray(t))r=t.map(Rn).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):Rn(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(LA,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Ol]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{li(s),Yr(r)}}resolveInjectorInitializers(){const t=Yr(this),e=li(void 0);try{const i=this.get(vc.multi,Xt,St.Self);for(const r of i)r()}finally{Yr(t),li(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(Rn(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Be(205,!1)}processProvider(t){let e=ws(t=xt(t))?t:xt(t&&t.provide);const i=function zP(n){return fh(n)?vo(void 0,n.useValue):vo(vv(n),bc)}(t);if(ws(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=vo(void 0,bc,!0),r.factory=()=>pu(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===bc&&(e.value=jP,e.value=e.factory()),"object"==typeof e.value&&e.value&&function WP(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=xt(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(t){const e=this._onDestroyHooks.indexOf(t);-1!==e&&this._onDestroyHooks.splice(e,1)}}function _h(n){const t=Fl(n),e=null!==t?t.factory:ms(n);if(null!==e)return e;if(n instanceof Xe)throw new Be(204,!1);if(n instanceof Function)return function UP(n){const t=n.length;if(t>0)throw pa(t,"?"),new Be(204,!1);const e=function kA(n){return n&&(n[kl]||n[eg])||null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Be(204,!1)}function vv(n,t,e){let i;if(ws(n)){const r=xt(n);return ms(r)||_h(r)}if(fh(n))i=()=>xt(n.useValue);else if(function _v(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...pu(n.deps||[]));else if(function gv(n){return!(!n||!n.useExisting)}(n))i=()=>Re(xt(n.useExisting));else{const r=xt(n&&(n.useClass||n.provide));if(!function GP(n){return!!n.deps}(n))return ms(r)||_h(r);i=()=>new r(...pu(n.deps))}return i}function vo(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function vh(n,t){for(const e of n)Array.isArray(e)?vh(e,t):e&&du(e)?vh(e.\u0275providers,t):t(e)}const Ea=new Xe("AppId",{providedIn:"root",factory:()=>qP}),qP="ng",bv=new Xe("Platform Initializer"),Cs=new Xe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ai=new Xe("AnimationModuleType"),bh=new Xe("CSP nonce",{providedIn:"root",factory:()=>function ya(){if(void 0!==oh)return oh;if(typeof document<"u")return document;throw new Be(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let wv=(n,t)=>null;function Cv(n,t){return wv(n,t)}class nT{}class xv{}class rT{resolveComponentFactory(t){throw function iT(n){const t=Error(`No component factory found for ${Rn(n)}.`);return t.ngComponent=n,t}(t)}}let Ma=(()=>{class n{}return n.NULL=new rT,n})();function sT(){return bo(Wn(),Ue())}function bo(n,t){return new Lt(pi(n,t))}let Lt=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=sT,n})();function oT(n){return n instanceof Lt?n.nativeElement:n}class Da{}let Es=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function aT(){const n=Ue(),e=Ei(Wn().index,n);return(Ci(e)?e:n)[Pt]}(),n})(),lT=(()=>{class n{}return n.\u0275prov=at({token:n,providedIn:"root",factory:()=>null}),n})();class yo{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const cT=new yo("16.1.0"),Th={};function Pa(n){for(;n;){n[Dt]|=64;const t=_a(n);if(yu(n)&&!t)return n;n=t}return null}function Ih(n){return n.ngOriginalError}class _r{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Ih(t);for(;e&&Ih(e);)e=Ih(e);return e||null}}const Pv=new Xe("",{providedIn:"root",factory:()=>!1});function Tv(n){return n.ownerDocument.defaultView}class Rv extends xg{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){Pa(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,e,i){const r=Hn(this);this.trackingVersion++;try{t(e,i)}finally{Hn(r)}}destroy(){this.trackingVersion++}}let Ac=null;function Lv(){return Ac??=new Rv,Ac}function Nv(n,t){return n[t]??Lv()}function Vv(n,t){const e=Lv();e.hasReadASignal&&(n[t]=Ac,e.lView=n,Ac=new Rv)}const Tt={};function tt(n){Bv(Gt(),Ue(),ri()+n,!1)}function Bv(n,t,e,i){if(!i)if(3==(3&t[Dt])){const s=n.preOrderCheckHooks;null!==s&&Xl(t,s,e)}else{const s=n.preOrderHooks;null!==s&&Yl(t,s,0,e)}gs(e)}function zv(n,t=null,e=null,i){const r=Gv(n,t,e,i);return r.resolveInjectorInitializers(),r}function Gv(n,t=null,e=null,i,r=new Set){const s=[e||Xt,VP(n)];return i=i||("object"==typeof n?void 0:Rn(n)),new gh(s,t||yc(),i||null,r)}let Zi=(()=>{class n{static create(e,i){if(Array.isArray(e))return zv({name:""},i,e,"");{const r=e.name??"";return zv({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Jo,n.NULL=new hv,n.\u0275prov=at({token:n,providedIn:"any",factory:()=>Re(dv)}),n.__NG_ELEMENT_ID__=-1,n})();function ge(n,t=St.Default){const e=Ue();return null===e?Re(n,t):a_(Wn(),e,xt(n),t)}function Co(){throw new Error("invalid")}function Mc(n,t,e,i,r,s,o,a,l,c,f){const E=t.blueprint.slice();return E[Ln]=r,E[Dt]=140|i,(null!==c||n&&2048&n[Dt])&&(E[Dt]|=2048),Rg(E),E[vn]=E[Qs]=n,E[Dn]=e,E[fs]=o||n&&n[fs],E[Pt]=a||n&&n[Pt],E[Zs]=l||n&&n[Zs]||null,E[Kn]=s,E[aa]=function RD(){return OD++}(),E[kr]=f,E[bg]=c,E[Pn]=2==t.type?n[Pn]:E,E}function Eo(n,t,e,i,r){let s=n.data[t];if(null===s)s=function Fh(n,t,e,i,r){const s=jg(),o=Au(),l=n.data[t]=function PT(n,t,e,i,r,s){let o=t?t.injectorIndex:-1,a=0;return no()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,e,t,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l,l.prev=s)),l}(n,t,e,i,r),function BM(){return Ct.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function ca(){const n=Ct.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return pr(s,!0),s}function Ta(n,t,e,i){if(0===e)return-1;const r=t.length;for(let s=0;sjt&&Bv(n,t,jt,!1),fr(a?2:0,r),a)s.runInContext(e,i,r);else{const c=Hn(null);try{e(i,r)}finally{Hn(c)}}}finally{a&&null===t[Vl]&&Vv(t,Vl),gs(o),fr(a?3:1,r)}}function kh(n,t,e){if(bu(t)){const i=Hn(null);try{const s=t.directiveEnd;for(let o=t.directiveStart;onull;function Xv(n,t,e,i){for(let r in n)if(n.hasOwnProperty(r)){e=null===e?{}:e;const s=n[r];null===i?Yv(e,t,r,s):i.hasOwnProperty(r)&&Yv(e,t,i[r],s)}return e}function Yv(n,t,e,i){n.hasOwnProperty(e)?n[e].push(t,i):n[e]=[t,i]}function Mi(n,t,e,i,r,s,o,a){const l=pi(t,e);let f,c=t.inputs;!a&&null!=c&&(f=c[i])?(jh(n,e,f,i,r),ps(t)&&function FT(n,t){const e=Ei(t,n);16&e[Dt]||(e[Dt]|=64)}(e,t.index)):3&t.type&&(i=function IT(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,t.value||"",i):r,s.setProperty(l,i,r))}function Nh(n,t,e,i){if(Hg()){const r=null===i?null:{"":-1},s=function VT(n,t){const e=n.directiveRegistry;let i=null,r=null;if(e)for(let s=0;s0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(o)!=a&&o.push(a),o.push(e,i,s)}}(n,t,i,Ta(n,e,r.hostVars,Tt),r)}function vr(n,t,e,i,r,s){const o=pi(n,t);!function Bh(n,t,e,i,r,s,o){if(null==s)n.removeAttribute(t,r,e);else{const a=null==o?At(s):o(s,i||"",r);n.setAttribute(t,r,a,e)}}(t[Pt],o,s,n.value,e,i,r)}function GT(n,t,e,i,r,s){const o=s[t];if(null!==o)for(let a=0;a{class n{constructor(){this.all=new Set,this.queue=new Map}create(e,i,r){const s=typeof Zone>"u"?null:Zone.current,o=new _M(e,c=>{this.all.has(c)&&this.queue.set(c,s)},r);let a;this.all.add(o),o.notify();const l=()=>{o.cleanup(),a?.(),this.all.delete(o),this.queue.delete(o)};return a=i?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,i]of this.queue)this.queue.delete(e),i?i.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}}return n.\u0275prov=at({token:n,providedIn:"root",factory:()=>new n}),n})();function Pc(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,s=0;if(null!==t)for(let o=0;o0){ab(n,1);const r=n[rt].components;null!==r&&cb(n,r,1)}}function cb(n,t,e){for(let i=0;i-1&&(Ju(t,i),tc(e,i))}this._attachedToViewContainer=!1}B_(this._lView[rt],this._lView)}onDestroy(t){!function Vg(n,t){if(256==(256&n[Dt]))throw new Be(911,!1);null===n[Kr]&&(n[Kr]=[]),n[Kr].push(t)}(this._lView,t)}markForCheck(){Pa(this._cdRefInjectingView||this._lView)}detach(){this._lView[Dt]&=-129}reattach(){this._lView[Dt]|=128}detectChanges(){Tc(this._lView[rt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Be(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function YD(n,t){ba(n,t,t[Pt],2,null,null)}(this._lView[rt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Be(902,!1);this._appRef=t}}class tI extends Fa{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Tc(t[rt],t,t[Dn],!1)}checkNoChanges(){}get context(){return null}}class db extends Ma{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Kt(t);return new ka(e,this.ngModule)}}function ub(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class iI{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){i=Rl(i);const r=this.injector.get(t,Th,i);return r!==Th||e===Th?r:this.parentInjector.get(t,e,i)}}class ka extends xv{get inputs(){return ub(this.componentDef.inputs)}get outputs(){return ub(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function QA(n){return n.map(ZA).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,i,r){let s=(r=r||this.ngModule)instanceof _o?r:r?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const o=s?new iI(t,s):t,a=o.get(Da,null);if(null===a)throw new Be(407,!1);const f={rendererFactory:a,sanitizer:o.get(lT,null),effectManager:o.get(sb,null)},E=a.createRenderer(null,this.componentDef),G=this.componentDef.selectors[0][0]||"div",ee=i?function ST(n,t,e,i){const s=i.get(Pv,!1)||e===ci.ShadowDom,o=n.selectRootElement(t,s);return function xT(n){qv(n)}(o),o}(E,i,this.componentDef.encapsulation,o):dc(E,G,function nI(n){const t=n.toLowerCase();return"svg"===t?Fg:"math"===t?"math":null}(G)),Ae=this.componentDef.signals?4608:this.componentDef.onPush?576:528,Ve=Lh(0,null,null,1,0,null,null,null,null,null,null),Se=Mc(null,Ve,null,Ae,null,null,f,E,o,null,null);let it,lt;Iu(Se);try{const mt=this.componentDef;let ln,kn=null;mt.findHostDirectiveDefs?(ln=[],kn=new Map,mt.findHostDirectiveDefs(mt,ln,kn),ln.push(mt)):ln=[mt];const or=function sI(n,t){const e=n[rt],i=jt;return n[i]=t,Eo(e,i,2,"#host",null)}(Se,ee),ar=function oI(n,t,e,i,r,s,o){const a=r[rt];!function aI(n,t,e,i){for(const r of n)t.mergedAttrs=na(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(Pc(t,t.mergedAttrs,!0),null!==e&&Z_(i,e,t))}(i,n,t,o);let l=null;null!==t&&(l=Cv(t,r[Zs]));const c=s.rendererFactory.createRenderer(t,e);let f=16;e.signals?f=4096:e.onPush&&(f=64);const E=Mc(r,$v(e),null,f,r[n.index],n,s,c,null,null,l);return a.firstCreatePass&&Vh(a,n,i.length-1),Dc(r,E),r[n.index]=E}(or,ee,mt,ln,Se,f,E);lt=Og(Ve,jt),ee&&function cI(n,t,e,i){if(i)_u(n,e,["ng-version",cT.full]);else{const{attrs:r,classes:s}=function JA(n){const t=[],e=[];let i=1,r=2;for(;i0&&K_(n,e,s.join(" "))}}(E,mt,ee,i),void 0!==e&&function dI(n,t,e){const i=n.projection=[];for(let r=0;r=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=na(r.hostAttrs,e=na(e,r.hostAttrs))}}(i)}function Ic(n){return n===cr?{}:n===Xt?[]:n}function fI(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function pI(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function mI(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}function Fc(n){return!!zh(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function zh(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Jn(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function mn(n,t,e,i){const r=Ue();return Jn(r,io(),t)&&(Gt(),vr(bn(),r,n,t,e,i)),mn}function xo(n,t,e,i){return Jn(n,io(),e)?t+At(e)+i:Tt}function kt(n,t,e,i,r,s,o,a){const l=Ue(),c=Gt(),f=n+jt,E=c.firstCreatePass?function jI(n,t,e,i,r,s,o,a,l){const c=t.consts,f=Eo(t,n,4,o||null,Zr(c,a));Nh(t,e,f,Zr(c,l)),ql(t,f);const E=f.tView=Lh(2,f,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return null!==t.queries&&(t.queries.template(t,f),E.queries=t.queries.embeddedTView(f)),f}(f,c,l,t,e,i,r,s,o):c.data[f];pr(E,!1);const G=Db(c,l,E,n);$l()&&hc(c,l,G,E),Qn(G,l),Dc(l,l[f]=Jv(G,l,G,E)),jl(E)&&Oh(c,l,E),null!=o&&Rh(l,E,a)}let Db=function Pb(n,t,e,i){return Qr(!0),t[Pt].createComment("")};function xs(n){return to(function VM(){return Ct.lFrame.contextLView}(),jt+n)}function et(n,t,e){const i=Ue();return Jn(i,io(),t)&&Mi(Gt(),bn(),i,n,t,i[Pt],e,!1),et}function Yh(n,t,e,i,r){const o=r?"class":"style";jh(n,e,t.inputs[o],o,i)}function Ye(n,t,e,i){const r=Ue(),s=Gt(),o=jt+n,a=r[Pt],l=s.firstCreatePass?function WI(n,t,e,i,r,s){const o=t.consts,l=Eo(t,n,2,i,Zr(o,r));return Nh(t,e,l,Zr(o,s)),null!==l.attrs&&Pc(l,l.attrs,!1),null!==l.mergedAttrs&&Pc(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(o,s,r,t,e,i):s.data[o],c=Tb(s,r,l,a,t,n);r[o]=c;const f=jl(l);return pr(l,!0),Z_(a,c,l),32!=(32&l.flags)&&$l()&&hc(s,r,c,l),0===function TM(){return Ct.lFrame.elementDepthCount}()&&Qn(c,r),function IM(){Ct.lFrame.elementDepthCount++}(),f&&(Oh(s,r,l),kh(s,l,r)),null!==i&&Rh(r,l),Ye}function Ze(){let n=Wn();Au()?Mu():(n=n.parent,pr(n,!1));const t=n;(function kM(n){return Ct.skipHydrationRootTNode===n})(t)&&function NM(){Ct.skipHydrationRootTNode=null}(),function FM(){Ct.lFrame.elementDepthCount--}();const e=Gt();return e.firstCreatePass&&(ql(e,n),bu(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function KM(n){return 0!=(8&n.flags)}(t)&&Yh(e,t,Ue(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function ZM(n){return 0!=(16&n.flags)}(t)&&Yh(e,t,Ue(),t.stylesWithoutHost,!1),Ze}function en(n,t,e,i){return Ye(n,t,e,i),Ze(),en}let Tb=(n,t,e,i,r,s)=>(Qr(!0),dc(i,r,function Zg(){return Ct.lFrame.currentNamespace}()));function Ni(){return Ue()}function Nc(n){return!!n&&"function"==typeof n.then}function kb(n){return!!n&&"function"==typeof n.subscribe}function Et(n,t,e,i){const r=Ue(),s=Gt(),o=Wn();return Ob(s,r,r[Pt],o,n,t,i),Et}function Qh(n,t){const e=Wn(),i=Ue(),r=Gt();return Ob(r,i,ib(Pu(r.data),e,i),e,n,t),Qh}function Ob(n,t,e,i,r,s,o){const a=jl(i),c=n.firstCreatePass&&nb(n),f=t[Dn],E=tb(t);let G=!0;if(3&i.type||o){const me=pi(i,t),Ae=o?o(me):me,Ve=E.length,Se=o?lt=>o(fn(lt[i.index])):i.index;let it=null;if(!o&&a&&(it=function ZI(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;sl?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==it)(it.__ngLastListenerFn__||it).__ngNextListenerFn__=s,it.__ngLastListenerFn__=s,G=!1;else{s=Lb(i,t,f,s,!1);const lt=e.listen(Ae,r,s);E.push(s,lt),c&&c.push(r,Se,Ve,Ve+1)}}else s=Lb(i,t,f,s,!1);const ee=i.outputs;let fe;if(G&&null!==ee&&(fe=ee[r])){const me=fe.length;if(me)for(let Ae=0;Ae-1?Ei(n.index,t):t);let l=Rb(t,e,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Rb(t,e,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&o.preventDefault(),l}}function Nt(n=1){return function zM(n){return(Ct.lFrame.contextLView=function GM(n,t){for(;n>0;)t=t[Qs],n--;return t}(n,Ct.lFrame.contextLView))[Dn]}(n)}function QI(n,t){let e=null;const i=function qA(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(n);for(let r=0;r>17&32767}function ef(n){return 2|n}function As(n){return(131068&n)>>2}function tf(n,t){return-131069&n|t<<2}function nf(n){return 1|n}function $b(n,t,e,i,r){const s=n[e+1],o=null===t;let a=i?Jr(s):As(s),l=!1;for(;0!==a&&(!1===l||o);){const f=n[a+1];rF(n[a],t)&&(l=!0,n[a+1]=i?nf(f):ef(f)),a=i?Jr(f):As(f)}l&&(n[e+1]=i?ef(s):nf(s))}function rF(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&uo(n,t)>=0}const Vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qb(n){return n.substring(Vn.key,Vn.keyEnd)}function Xb(n,t){const e=Vn.textEnd;return e===t?-1:(t=Vn.keyEnd=function lF(n,t,e){for(;t32;)t++;return t}(n,Vn.key=t,e),ko(n,t,e))}function ko(n,t,e){for(;t=0;e=Xb(t,e))Si(n,qb(t),!0)}function Qi(n,t,e,i){const r=Ue(),s=Gt(),o=Rr(2);s.firstUpdatePass&&ey(s,n,o,i),t!==Tt&&Jn(r,o,t)&&ny(s,s.data[ri()],r,r[Pt],n,r[o+1]=function yF(n,t){return null==n||""===n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Rn(xi(n)))),n}(t,e),i,o)}function Jb(n,t){return t>=n.expandoStartIndex}function ey(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[ri()],o=Jb(n,e);ry(s,i)&&null===t&&!o&&(t=!1),t=function fF(n,t,e,i){const r=Pu(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Va(e=rf(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=rf(r,n,t,e,i),null===s){let l=function pF(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==As(i))return n[Jr(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=rf(null,n,t,l[1],i),l=Va(l,t.attrs,i),function mF(n,t,e,i){n[Jr(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else s=function gF(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(c=!0)):f=e,r)if(0!==l){const G=Jr(n[a+1]);n[i+1]=Vc(G,a),0!==G&&(n[G+1]=tf(n[G+1],i)),n[a+1]=function eF(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Vc(a,0),0!==a&&(n[a+1]=tf(n[a+1],i)),a=i;else n[i+1]=Vc(l,0),0===a?a=i:n[l+1]=tf(n[l+1],i),l=i;c&&(n[i+1]=ef(n[i+1])),$b(n,f,i,!0),$b(n,f,i,!1),function iF(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&uo(s,t)>=0&&(e[i+1]=nf(e[i+1]))}(t,f,n,i,s),o=Vc(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}function rf(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),f=c?l[1]:l,E=null===f;let G=e[r+1];G===Tt&&(G=E?Xt:void 0);let ee=E?ju(G,i):f===i?G:void 0;if(c&&!Bc(ee)&&(ee=ju(l,i)),Bc(ee)&&(a=ee,o))return a;const fe=n[r+1];r=o?Jr(fe):As(fe)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=ju(l,i))}return a}function Bc(n){return void 0!==n}function ry(n,t){return 0!=(n.flags&(t?8:16))}function Ut(n,t=""){const e=Ue(),i=Gt(),r=n+jt,s=i.firstCreatePass?Eo(i,r,1,t,null):i.data[r],o=sy(i,e,s,t,n);e[r]=o,$l()&&hc(i,e,o,s),pr(s,!1)}let sy=(n,t,e,i,r)=>(Qr(!0),function cc(n,t){return n.createText(t)}(t[Pt],i));function Ro(n){return Br("",n,""),Ro}function Br(n,t,e){const i=Ue(),r=xo(i,n,t,e);return r!==Tt&&function Vr(n,t,e){const i=Wl(t,n);!function N_(n,t,e){n.setValue(t,e)}(n[Pt],i,e)}(i,ri(),r),Br}function sf(n,t,e){!function Ji(n,t,e,i){const r=Gt(),s=Rr(2);r.firstUpdatePass&&ey(r,null,s,i);const o=Ue();if(e!==Tt&&Jn(o,s,e)){const a=r.data[ri()];if(ry(a,i)&&!Jb(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=lu(l,e||"")),Yh(r,a,o,e,i)}else!function bF(n,t,e,i,r,s,o,a){r===Tt&&(r=Xt);let l=0,c=0,f=0>20;if(ws(n)||!n.multi){const ee=new da(l,r,ge),fe=hf(a,t,r?f:f+G,E);-1===fe?(Vu(Jl(c,o),s,a),uf(s,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(ee),o.push(ee)):(e[fe]=ee,o[fe]=ee)}else{const ee=hf(a,t,f+G,E),fe=hf(a,t,f,f+G),Ae=fe>=0&&e[fe];if(r&&!Ae||!r&&!(ee>=0&&e[ee])){Vu(Jl(c,o),s,a);const Ve=function H1(n,t,e,i,r){const s=new da(n,e,ge);return s.multi=[],s.index=t,s.componentProviders=0,Ky(s,r,i&&!e),s}(r?B1:V1,e.length,r,i,l);!r&&Ae&&(e[fe].providerFactory=Ve),uf(s,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(Ve),o.push(Ve)}else uf(s,n,ee>-1?ee:fe,Ky(e[r?fe:ee],l,!r&&i));!r&&i&&Ae&&e[fe].componentProviders++}}}function uf(n,t,e,i){const r=ws(t),s=function HP(n){return!!n.useClass}(t);if(r||s){const l=(s?xt(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const f=c.indexOf(e);-1===f?c.push(e,[i,l]):c[f+1].push(i,l)}else c.push(e,l)}}}function Ky(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function hf(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function N1(n,t,e){const i=Gt();if(i.firstCreatePass){const r=Yi(n);df(e,i.data,i.blueprint,r,!0),df(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Vo{}class j1{}class pf extends Vo{constructor(t,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new db(this);const r=function wi(n,t){const e=n[sg]||null;if(!e&&!0===t)throw new Error(`Type ${Rn(n)} does not have '\u0275mod' property.`);return e}(t);this._bootstrapComponents=function Nr(n){return n instanceof Function?n():n}(r.bootstrap),this._r3Injector=Gv(t,e,[{provide:Vo,useValue:this},{provide:Ma,useValue:this.componentFactoryResolver},...i],Rn(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class mf extends j1{constructor(t){super(),this.moduleType=t}create(t){return new pf(this.moduleType,t,[])}}function s0(n,t,e,i,r,s){const o=t+e;return Jn(n,o,r)?function br(n,t,e){return n[t]=e}(n,o+1,s?i.call(s,r):i(r)):function Ga(n,t){const e=n[t];return e===Tt?void 0:e}(n,o+1)}function u0(n,t,e){const i=n+jt,r=Ue(),s=to(r,i);return function Wa(n,t){return n[rt].data[t].pure}(r,i)?s0(r,function ii(){const n=Ct.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}(),t,s.transform,e,s):s.transform(e)}function _f(n){return t=>{setTimeout(n,void 0,t)}}const Ot=class gk extends F{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,s=e||(()=>null),o=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(s=_f(s),r&&(r=_f(r)),o&&(o=_f(o)));const a=super.subscribe({next:r,error:s,complete:o});return t instanceof ae&&t.add(a),a}};function _k(){return this._results[Symbol.iterator]()}class Bo{get changes(){return this._changes||(this._changes=new Ot)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Bo.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=_k)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=function Ri(n){return n.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function lD(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=yk,n})();const vk=Cr,bk=class extends vk{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,e){return this.createEmbeddedViewImpl(t,e,null)}createEmbeddedViewImpl(t,e,i){const o=this._declarationTContainer.tView,a=Mc(this._declarationLView,o,t,4096&this._declarationLView[Dt]?4096:16,null,o.declTNode,null,null,null,e||null,i||null);a[oa]=this._declarationLView[this._declarationTContainer.index];const c=this._declarationLView[dr];return null!==c&&(a[dr]=c.createEmbeddedView(o)),Uh(o,a,t),new Fa(a)}};function yk(){return Gc(Wn(),Ue())}function Gc(n,t){return 4&n.type?new bk(t,n,bo(n,t)):null}let Vi=(()=>{class n{}return n.__NG_ELEMENT_ID__=Mk,n})();function Mk(){return _0(Wn(),Ue())}const Dk=Vi,m0=class extends Dk{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return bo(this._hostTNode,this._hostLView)}get injector(){return new so(this._hostTNode,this._hostLView)}get parentInjector(){const t=Nu(this._hostTNode,this._hostLView);if(t_(t)){const e=Zl(t,this._hostLView),i=Kl(t);return new so(e[rt].data[i+8],e)}return new so(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=g0(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Zn}createEmbeddedView(t,e,i){let r,s;"number"==typeof i?r=i:null!=i&&(r=i.index,s=i.injector);const a=t.createEmbeddedViewImpl(e||{},s,null);return this.insertImpl(a,r,false),a}createComponent(t,e,i,r,s){const o=t&&!function ha(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const me=e||{};a=me.index,i=me.injector,r=me.projectableNodes,s=me.environmentInjector||me.ngModuleRef}const l=o?t:new ka(Kt(t)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const Ae=(o?c:this.parentInjector).get(_o,null);Ae&&(s=Ae)}Kt(l.componentType??{});const ee=l.create(c,r,null,s);return this.insertImpl(ee.hostView,a,false),ee}insert(t,e){return this.insertImpl(t,e,!1)}insertImpl(t,e,i){const r=t._lView,s=r[rt];if(function MM(n){return hi(n[vn])}(r)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const c=r[vn],f=new m0(c,c[Kn],c[vn]);f.detach(f.indexOf(t))}}const o=this._adjustIndex(e),a=this._lContainer;if(function ZD(n,t,e,i){const r=Zn+i,s=e.length;i>0&&(e[r-1][Xi]=t),i0)i.push(o[a/2]);else{const c=s[a+1],f=t[-l];for(let E=Zn;E{class n{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=Ft(rO,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const r of this.appInits){const s=r();if(Nc(s))e.push(s);else if(kb(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Er=new Xe("LocaleId",{providedIn:"root",factory:()=>Ft(Er,St.Optional|St.SkipSelf)||function oO(){return typeof $localize<"u"&&$localize.locale||No}()});let lO=(()=>{class n{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new O(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hO=(()=>Promise.resolve(0))();function Tf(n){typeof Zone>"u"?hO.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}function W0(...n){}class vt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ot(!1),this.onMicrotaskEmpty=new Ot(!1),this.onStable=new Ot(!1),this.onError=new Ot(!1),typeof Zone>"u")throw new Be(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function fO(){let n=un.requestAnimationFrame,t=un.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function gO(n){const t=()=>{!function mO(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(un,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Ff(n),n.isCheckStableRunning=!0,If(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Ff(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return $0(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),q0(n)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return $0(n),e.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),q0(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Ff(n),If(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!vt.isInAngularZone())throw new Be(909,!1)}static assertNotInAngularZone(){if(vt.isInAngularZone())throw new Be(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,pO,W0,W0);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const pO={};function If(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Ff(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function $0(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function q0(n){n._nesting--,If(n)}class _O{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ot,this.onMicrotaskEmpty=new Ot,this.onStable=new Ot,this.onError=new Ot}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const X0=new Xe("",{providedIn:"root",factory:Y0});function Y0(){const n=Ft(vt);let t=!0;return hs(new he(r=>{t=n.isStable&&!n.hasPendingMacrotasks&&!n.hasPendingMicrotasks,n.runOutsideAngular(()=>{r.next(t),r.complete()})}),new he(r=>{let s;n.runOutsideAngular(()=>{s=n.onStable.subscribe(()=>{vt.assertNotInAngularZone(),Tf(()=>{!t&&!n.hasPendingMacrotasks&&!n.hasPendingMicrotasks&&(t=!0,r.next(!0))})})});const o=n.onUnstable.subscribe(()=>{vt.assertInAngularZone(),t&&(t=!1,n.runOutsideAngular(()=>{r.next(!1)}))});return()=>{s.unsubscribe(),o.unsubscribe()}}).pipe(su()))}const K0=new Xe(""),$c=new Xe("");let Rf,kf=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Rf||(function vO(n){Rf=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{vt.assertNotInAngularZone(),Tf(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Tf(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(Re(vt),Re(Of),Re($c))},n.\u0275prov=at({token:n,factory:n.\u0275fac}),n})(),Of=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Rf?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),es=null;const Z0=new Xe("AllowMultipleToken"),Lf=new Xe("PlatformDestroyListeners"),Q0=new Xe("appBootstrapListener");function tw(n,t,e=[]){const i=`Platform: ${t}`,r=new Xe(i);return(s=[])=>{let o=Nf();if(!o||o.injector.get(Z0,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function wO(n){if(es&&!es.get(Z0,!1))throw new Be(400,!1);(function J0(){!function mM(n){Ag=n}(()=>{throw new Be(600,!1)})})(),es=n;const t=n.get(iw);(function ew(n){n.get(bv,null)?.forEach(e=>e())})(n)}(function nw(n=[],t){return Zi.create({name:t,providers:[{provide:ph,useValue:"platform"},{provide:Lf,useValue:new Set([()=>es=null])},...n]})}(a,i))}return function EO(n){const t=Nf();if(!t)throw new Be(401,!1);return t}()}}function Nf(){return es?.get(iw)??null}let iw=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function SO(n="zone.js",t){return"noop"===n?new _O:"zone.js"===n?new vt(t):n}(i?.ngZone,function rw(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{const s=function z1(n,t,e){return new pf(n,t,e)}(e.moduleType,this.injector,function cw(n){return[{provide:vt,useFactory:n},{provide:vc,multi:!0,useFactory:()=>{const t=Ft(AO,{optional:!0});return()=>t.initialize()}},{provide:lw,useFactory:xO},{provide:X0,useFactory:Y0}]}(()=>r)),o=s.injector.get(_r,null);return r.runOutsideAngular(()=>{const a=r.onError.subscribe({next:l=>{o.handleError(l)}});s.onDestroy(()=>{qc(this._modules,s),a.unsubscribe()})}),function sw(n,t,e){try{const i=e();return Nc(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(o,r,()=>{const a=s.injector.get(Pf);return a.runInitializers(),a.donePromise.then(()=>(function Ay(n){ki(n,"Expected localeId to be defined"),"string"==typeof n&&(xy=n.toLowerCase().replace(/_/g,"-"))}(s.injector.get(Er,No)||No),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,i=[]){const r=ow({},i);return function bO(n,t,e){const i=new mf(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ps);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Be(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Be(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Lf,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(Re(Zi))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function ow(n,t){return Array.isArray(t)?t.reduce(ow,n):{...n,...t}}let Ps=(()=>{class n{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ft(lw),this.zoneIsStable=Ft(X0),this.componentTypes=[],this.components=[],this.isStable=Ft(lO).hasPendingTasks.pipe(au(e=>e?Tr(!1):this.zoneIsStable),Dl(),su()),this._injector=Ft(_o)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof xv;if(!this._injector.get(Pf).done)throw!r&&function ia(n){const t=Kt(n)||Yn(n)||ui(n);return null!==t&&t.standalone}(e),new Be(405,!1);let o;o=r?e:this._injector.get(Ma).resolveComponentFactory(e),this.componentTypes.push(o.componentType);const a=function yO(n){return n.isBoundToModule}(o)?void 0:this._injector.get(Vo),c=o.create(Zi.NULL,[],i||o.selector,a),f=c.location.nativeElement,E=c.injector.get(K0,null);return E?.registerApplication(f),c.onDestroy(()=>{this.detachView(c.hostView),qc(this.components,c),E?.unregisterApplication(f)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Be(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;qc(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(Q0,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>qc(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Be(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function qc(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const lw=new Xe("",{providedIn:"root",factory:()=>Ft(_r).handleError.bind(void 0)});function xO(){const n=Ft(vt),t=Ft(_r);return e=>n.runOutsideAngular(()=>t.handleError(e))}let AO=(()=>{class n{constructor(){this.zone=Ft(vt),this.applicationRef=Ft(Ps)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();let Sr=(()=>{class n{}return n.__NG_ELEMENT_ID__=DO,n})();function DO(n){return function PO(n,t,e){if(ps(n)&&!e){const i=Ei(n.index,t);return new Fa(i,i)}return 47&n.type?new Fa(t[Pn],t):null}(Wn(),Ue(),16==(16&n))}class fw{constructor(){}supports(t){return Fc(t)}create(t){return new RO(t)}}const OO=(n,t)=>t;class RO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||OO}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new LO(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new pw),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pw),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class LO{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class NO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class pw{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new NO,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function mw(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new BO(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class BO{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function _w(){return new Kc([new fw])}let Kc=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||_w()),deps:[[n,new ic,new ho]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Be(901,!1)}}return n.\u0275prov=at({token:n,providedIn:"root",factory:_w}),n})();function vw(){return new qa([new gw])}let qa=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||vw()),deps:[[n,new ic,new ho]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Be(901,!1)}}return n.\u0275prov=at({token:n,providedIn:"root",factory:vw}),n})();const UO=tw(null,"core",[]);let zO=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(Re(Ps))},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({}),n})();let Wf=null;function ts(){return Wf}class eR{}const Vt=new Xe("DocumentToken");let xw=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:function(){return Ft(tR)},providedIn:"platform"}),n})(),tR=(()=>{class n extends xw{constructor(){super(),this._doc=Ft(Vt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ts().getBaseHref(this._doc)}onPopState(e){const i=ts().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=ts().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:function(){return new n},providedIn:"platform"}),n})();function Aw(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function Mw(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Is(n){return n&&"?"!==n[0]?"?"+n:n}let $f=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:function(){return Ft(iR)},providedIn:"root"}),n})();const nR=new Xe("appBaseHref");let iR=(()=>{class n extends $f{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Ft(Vt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Aw(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Is(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+Is(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+Is(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(xw),Re(nR,8))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Dw=(()=>{class n{constructor(e){this._subject=new Ot,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function oR(n){if(new RegExp("^(https?:)?//").test(n)){const[,e]=n.split(/\/\/[^\/]+/);return e}return n}(Mw(Pw(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Is(i))}normalize(e){return n.stripTrailingSlash(function sR(n,t){if(!n||!t.startsWith(n))return t;const e=t.substring(n.length);return""===e||["/",";","?","#"].includes(e[0])?e:t}(this._basePath,Pw(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Is(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Is(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Is,n.joinWithSlash=Aw,n.stripTrailingSlash=Mw,n.\u0275fac=function(e){return new(e||n)(Re($f))},n.\u0275prov=at({token:n,factory:function(){return function rR(){return new Dw(Re($f))}()},providedIn:"root"}),n})();function Pw(n){return n.replace(/\/index.html$/,"")}const np=/\s+/,Vw=[];let ip=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this.initialClasses=Vw,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(np):Vw}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(np):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(np).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(ge(Kc),ge(qa),ge(Lt),ge(Es))},n.\u0275dir=ot({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class WR{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Hw=(()=>{class n{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new WR(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),jw(a,r)}});for(let r=0,s=i.length;r{jw(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(ge(Vi),ge(Cr),ge(Kc))},n.\u0275dir=ot({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function jw(n,t){n.context.$implicit=t.item}let Ka=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new $R,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Uw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Uw("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(ge(Vi),ge(Cr))},n.\u0275dir=ot({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class $R{constructor(){this.$implicit=null,this.ngIf=null}}function Uw(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Rn(t)}'.`)}class rp{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Za=(()=>{class n{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ot({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),sp=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new rp(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(ge(Vi),ge(Cr),ge(Za,9))},n.\u0275dir=ot({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),zw=(()=>{class n{constructor(e,i,r){r._addDefault(new rp(e,i))}}return n.\u0275fac=function(e){return new(e||n)(ge(Vi),ge(Cr),ge(Za,9))},n.\u0275dir=ot({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),Ww=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:s,ngTemplateOutletInjector:o}=this;this._viewRef=i.createEmbeddedView(r,s,o?{injector:o}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(ge(Vi))},n.\u0275dir=ot({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[fi]}),n})(),$w=(()=>{class n{transform(e){return JSON.stringify(e,null,2)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=di({name:"json",type:n,pure:!1,standalone:!0}),n})(),Fs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({}),n})();const Xw="browser";function Yw(n){return"server"===n}class GL extends eR{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class dp extends GL{static makeCurrent(){!function JO(n){Wf||(Wf=n)}(new dp)}onAndCancel(t,e,i){return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function WL(){return Ja=Ja||document.querySelector("base"),Ja?Ja.getAttribute("href"):null}();return null==e?null:function $L(n){cd=cd||document.createElement("a"),cd.setAttribute("href",n);const t=cd.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Ja=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function zR(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}(document.cookie,t)}}let cd,Ja=null,XL=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:n.\u0275fac}),n})();const up=new Xe("EventManagerPlugins");let tC=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(s=>s.supports(e)),!i)throw new Be(5101,!1);return this._eventNameToPlugin.set(e,i),i}}return n.\u0275fac=function(e){return new(e||n)(Re(up),Re(vt))},n.\u0275prov=at({token:n,factory:n.\u0275fac}),n})();class nC{constructor(t){this._doc=t}}const hp="ng-app-id";let iC=(()=>{class n{constructor(e,i,r,s={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Yw(s),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${hp}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){const r=this.styleRef;if(r.has(e)){const s=r.get(e);return s.usage+=i,s.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const r=this.styleNodesInDOM,s=r?.get(i);if(s?.parentNode===e)return r.delete(i),s.removeAttribute(hp),s;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=i,this.platformIsServer&&o.setAttribute(hp,this.appId),o}}addStyleToHost(e,i){const r=this.getStyleElement(e,i);e.appendChild(r);const s=this.styleRef,o=s.get(i)?.elements;o?o.push(r):s.set(i,{elements:[r],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return n.\u0275fac=function(e){return new(e||n)(Re(Vt),Re(Ea),Re(bh,8),Re(Cs))},n.\u0275prov=at({token:n,factory:n.\u0275fac}),n})();const fp={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},pp=/%COMP%/g,QL=new Xe("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function sC(n,t){return t.map(e=>e.replace(pp,n))}let mp=(()=>{class n{constructor(e,i,r,s,o,a,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=s,this.doc=o,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Yw(a),this.defaultRenderer=new gp(e,o,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ci.ShadowDom&&(i={...i,encapsulation:ci.Emulated});const r=this.getOrCreateRenderer(e,i);return r instanceof aC?r.applyToHost(e):r instanceof _p&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let s=r.get(i.id);if(!s){const o=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,f=this.removeStylesOnCompDestory,E=this.platformIsServer;switch(i.encapsulation){case ci.Emulated:s=new aC(l,c,i,this.appId,f,o,a,E);break;case ci.ShadowDom:return new nN(l,c,e,i,o,a,this.nonce,E);default:s=new _p(l,c,i,f,o,a,E)}s.onDestroy=()=>r.delete(i.id),r.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}}return n.\u0275fac=function(e){return new(e||n)(Re(tC),Re(iC),Re(Ea),Re(QL),Re(Vt),Re(Cs),Re(vt),Re(bh))},n.\u0275prov=at({token:n,factory:n.\u0275fac}),n})();class gp{constructor(t,e,i,r){this.eventManager=t,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?this.doc.createElementNS(fp[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(oC(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(oC(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?this.doc.querySelector(t):t;if(!i)throw new Be(5104,!1);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=fp[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=fp[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(mi.DashCase|mi.Important)?t.style.setProperty(e,i,r&mi.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&mi.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){if("string"==typeof t&&!(t=ts().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${e}`);return this.eventManager.addEventListener(t,e,this.decoratePreventDefault(i))}decoratePreventDefault(t){return e=>{if("__ngUnwrap__"===e)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))&&e.preventDefault()}}}function oC(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class nN extends gp{constructor(t,e,i,r,s,o,a,l){super(t,s,o,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=sC(r.id,r.styles);for(const f of c){const E=document.createElement("style");a&&E.setAttribute("nonce",a),E.textContent=f,this.shadowRoot.appendChild(E)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class _p extends gp{constructor(t,e,i,r,s,o,a,l){super(t,s,o,a),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=l?sC(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class aC extends _p{constructor(t,e,i,r,s,o,a,l){const c=r+"-"+i.id;super(t,e,i,s,o,a,l,c),this.contentAttr=function JL(n){return"_ngcontent-%COMP%".replace(pp,n)}(c),this.hostAttr=function eN(n){return"_nghost-%COMP%".replace(pp,n)}(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}let iN=(()=>{class n extends nC{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(Re(Vt))},n.\u0275prov=at({token:n,factory:n.\u0275fac}),n})();const lC=["alt","control","meta","shift"],rN={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},sN={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let oN=(()=>{class n extends nC{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ts().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),o="code."),lC.forEach(c=>{const f=i.indexOf(c);f>-1&&(i.splice(f,1),o+=c+".")}),o+=s,0!=i.length||0===s.length)return null;const l={};return l.domEventName=r,l.fullKey=o,l}static matchEventFullKeyCode(e,i){let r=rN[e.key]||e.key,s="";return i.indexOf("code.")>-1&&(r=e.code,s="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),lC.forEach(o=>{o!==r&&(0,sN[o])(e)&&(s+=o+".")}),s+=r,s===i)}static eventCallback(e,i,r){return s=>{n.matchEventFullKeyCode(s,e)&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(Re(Vt))},n.\u0275prov=at({token:n,factory:n.\u0275fac}),n})();const dN=tw(UO,"browser",[{provide:Cs,useValue:Xw},{provide:bv,useValue:function aN(){dp.makeCurrent()},multi:!0},{provide:Vt,useFactory:function cN(){return function dP(n){oh=n}(document),document},deps:[]}]),uN=new Xe(""),uC=[{provide:$c,useClass:class qL{addToWindow(t){un.getAngularTestability=(i,r=!0)=>{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Be(5103,!1);return s},un.getAllAngularTestabilities=()=>t.getAllTestabilities(),un.getAllAngularRootElements=()=>t.getAllRootElements(),un.frameworkStabilizers||(un.frameworkStabilizers=[]),un.frameworkStabilizers.push(i=>{const r=un.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?ts().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:K0,useClass:kf,deps:[vt,Of,$c]},{provide:kf,useClass:kf,deps:[vt,Of,$c]}],hC=[{provide:ph,useValue:"root"},{provide:_r,useFactory:function lN(){return new _r},deps:[]},{provide:up,useClass:iN,multi:!0,deps:[Vt,vt,Cs]},{provide:up,useClass:oN,multi:!0,deps:[Vt]},mp,iC,tC,{provide:Da,useExisting:mp},{provide:class wL{},useClass:XL,deps:[]},[]];let fC=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:Ea,useValue:e.appId}]}}}return n.\u0275fac=function(e){return new(e||n)(Re(uN,12))},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({providers:[...hC,...uC],imports:[Fs,zO]}),n})();typeof window<"u"&&window;let bp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:function(e){let i=null;return i=e?new(e||n):Re(gC),i},providedIn:"root"}),n})(),gC=(()=>{class n extends bp{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Zt.NONE:return i;case Zt.HTML:return gr(i,"HTML")?xi(i):av(this._doc,String(i)).toString();case Zt.STYLE:return gr(i,"Style")?xi(i):i;case Zt.SCRIPT:if(gr(i,"Script"))return xi(i);throw new Be(5200,!1);case Zt.URL:return gr(i,"URL")?xi(i):gc(String(i));case Zt.RESOURCE_URL:if(gr(i,"ResourceURL"))return xi(i);throw new Be(5201,!1);default:throw new Be(5202,!1)}}bypassSecurityTrustHtml(e){return function _P(n){return new uP(n)}(e)}bypassSecurityTrustStyle(e){return function vP(n){return new hP(n)}(e)}bypassSecurityTrustScript(e){return function bP(n){return new fP(n)}(e)}bypassSecurityTrustUrl(e){return function yP(n){return new pP(n)}(e)}bypassSecurityTrustResourceUrl(e){return function wP(n){return new mP(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(Vt))},n.\u0275prov=at({token:n,factory:function(e){let i=null;return i=e?new e:function _N(n){return new gC(n.get(Vt))}(Re(Zi)),i},providedIn:"root"}),n})();const{isArray:vN}=Array,{getPrototypeOf:bN,prototype:yN,keys:wN}=Object;function vC(n){if(1===n.length){const t=n[0];if(vN(t))return{args:t,keys:null};if(function CN(n){return n&&"object"==typeof n&&bN(n)===yN}(t)){const e=wN(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:EN}=Array;function yp(n){return B(t=>function SN(n,t){return EN(t)?n(...t):n(t)}(n,t))}function bC(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function yC(...n){const t=qm(n),{args:e,keys:i}=vC(n),r=new he(s=>{const{length:o}=e;if(!o)return void s.complete();const a=new Array(o);let l=o,c=o;for(let f=0;f{E||(E=!0,c--),a[f]=G},()=>l--,void 0,()=>{(!l||!E)&&(c||s.next(i?bC(i,a):a),s.complete())}))}});return t?r.pipe(yp(t)):r}let wC=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(ge(Es),ge(Lt))},n.\u0275dir=ot({type:n}),n})(),ks=(()=>{class n extends wC{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=jn(n)))(i||n)}}(),n.\u0275dir=ot({type:n,features:[Mt]}),n})();const ir=new Xe("NgValueAccessor"),AN={provide:ir,useExisting:an(()=>dd),multi:!0},DN=new Xe("CompositionEventMode");let dd=(()=>{class n extends wC{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function MN(){const n=ts()?ts().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(ge(Es),ge(Lt),ge(DN,8))},n.\u0275dir=ot({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&Et("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Yt([AN]),Mt]}),n})();function is(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function EC(n){return null!=n&&"number"==typeof n.length}const qn=new Xe("NgValidators"),rs=new Xe("NgAsyncValidators"),PN=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class SC{static min(t){return function xC(n){return t=>{if(is(t.value)||is(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(is(t.value)||is(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function MC(n){return is(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function DC(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function PC(n){return is(n.value)||PN.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function TC(n){return t=>is(t.value)||!EC(t.value)?null:t.value.lengthEC(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return FC(t)}static nullValidator(t){return null}static compose(t){return VC(t)}static composeAsync(t){return BC(t)}}function FC(n){if(!n)return ud;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(is(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function ud(n){return null}function kC(n){return null!=n}function OC(n){return Nc(n)?qr(n):n}function RC(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function LC(n,t){return t.map(e=>e(n))}function NC(n){return n.map(t=>function TN(n){return!n.validate}(t)?t:e=>t.validate(e))}function VC(n){if(!n)return null;const t=n.filter(kC);return 0==t.length?null:function(e){return RC(LC(e,t))}}function wp(n){return null!=n?VC(NC(n)):null}function BC(n){if(!n)return null;const t=n.filter(kC);return 0==t.length?null:function(e){return yC(LC(e,t).map(OC)).pipe(B(RC))}}function Cp(n){return null!=n?BC(NC(n)):null}function HC(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function jC(n){return n._rawValidators}function UC(n){return n._rawAsyncValidators}function Ep(n){return n?Array.isArray(n)?n:[n]:[]}function hd(n,t){return Array.isArray(n)?n.includes(t):n===t}function zC(n,t){const e=Ep(t);return Ep(n).forEach(r=>{hd(e,r)||e.push(r)}),e}function GC(n,t){return Ep(t).filter(e=>!hd(n,e))}class WC{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=wp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Cp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class ai extends WC{get formDirective(){return null}get path(){return null}}class xr extends WC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class $C{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let qC=(()=>{class n extends $C{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(ge(xr,2))},n.\u0275dir=ot({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&cn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Mt]}),n})();const el="VALID",pd="INVALID",Uo="PENDING",tl="DISABLED";function Ap(n){return(md(n)?n.validators:n)||null}function Mp(n,t){return(md(t)?t.asyncValidators:n)||null}function md(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class ZC{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===el}get invalid(){return this.status===pd}get pending(){return this.status==Uo}get disabled(){return this.status===tl}get enabled(){return this.status!==tl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(zC(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(zC(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(GC(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(GC(t,this._rawAsyncValidators))}hasValidator(t){return hd(this._rawValidators,t)}hasAsyncValidator(t){return hd(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Uo,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=tl,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=el,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===el||this.status===Uo)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?tl:el}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Uo,this._hasOwnPendingAsyncValidator=!0;const e=OC(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ot,this.statusChanges=new Ot}_calculateStatus(){return this._allControlsDisabled()?tl:this.errors?pd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Uo)?Uo:this._anyControlsHaveStatus(pd)?pd:el}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){md(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function RN(n){return Array.isArray(n)?wp(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function LN(n){return Array.isArray(n)?Cp(n):n||null}(this._rawAsyncValidators)}}class Dp extends ZC{constructor(t,e,i){super(Ap(e),Mp(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function KC(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new Be(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function YC(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new Be(1e3,"");if(!i[e])throw new Be(1001,"")})(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const zo=new Xe("CallSetDisabledState",{providedIn:"root",factory:()=>gd}),gd="always";function nl(n,t,e=gd){Pp(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function BN(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&QC(n,t)})}(n,t),function jN(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function HN(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&QC(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function VN(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function vd(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),yd(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function bd(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Pp(n,t){const e=jC(n);null!==t.validator?n.setValidators(HC(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=UC(n);null!==t.asyncValidator?n.setAsyncValidators(HC(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();bd(t._rawValidators,r),bd(t._rawAsyncValidators,r)}function yd(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=jC(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const r=UC(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}const i=()=>{};return bd(t._rawValidators,i),bd(t._rawAsyncValidators,i),e}function QC(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function JC(n,t){Pp(n,t)}function eE(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}const $N={provide:ai,useExisting:an(()=>rl)},il=(()=>Promise.resolve())();let rl=(()=>{class n extends ai{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ot,this.form=new Dp({},wp(e),Cp(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){il.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),nl(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){il.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){il.then(()=>{const i=this._findContainer(e.path),r=new Dp({});JC(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){il.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){il.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,eE(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(ge(qn,10),ge(rs,10),ge(zo,8))},n.\u0275dir=ot({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&Et("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Yt([$N]),Mt]}),n})();function tE(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function nE(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const iE=class extends ZC{constructor(t=null,e,i){super(Ap(e),Mp(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),md(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=nE(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){tE(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){tE(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){nE(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},YN={provide:xr,useExisting:an(()=>kp)},oE=(()=>Promise.resolve())();let kp=(()=>{class n extends xr{constructor(e,i,r,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this.control=new iE,this._registered=!1,this.name="",this.update=new Ot,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function Fp(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(s=>{s.constructor===dd?e=s:function GN(n){return Object.getPrototypeOf(n.constructor)===ks}(s)?i=s:r=s}),r||i||e||null}(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Ip(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){nl(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){oE.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function Gf(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);oE.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function _d(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(ge(ai,9),ge(qn,10),ge(rs,10),ge(ir,10),ge(Sr,8),ge(zo,8))},n.\u0275dir=ot({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Yt([YN]),Mt,fi]}),n})();const ZN={provide:ir,useExisting:an(()=>Op),multi:!0};let Op=(()=>{class n extends ks{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=jn(n)))(i||n)}}(),n.\u0275dir=ot({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&Et("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[Yt([ZN]),Mt]}),n})(),aE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({}),n})();const n2={provide:ai,useExisting:an(()=>sl)};let sl=(()=>{class n extends ai{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ot,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(yd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return nl(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){vd(e.control||null,e,!1),function WN(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,eE(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(vd(i||null,e),(n=>n instanceof iE)(r)&&(nl(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);JC(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function UN(n,t){return yd(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Pp(this.form,this),this._oldForm&&yd(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(ge(qn,10),ge(rs,10),ge(zo,8))},n.\u0275dir=ot({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Et("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Yt([n2]),Mt,fi]}),n})(),Os=(()=>{class n{constructor(){this._validator=ud}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):ud,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ot({type:n,features:[fi]}),n})();const y2={provide:qn,useExisting:an(()=>jp),multi:!0};let jp=(()=>{class n extends Os{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>FC(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=jn(n)))(i||n)}}(),n.\u0275dir=ot({type:n,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&mn("pattern",i._enabled?i.pattern:null)},inputs:{pattern:"pattern"},features:[Yt([y2]),Mt]}),n})(),w2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[aE]}),n})(),E2=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:zo,useValue:e.callSetDisabledState??gd}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[w2]}),n})();class EE{}class S2{}const jr="*";function ol(n,t){return{type:7,name:n,definitions:t,options:{}}}function Rs(n,t=null){return{type:4,styles:t,timings:n}}function SE(n,t=null){return{type:2,steps:n,options:t}}function rr(n){return{type:6,styles:n,offset:null}}function Go(n,t,e){return{type:0,name:n,styles:t,options:e}}function ss(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function x2(n=null){return{type:9,options:n}}function A2(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function xE(n){Promise.resolve().then(n)}class al{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){xE(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class AE{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?xE(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function ME(n){return new Be(3e3,!1)}function os(n){switch(n.length){case 0:return new al;case 1:return n[0];default:return new AE(n)}}function DE(n,t,e=new Map,i=new Map){const r=[],s=[];let o=-1,a=null;if(t.forEach(l=>{const c=l.get("offset"),f=c==o,E=f&&a||new Map;l.forEach((G,ee)=>{let fe=ee,me=G;if("offset"!==ee)switch(fe=n.normalizePropertyName(fe,r),me){case"!":me=e.get(ee);break;case jr:me=i.get(ee);break;default:me=n.normalizeStyleValue(ee,fe,me,r)}E.set(fe,me)}),f||s.push(E),a=E,o=c}),r.length)throw function Y2(n){return new Be(3502,!1)}();return s}function zp(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Gp(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Gp(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Gp(e,"destroy",n)))}}function Gp(n,t,e){const s=Wp(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function Wp(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Pi(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function PE(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}const aV=(()=>typeof document>"u"?null:document.documentElement)();function $p(n){const t=n.parentNode||n.host||null;return t===aV?null:t}let Ls=null,TE=!1;function IE(n,t){for(;t;){if(t===n)return!0;t=$p(t)}return!1}function FE(n,t,e){if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]}let kE=(()=>{class n{validateStyleProperty(e){return function cV(n){Ls||(Ls=function dV(){return typeof document<"u"?document.body:null}()||{},TE=!!Ls.style&&"WebkitAppearance"in Ls.style);let t=!0;return Ls.style&&!function lV(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Ls.style,!t&&TE&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Ls.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return IE(e,i)}getParentElement(e){return $p(e)}query(e,i,r){return FE(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new al(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:n.\u0275fac}),n})(),qp=(()=>{class n{}return n.NOOP=new kE,n})();const uV=1e3,Xp="ng-enter",wd="ng-leave",Cd="ng-trigger",Ed=".ng-trigger",RE="ng-animating",Yp=".ng-animating";function Ur(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Kp(parseFloat(t[1]),t[2])}function Kp(n,t){return"s"===t?n*uV:n}function Sd(n,t,e){return n.hasOwnProperty("duration")?n:function fV(n,t,e){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(ME()),{duration:0,delay:0,easing:""};r=Kp(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Kp(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function M2(){return new Be(3100,!1)}()),a=!0),s<0&&(t.push(function D2(){return new Be(3101,!1)}()),a=!0),a&&t.splice(l,0,ME())}return{duration:r,delay:s,easing:o}}(n,t,e)}function ll(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function LE(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function as(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function Ar(n,t,e){t.forEach((i,r)=>{const s=Qp(r);e&&!e.has(r)&&e.set(r,n.style[s]),n.style[s]=i})}function Ns(n,t){t.forEach((e,i)=>{const r=Qp(i);n.style[r]=""})}function cl(n){return Array.isArray(n)?1==n.length?n[0]:SE(n):n}const Zp=new RegExp("{{\\s*(.+?)\\s*}}","g");function VE(n){let t=[];if("string"==typeof n){let e;for(;e=Zp.exec(n);)t.push(e[1]);Zp.lastIndex=0}return t}function dl(n,t,e){const i=n.toString(),r=i.replace(Zp,(s,o)=>{let a=t[o];return null==a&&(e.push(function T2(n){return new Be(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function xd(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const gV=/-+([a-z0-9])/g;function Qp(n){return n.replace(gV,(...t)=>t[1].toUpperCase())}function Ti(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function I2(n){return new Be(3004,!1)}()}}const Ad="*";function bV(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function yV(n,t,e){if(":"==n[0]){const l=function wV(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function G2(n){return new Be(3015,!1)}()),t;const r=i[1],s=i[2],o=i[3];t.push(HE(r,o));"<"==s[0]&&!(r==Ad&&o==Ad)&&t.push(HE(o,r))}(i,e,t)):e.push(n),e}const Md=new Set(["true","1"]),Dd=new Set(["false","0"]);function HE(n,t){const e=Md.has(n)||Dd.has(n),i=Md.has(t)||Dd.has(t);return(r,s)=>{let o=n==Ad||n==r,a=t==Ad||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?Md.has(n):Dd.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Md.has(t):Dd.has(t)),o&&a}}const CV=new RegExp("s*:selfs*,?","g");function Jp(n,t,e,i){return new EV(n).build(t,e,i)}class EV{constructor(t){this._driver=t}build(t,e,i){const r=new AV(e);return this._resetContextStyleTimingState(r),Ti(this,cl(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function k2(){return new Be(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(f=>{l.name=f,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push(function O2(){return new Be(3007,!1)}())}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{VE(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&(xd(s.values()),e.errors.push(function R2(n,t){return new Be(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Ti(this,cl(t.animation),e);return{type:1,matchers:bV(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Vs(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Ti(this,i,e)),options:Vs(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=Ti(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:Vs(t.options)}}visitAnimate(t,e){const i=function DV(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return em(Sd(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=em(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=Sd(e,t);return em(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:rr({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=rr(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===jr?i.push(a):e.errors.push(new Be(3002,!1)):i.push(LE(a));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),f=c.get(l);let E=!0;f&&(s!=r&&s>=f.startTime&&r<=f.endTime&&(e.errors.push(function N2(n,t,e,i,r){return new Be(3010,!1)}()),E=!1),s=f.startTime),E&&c.set(l,{startTime:s,endTime:r}),e.options&&function mV(n,t,e){const i=t.params||{},r=VE(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function P2(n){return new Be(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function V2(){return new Be(3011,!1)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const f=t.steps.map(Ve=>{const Se=this._makeStyleAst(Ve,e);let it=null!=Se.offset?Se.offset:function MV(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(Se.styles),lt=0;return null!=it&&(s++,lt=Se.offset=it),l=l||lt<0||lt>1,a=a||lt0&&s{const it=G>0?Se==ee?1:G*Se:o[Se],lt=it*Ae;e.currentTime=fe+me.delay+lt,me.duration=lt,this._validateStyleAst(Ve,e),Ve.offset=it,i.styles.push(Ve)}),i}visitReference(t,e){return{type:8,animation:Ti(this,cl(t.animation),e),options:Vs(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Vs(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Vs(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function SV(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(CV,"")),n=n.replace(/@\*/g,Ed).replace(/@\w+/g,e=>Ed+"-"+e.slice(1)).replace(/:animating/g,Yp),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Pi(e.collectedStyles,e.currentQuerySelector,new Map);const a=Ti(this,cl(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Vs(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function U2(){return new Be(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Sd(t.timings,e.errors,!0);return{type:12,animation:Ti(this,cl(t.animation),e),timings:i,options:null}}}class AV{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Vs(n){return n?(n=ll(n)).params&&(n.params=function xV(n){return n?ll(n):null}(n.params)):n={},n}function em(n,t,e){return{duration:n,delay:t,easing:e}}function tm(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class Pd{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const IV=new RegExp(":enter","g"),kV=new RegExp(":leave","g");function nm(n,t,e,i,r,s=new Map,o=new Map,a,l,c=[]){return(new OV).buildKeyframes(n,t,e,i,r,s,o,a,l,c)}class OV{buildKeyframes(t,e,i,r,s,o,a,l,c,f=[]){c=c||new Pd;const E=new im(t,e,c,r,s,f,[]);E.options=l;const G=l.delay?Ur(l.delay):0;E.currentTimeline.delayNextStep(G),E.currentTimeline.setStyles([o],null,E.errors,l),Ti(this,i,E);const ee=E.timelines.filter(fe=>fe.containsAnimation());if(ee.length&&a.size){let fe;for(let me=ee.length-1;me>=0;me--){const Ae=ee[me];if(Ae.element===e){fe=Ae;break}}fe&&!fe.allowOnlyTimelineStyles()&&fe.setStyles([a],null,E.errors,l)}return ee.length?ee.map(fe=>fe.buildKeyframes()):[tm(e,[],[],[],0,G,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(const r of t){const s=r?.delay;if(s){const o="number"==typeof s?s:Ur(dl(s,r?.params??{},e.errors));i.delayNextStep(o)}}}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?Ur(i.duration):null,a=null!=i.delay?Ur(i.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),Ti(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Td);const o=Ur(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>Ti(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Ur(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),Ti(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Sd(e.params?dl(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?Ur(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Td);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,f)=>{e.currentQueryIndex=f;const E=e.createSubContext(t.options,c);s&&E.delayNextStep(s),c===e.element&&(l=E.currentTimeline),Ti(this,t.animation,E),E.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,E.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const f=e.currentTimeline;l&&f.delayNextStep(l);const E=f.currentTime;Ti(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-E+(r.startTime-i.currentTimeline.startTime)}}const Td={};class im{constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Td,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Id(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Ur(i.duration)),null!=i.delay&&(r.delay=Ur(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=dl(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new im(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Td,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},s=new RV(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(IV,"."+this._enterClassName)).replace(kV,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function z2(n){return new Be(3014,!1)}()),a}}class Id{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Id(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||jr),this._currentKeyframe.set(e,jr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const s=r&&r.params||{},o=function LV(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let s of i)e.set(s,jr)}else as(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of o){const c=dl(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??jr),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=as(a,new Map,this._backFill);c.forEach((f,E)=>{"!"===f?t.add(E):f===jr&&e.add(E)}),i||c.set("offset",l/this.duration),r.push(c)});const s=t.size?xd(t.values()):[],o=e.size?xd(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return tm(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class RV extends Id{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=as(t[0]);l.set("offset",0),s.push(l);const c=as(t[0]);c.set("offset",zE(a)),s.push(c);const f=t.length-1;for(let E=1;E<=f;E++){let G=as(t[E]);const ee=G.get("offset");G.set("offset",zE((e+ee*i)/o)),s.push(G)}i=o,e=0,r="",t=s}return tm(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function zE(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class rm{}const NV=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class VV extends rm{normalizePropertyName(t,e){return Qp(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(NV.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function F2(n,t){return new Be(3005,!1)}())}return o+s}}function GE(n,t,e,i,r,s,o,a,l,c,f,E,G){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:f,totalTime:E,errors:G}}const sm={};class WE{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function BV(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,s,o,a,l,c,f){const E=[],G=this.ast.options&&this.ast.options.params||sm,fe=this.buildStyles(i,a&&a.params||sm,E),me=l&&l.params||sm,Ae=this.buildStyles(r,me,E),Ve=new Set,Se=new Map,it=new Map,lt="void"===r,mt={params:HV(me,G),delay:this.ast.options?.delay},ln=f?[]:nm(t,e,this.ast.animation,s,o,fe,Ae,mt,c,E);let kn=0;if(ln.forEach(ar=>{kn=Math.max(ar.duration+ar.delay,kn)}),E.length)return GE(e,this._triggerName,i,r,lt,fe,Ae,[],[],Se,it,kn,E);ln.forEach(ar=>{const $r=ar.element,pA=Pi(Se,$r,new Set);ar.preStyleProps.forEach(qs=>pA.add(qs));const Ml=Pi(it,$r,new Set);ar.postStyleProps.forEach(qs=>Ml.add(qs)),$r!==e&&Ve.add($r)});const or=xd(Ve.values());return GE(e,this._triggerName,i,r,lt,fe,Ae,ln,or,Se,it,kn)}}function HV(n,t){const e=ll(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class jV{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=ll(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!==o&&(r[s]=o)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=dl(o,r,e));const l=this.normalizer.normalizePropertyName(a,e);o=this.normalizer.normalizeStyleValue(a,l,o,e),i.set(a,o)})}),i}}class zV{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new jV(r.style,r.options&&r.options.params||{},i))}),$E(this.states,"true","1"),$E(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new WE(t,r,this.states))}),this.fallbackTransition=function GV(n,t,e){return new WE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function $E(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const WV=new Pd;class $V{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],s=Jp(this._driver,e,i,[]);if(i.length)throw function K2(n){return new Be(3503,!1)}();this._animations.set(t,s)}_buildPlayer(t,e,i){const r=t.element,s=DE(this._normalizer,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations.get(t);let o;const a=new Map;if(s?(o=nm(this._driver,e,s,Xp,wd,new Map,new Map,i,WV,r),o.forEach(f=>{const E=Pi(a,f.element,new Map);f.postStyleProps.forEach(G=>E.set(G,null))})):(r.push(function Z2(){return new Be(3300,!1)}()),o=[]),r.length)throw function Q2(n){return new Be(3504,!1)}();a.forEach((f,E)=>{f.forEach((G,ee)=>{f.set(ee,this._driver.computeStyle(E,ee,jr))})});const c=os(o.map(f=>{const E=a.get(f.element);return this._buildPlayer(f,new Map,E)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function J2(n){return new Be(3301,!1)}();return e}listen(t,e,i,r){const s=Wp(e,"","","");return zp(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const qE="ng-animate-queued",om="ng-animate-disabled",ZV=[],XE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},QV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ji="__ng_removed";class am{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function nB(n){return n??null}(i?t.value:t),i){const s=ll(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const ul="void",lm=new am(ul);class JV{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ui(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function eV(n,t){return new Be(3302,!1)}();if(null==i||0==i.length)throw function tV(n){return new Be(3303,!1)}();if(!function iB(n){return"start"==n||"done"==n}(i))throw function nV(n,t){return new Be(3400,!1)}();const s=Pi(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=Pi(this._engine.statesByElement,t,new Map);return a.has(e)||(Ui(t,Cd),Ui(t,Cd+"-"+e),a.set(e,lm)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function iV(n){return new Be(3401,!1)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new cm(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Ui(t,Cd),Ui(t,Cd+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new am(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=lm),c.value!==ul&&l.value===c.value){if(!function oB(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{Ns(t,Ae),Ar(t,Ve)})}return}const G=Pi(this._engine.playersByElement,t,[]);G.forEach(me=>{me.namespaceId==this.id&&me.triggerName==e&&me.queued&&me.destroy()});let ee=s.matchTransition(l.value,c.value,t,c.params),fe=!1;if(!ee){if(!r)return;ee=s.fallbackTransition,fe=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:ee,fromState:l,toState:c,player:o,isFallbackTransition:fe}),fe||(Ui(t,qE),o.onStart(()=>{Wo(t,qE)})),o.onDone(()=>{let me=this.players.indexOf(o);me>=0&&this.players.splice(me,1);const Ae=this._engine.playersByElement.get(t);if(Ae){let Ve=Ae.indexOf(o);Ve>=0&&Ae.splice(Ve,1)}}),this.players.push(o),G.push(o),o}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Ed,!0);i.forEach(r=>{if(r[ji])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){const f=this.trigger(t,c,ul,r);f&&a.push(f)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&os(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers.get(o).fallbackTransition,c=i.get(o)||lm,f=new am(ul),E=new cm(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:f,player:E,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[ji];(!s||s===XE)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Ui(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Wp(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,zp(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class eB{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new JV(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const s=this._fetchNamespace(r.namespaceId);s&&e.add(s)}return e}trigger(t,e,i,r){if(Fd(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Fd(e))return;const s=e[ji];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ui(t,om)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Wo(t,om))}removeNode(t,e,i){if(Fd(e)){const r=t?this._fetchNamespace(t):null;r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i);const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[ji]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return Fd(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Ed,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Yp,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return os(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[ji];if(e&&e.setForRemoval){if(t[ji]=XE,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(om)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?os(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function rV(n){return new Be(3402,!1)}()}_flushAnimations(t,e){const i=new Pd,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,f=new Set;this.disabledNodes.forEach(ut=>{f.add(ut);const ft=this.driver.query(ut,".ng-animate-queued",!0);for(let yt=0;yt{const yt=Xp+me++;fe.set(ft,yt),ut.forEach(qt=>Ui(qt,yt))});const Ae=[],Ve=new Set,Se=new Set;for(let ut=0;utVe.add(qt)):Se.add(ft))}const it=new Map,lt=ZE(G,Array.from(Ve));lt.forEach((ut,ft)=>{const yt=wd+me++;it.set(ft,yt),ut.forEach(qt=>Ui(qt,yt))}),t.push(()=>{ee.forEach((ut,ft)=>{const yt=fe.get(ft);ut.forEach(qt=>Wo(qt,yt))}),lt.forEach((ut,ft)=>{const yt=it.get(ft);ut.forEach(qt=>Wo(qt,yt))}),Ae.forEach(ut=>{this.processLeaveNode(ut)})});const mt=[],ln=[];for(let ut=this._namespaceList.length-1;ut>=0;ut--)this._namespaceList[ut].drainQueuedTransitions(e).forEach(yt=>{const qt=yt.player,Un=yt.element;if(mt.push(qt),this.collectedEnterElements.length){const ei=Un[ji];if(ei&&ei.setForMove){if(ei.previousTriggersValues&&ei.previousTriggersValues.has(yt.triggerName)){const Xs=ei.previousTriggersValues.get(yt.triggerName),Gi=this.statesByElement.get(yt.element);if(Gi&&Gi.has(yt.triggerName)){const nu=Gi.get(yt.triggerName);nu.value=Xs,Gi.set(yt.triggerName,nu)}}return void qt.destroy()}}const Dr=!E||!this.driver.containsElement(E,Un),Ii=it.get(Un),ds=fe.get(Un),wn=this._buildInstruction(yt,i,ds,Ii,Dr);if(wn.errors&&wn.errors.length)return void ln.push(wn);if(Dr)return qt.onStart(()=>Ns(Un,wn.fromStyles)),qt.onDestroy(()=>Ar(Un,wn.toStyles)),void r.push(qt);if(yt.isFallbackTransition)return qt.onStart(()=>Ns(Un,wn.fromStyles)),qt.onDestroy(()=>Ar(Un,wn.toStyles)),void r.push(qt);const _A=[];wn.timelines.forEach(ei=>{ei.stretchStartingKeyframe=!0,this.disabledNodes.has(ei.element)||_A.push(ei)}),wn.timelines=_A,i.append(Un,wn.timelines),o.push({instruction:wn,player:qt,element:Un}),wn.queriedElements.forEach(ei=>Pi(a,ei,[]).push(qt)),wn.preStyleProps.forEach((ei,Xs)=>{if(ei.size){let Gi=l.get(Xs);Gi||l.set(Xs,Gi=new Set),ei.forEach((nu,Wm)=>Gi.add(Wm))}}),wn.postStyleProps.forEach((ei,Xs)=>{let Gi=c.get(Xs);Gi||c.set(Xs,Gi=new Set),ei.forEach((nu,Wm)=>Gi.add(Wm))})});if(ln.length){const ut=[];ln.forEach(ft=>{ut.push(function sV(n,t){return new Be(3505,!1)}())}),mt.forEach(ft=>ft.destroy()),this.reportError(ut)}const kn=new Map,or=new Map;o.forEach(ut=>{const ft=ut.element;i.has(ft)&&(or.set(ft,ft),this._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,kn))}),r.forEach(ut=>{const ft=ut.element;this._getPreviousPlayers(ft,!1,ut.namespaceId,ut.triggerName,null).forEach(qt=>{Pi(kn,ft,[]).push(qt),qt.destroy()})});const ar=Ae.filter(ut=>JE(ut,l,c)),$r=new Map;KE($r,this.driver,Se,c,jr).forEach(ut=>{JE(ut,l,c)&&ar.push(ut)});const Ml=new Map;ee.forEach((ut,ft)=>{KE(Ml,this.driver,new Set(ut),l,"!")}),ar.forEach(ut=>{const ft=$r.get(ut),yt=Ml.get(ut);$r.set(ut,new Map([...ft?.entries()??[],...yt?.entries()??[]]))});const qs=[],mA=[],gA={};o.forEach(ut=>{const{element:ft,player:yt,instruction:qt}=ut;if(i.has(ft)){if(f.has(ft))return yt.onDestroy(()=>Ar(ft,qt.toStyles)),yt.disabled=!0,yt.overrideTotalTime(qt.totalTime),void r.push(yt);let Un=gA;if(or.size>1){let Ii=ft;const ds=[];for(;Ii=Ii.parentNode;){const wn=or.get(Ii);if(wn){Un=wn;break}ds.push(Ii)}ds.forEach(wn=>or.set(wn,Un))}const Dr=this._buildAnimation(yt.namespaceId,qt,kn,s,Ml,$r);if(yt.setRealPlayer(Dr),Un===gA)qs.push(yt);else{const Ii=this.playersByElement.get(Un);Ii&&Ii.length&&(yt.parentPlayer=os(Ii)),r.push(yt)}}else Ns(ft,qt.fromStyles),yt.onDestroy(()=>Ar(ft,qt.toStyles)),mA.push(yt),f.has(ft)&&r.push(yt)}),mA.forEach(ut=>{const ft=s.get(ut.element);if(ft&&ft.length){const yt=os(ft);ut.setRealPlayer(yt)}}),r.forEach(ut=>{ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(let ut=0;ut!Dr.destroyed);Un.length?rB(this,ft,Un):this.processLeaveNode(ft)}return Ae.length=0,qs.forEach(ut=>{this.players.push(ut),ut.onDone(()=>{ut.destroy();const ft=this.players.indexOf(ut);this.players.splice(ft,1)}),ut.play()}),qs}elementContainsData(t,e){let i=!1;const r=e[ji];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==ul;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,f=c!==s,E=Pi(i,c,[]);this._getPreviousPlayers(c,f,o,a,e.toState).forEach(ee=>{const fe=ee.getRealPlayer();fe.beforeDestroy&&fe.beforeDestroy(),ee.destroy(),E.push(ee)})}Ns(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],f=new Set,E=new Set,G=e.timelines.map(fe=>{const me=fe.element;f.add(me);const Ae=me[ji];if(Ae&&Ae.removedBeforeQueried)return new al(fe.duration,fe.delay);const Ve=me!==l,Se=function sB(n){const t=[];return QE(n,t),t}((i.get(me)||ZV).map(kn=>kn.getRealPlayer())).filter(kn=>!!kn.element&&kn.element===me),it=s.get(me),lt=o.get(me),mt=DE(this._normalizer,fe.keyframes,it,lt),ln=this._buildPlayer(fe,mt,Se);if(fe.subTimeline&&r&&E.add(me),Ve){const kn=new cm(t,a,me);kn.setRealPlayer(ln),c.push(kn)}return ln});c.forEach(fe=>{Pi(this.playersByQueriedElement,fe.element,[]).push(fe),fe.onDone(()=>function tB(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,fe.element,fe))}),f.forEach(fe=>Ui(fe,RE));const ee=os(G);return ee.onDestroy(()=>{f.forEach(fe=>Wo(fe,RE)),Ar(l,e.toStyles)}),E.forEach(fe=>{Pi(r,fe,[]).push(ee)}),ee}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new al(t.duration,t.delay)}}class cm{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new al,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>zp(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Pi(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Fd(n){return n&&1===n.nodeType}function YE(n,t){const e=n.style.display;return n.style.display=t??"none",e}function KE(n,t,e,i,r){const s=[];e.forEach(l=>s.push(YE(l)));const o=[];i.forEach((l,c)=>{const f=new Map;l.forEach(E=>{const G=t.computeStyle(c,E,r);f.set(E,G),(!G||0==G.length)&&(c[ji]=QV,o.push(c))}),n.set(c,f)});let a=0;return e.forEach(l=>YE(l,s[a++])),o}function ZE(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function Ui(n,t){n.classList?.add(t)}function Wo(n,t){n.classList?.remove(t)}function rB(n,t,e){os(e).onDone(()=>n.processLeaveNode(t))}function QE(n,t){for(let e=0;er.add(s)):t.set(n,i),e.delete(n),!0}class kd{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new eB(t,e,i),this._timelineEngine=new $V(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],f=Jp(this._driver,s,l,[]);if(l.length)throw function X2(n,t){return new Be(3404,!1)}();a=function UV(n,t,e){return new zV(n,t,e)}(r,f,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i){this._transitionEngine.removeNode(t,e,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=PE(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=PE(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let uB=(()=>{class n extends EE{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:ci.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?SE(e):e;return tS(this._renderer,null,i,"register",[r]),new hB(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(Re(Da),Re(Vt))},n.\u0275prov=at({token:n,factory:n.\u0275fac}),n})();class hB extends S2{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new fB(this._id,t,e||{},this._renderer)}}class fB{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return tS(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function tS(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const nS="@.disabled";let pB=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=o?.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let f=this._rendererCache.get(s);return f||(f=new iS("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,f)),f}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=f=>{Array.isArray(f)?f.forEach(l):this.engine.registerTrigger(o,a,e,f.name,f)};return i.data.animation.forEach(l),new mB(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(Re(Da),Re(kd),Re(vt))},n.\u0275prov=at({token:n,factory:n.\u0275fac}),n})();class iS{constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==nS?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class mB extends iS{constructor(t,e,i,r,s){super(e,i,r,s),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==nS?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function gB(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function _B(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}const sS=[{provide:qp,useClass:kE},{provide:Ai,useValue:"NoopAnimations"},...[{provide:EE,useClass:uB},{provide:rm,useFactory:function bB(){return new VV}},{provide:kd,useClass:(()=>{class n extends kd{constructor(e,i,r,s){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(Re(Vt),Re(qp),Re(rm),Re(Ps))},n.\u0275prov=at({token:n,factory:n.\u0275fac}),n})()},{provide:Da,useFactory:function yB(n,t,e){return new pB(n,t,e)},deps:[mp,kd,vt]}]];let um,CB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({providers:sS,imports:[fC]}),n})();try{um=typeof Intl<"u"&&Intl.v8BreakIterator}catch{um=!1}let $o,An=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function bL(n){return n===Xw}(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&&!um)&&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 n.\u0275fac=function(e){return new(e||n)(Re(Cs))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oS=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function aS(){if($o)return $o;if("object"!=typeof document||!document)return $o=new Set(oS),$o;let n=document.createElement("input");return $o=new Set(oS.filter(t=>(n.setAttribute("type",t),n.type===t))),$o}let hl,Rd,Bs,hm;function qo(n){return function EB(){if(null==hl&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>hl=!0}))}finally{hl=hl||!1}return hl}()?n:!!n.capture}function lS(){if(null==Bs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Bs=!1,Bs;if("scrollBehavior"in document.documentElement.style)Bs=!0;else{const n=Element.prototype.scrollTo;Bs=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Bs}function fl(){if("object"!=typeof document||!document)return 0;if(null==Rd){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),Rd=0,0===n.scrollLeft&&(n.scrollLeft=1,Rd=0===n.scrollLeft?1:2),n.remove()}return Rd}function ls(n){return n.composedPath?n.composedPath()[0]:n.target}function fm(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Hs(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function Ld(n,t,e){const i=p(n)||t||e?{next:n,error:t,complete:e}:n;return i?w((r,s)=>{var o;null===(o=i.subscribe)||void 0===o||o.call(i);let a=!0;r.subscribe(y(s,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),s.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),s.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),s.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):q}class BB extends ae{constructor(t,e){super()}schedule(t,e=0){return this}}const Nd={setInterval(n,t,...e){const{delegate:i}=Nd;return i?.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=Nd;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class bm extends BB{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var i;if(this.closed)return this;this.state=t;const r=this.id,s=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(s,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,i=0){return Nd.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Nd.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Z(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const hS={now:()=>(hS.delegate||Date).now(),delegate:void 0};class pl{constructor(t,e=pl.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}pl.now=hS.now;class ym extends pl{constructor(t,e=pl.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const wm=new ym(bm),HB=wm;function ml(n,t=wm){return w((e,i)=>{let r=null,s=null,o=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=s;s=null,i.next(c)}};function l(){const c=o+n,f=t.now();if(f{s=c,o=t.now(),r||(r=t.schedule(l,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{s=r=null}))})}function bi(n,t){return w((e,i)=>{let r=0;e.subscribe(y(i,s=>n.call(t,s,r++)&&i.next(s)))})}function zr(n){return n<=0?()=>Pr:w((t,e)=>{let i=0;t.subscribe(y(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function fS(n){return bi((t,e)=>n<=e)}function pt(n){return w((t,e)=>{Bt(n).subscribe(y(e,()=>e.complete(),R)),!e.closed&&t.subscribe(e)})}function dn(n){return null!=n&&"false"!=`${n}`}function gl(n,t=0){return function jB(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function Vd(n){return Array.isArray(n)?n:[n]}function Fn(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Gr(n){return n instanceof Lt?n.nativeElement:n}let pS=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),UB=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Gr(e);return new he(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new F,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(Re(pS))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zB=(()=>{class n{get disabled(){return this._disabled}set disabled(e){this._disabled=dn(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=gl(e),this._subscribe()}constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Ot,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(ml(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(ge(UB),ge(Lt),ge(vt))},n.\u0275dir=ot({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),mS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({providers:[pS]}),n})();function gS(n,t,e){n?Mn(e,n,t):t()}function Cm(...n){return function $B(){return Fi(1)}()(qr(n,Qo(n)))}function _l(...n){const t=Qo(n);return w((e,i)=>{(t?Cm(n,e,t):Cm(n,e)).subscribe(i)})}const _S=new Set;let js,qB=(()=>{class n{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):YB}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function XB(n,t){if(!_S.has(n))try{js||(js=document.createElement("style"),t&&(js.nonce=t),js.setAttribute("type","text/css"),document.head.appendChild(js)),js.sheet&&(js.sheet.insertRule(`@media ${n} {body{ }}`,0),_S.add(n))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(An),Re(bh,8))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function YB(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let KB=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new F}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return vS(Vd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=function GB(...n){const t=Qo(n),e=qm(n),{args:i,keys:r}=vC(n);if(0===i.length)return qr([],t);const s=new he(function WB(n,t,e=q){return i=>{gS(t,()=>{const{length:r}=n,s=new Array(r);let o=r,a=r;for(let l=0;l{const c=qr(n[l],t);let f=!1;c.subscribe(y(i,E=>{s[l]=E,f||(f=!0,a--),a||i.next(e(s.slice()))},()=>{--o||i.complete()}))},i)},i)}}(i,t,r?o=>bC(r,o):q));return e?s.pipe(yp(e)):s}(vS(Vd(e)).map(o=>this._registerQuery(o).observable));return s=Cm(s.pipe(zr(1)),s.pipe(fS(1),ml(0))),s.pipe(B(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),s={observable:new he(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(_l(i),B(({matches:o})=>({query:e,matches:o})),pt(this._destroySubject)),mql:i};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(Re(qB),Re(vt))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function vS(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function Bd(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const yS="cdk-describedby-message",Hd="cdk-describedby-host";let Em=0,JB=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Em++,this._document=e,this._id=Ft(Ea)+"-"+Em++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const s=Sm(i,r);"string"!=typeof i?(wS(i,this._id),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const s=Sm(i,r);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof i){const o=this._messageRegistry.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Hd}="${this._id}"]`);for(let i=0;i0!=r.indexOf(yS));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function ZB(n,t,e){const i=Bd(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Hd,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function QB(n,t,e){const r=Bd(n,t).filter(s=>s!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Hd)}_isElementDescribedByMessage(e,i){const r=Bd(e,"aria-describedby"),s=this._messageRegistry.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(Re(Vt),Re(An))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Sm(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function wS(n,t){n.id||(n.id=`${yS}-${t}-${Em++}`)}class eH{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new F,this._typeaheadSubscription=ae.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new F,this.change=new F,t instanceof Bo&&(this._itemChangesSubscription=t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ld(e=>this._pressedLetters.push(e)),ml(t),bi(()=>this._pressedLetters.length>0),B(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const s=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(s=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Bo?this._items.toArray():this._items}}class tH extends eH{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}let CS=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function iH(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function nH(n){try{return n.frameElement}catch{return null}}(function uH(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===SS(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),s=SS(e);return e.hasAttribute("contenteditable")?-1!==s:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function cH(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==s:"video"===r?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function dH(n){return!function sH(n){return function aH(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function rH(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function oH(n){return function lH(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||ES(n))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(Re(An))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ES(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function SS(n){if(!ES(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class hH{get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}constructor(t,e,i,r,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(zr(1)).subscribe(t)}}let fH=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new hH(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(Re(CS),Re(vt),Re(Vt))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function xS(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function AS(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const pH=new Xe("cdk-input-modality-detector-options"),mH={ignoreKeys:[18,17,224,91,16]},Xo=qo({passive:!0,capture:!0});let gH=(()=>{class n{get mostRecentModality(){return this._modality.value}constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new O(null),this._lastTouchMs=0,this._onKeydown=o=>{this._options?.ignoreKeys?.some(a=>a===o.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ls(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(xS(o)?"keyboard":"mouse"),this._mostRecentTarget=ls(o))},this._onTouchstart=o=>{AS(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ls(o))},this._options={...mH,...s},this.modalityDetected=this._modality.pipe(fS(1)),this.modalityChanged=this.modalityDetected.pipe(Dl()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Xo),r.addEventListener("mousedown",this._onMousedown,Xo),r.addEventListener("touchstart",this._onTouchstart,Xo)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Xo),document.removeEventListener("mousedown",this._onMousedown,Xo),document.removeEventListener("touchstart",this._onTouchstart,Xo))}}return n.\u0275fac=function(e){return new(e||n)(Re(An),Re(vt),Re(Vt),Re(pH,8))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _H=new Xe("liveAnnouncerElement",{providedIn:"root",factory:function vH(){return null}}),bH=new Xe("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let yH=0,wH=(()=>{class n{constructor(e,i,r,s){this._ngZone=i,this._defaultOptions=s,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let s,o;return 1===i.length&&"number"==typeof i[0]?o=i[0]:[s,o]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=r&&r.politeness?r.politeness:"polite"),null==o&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof o&&(this._previousTimeout=setTimeout(()=>this.clear(),o)),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 e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let s=0;s .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class n{constructor(e,i,r,s,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,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 F,this._rootNodeFocusAndBlurListener=a=>{for(let c=ls(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=s,this._detectionMode=o?.detectionMode||0}monitor(e,i=!1){const r=Gr(e);if(!this._platform.isBrowser||1!==r.nodeType)return Tr(null);const s=function xB(n){if(function SB(){if(null==hm){const n=typeof document<"u"?document.head:null;hm=!(!n||!n.createShadowRoot&&!n.attachShadow)}return hm}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new F,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Gr(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=Gr(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=ls(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,jd),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,jd)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(pt(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jd),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jd),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const s=e.labels;if(s)for(let o=0;o{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Ft(KB).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(xm,DS,PS),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(xm,DS):2===i&&e.add(xm,PS)}}}return n.\u0275fac=function(e){return new(e||n)(Re(An),Re(Vt))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),EH=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(Re(TS))},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[mS]}),n})();const SH=new Xe("cdk-dir-doc",{providedIn:"root",factory:function xH(){return Ft(Vt)}}),AH=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Us=(()=>{class n{constructor(e){this.value="ltr",this.change=new Ot,e&&(this.value=function MH(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?AH.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(Re(SH,8))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({}),n})();const DH=["text"];function PH(n,t){if(1&n&&en(0,"mat-pseudo-checkbox",6),2&n){const e=Nt();et("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function TH(n,t){1&n&&en(0,"mat-pseudo-checkbox",7),2&n&&et("disabled",Nt().disabled)}function IH(n,t){if(1&n&&(Ye(0,"span",8),Ut(1),Ze()),2&n){const e=Nt();tt(1),Br("(",e.group.label,")")}}const FH=[[["mat-icon"]],"*"],kH=["mat-icon","*"],RH=new Xe("mat-sanity-checks",{providedIn:"root",factory:function OH(){return!0}});let En=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!fm()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(Re(TS),Re(RH,8),Re(Vt))},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[vl,vl]}),n})();function Am(n){return class extends n{get disabled(){return this._disabled}set disabled(t){this._disabled=dn(t)}constructor(...t){super(...t),this._disabled=!1}}}function zd(n,t){return class extends n{get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...e){super(...e),this.defaultColor=t,this.color=t}}}function Mm(n){return class extends n{get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=dn(t)}constructor(...t){super(...t),this._disableRipple=!1}}}function kS(n,t=0){return class extends n{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?gl(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}}}function OS(n){return class extends n{updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}constructor(...t){super(...t),this.errorState=!1}}}let RS=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class NH{constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const LS=qo({passive:!0,capture:!0});class VH{constructor(){this._events=new Map,this._delegateEventHandler=t=>{const e=ls(t);e&&this._events.get(t.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(s=>s.handleEvent(t))})}}addHandler(t,e,i,r){const s=this._events.get(e);if(s){const o=s.get(i);o?o.add(r):s.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,LS)})}removeHandler(t,e,i){const r=this._events.get(t);if(!r)return;const s=r.get(e);s&&(s.delete(i),0===s.size&&r.delete(e),0===r.size&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,LS)))}}const NS={enterDuration:225,exitDuration:150},VS=qo({passive:!0,capture:!0}),BS=["mousedown","touchstart"],HS=["mouseup","mouseleave","touchend","touchcancel"];class Yo{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Gr(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s={...NS,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function HH(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=s.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=a-o+"px",f.style.top=l-o+"px",f.style.height=2*o+"px",f.style.width=2*o+"px",null!=i.color&&(f.style.backgroundColor=i.color),f.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(f);const E=window.getComputedStyle(f),ee=E.transitionDuration,fe="none"===E.transitionProperty||"0s"===ee||"0s, 0s"===ee||0===r.width&&0===r.height,me=new NH(this,f,i,fe);f.style.transform="scale3d(1, 1, 1)",me.state=0,i.persistent||(this._mostRecentTransientRipple=me);let Ae=null;return!fe&&(c||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ve=()=>this._finishRippleTransition(me),Se=()=>this._destroyRipple(me);f.addEventListener("transitionend",Ve),f.addEventListener("transitioncancel",Se),Ae={onTransitionEnd:Ve,onTransitionCancel:Se}}),this._activeRipples.set(me,Ae),(fe||!c)&&this._finishRippleTransition(me),me}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...NS,...t.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Gr(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,BS.forEach(i=>{Yo._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{HS.forEach(e=>{this._triggerElement.addEventListener(e,this,VS)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=1,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const e=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!==e&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=xS(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const t=this._triggerElement;t&&(BS.forEach(e=>Yo._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&HS.forEach(e=>t.removeEventListener(e,this,VS)))}}Yo._eventManager=new VH;const jS=new Xe("mat-ripple-global-options");let Dm=(()=>{class n{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new Yo(this,i,e,r)}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(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(vt),ge(An),ge(jS,8),ge(Ai,8))},n.\u0275dir=ot({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&cn("mat-ripple-unbounded",i.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"]}),n})(),Pm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[En,En]}),n})(),jH=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return n.\u0275fac=function(e){return new(e||n)(ge(Ai,8))},n.\u0275cmp=Gn({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&cn("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("mat-pseudo-checkbox-minimal","minimal"===i.appearance)("mat-pseudo-checkbox-full","full"===i.appearance)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),n})(),UH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[En]}),n})();const US=new Xe("MAT_OPTION_PARENT_COMPONENT"),zS=new Xe("MatOptgroup");let zH=0;class GH{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let WH=(()=>{class n{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(e){this._disabled=dn(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,r,s){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+zH++,this.onSelectionChange=new Ot,this._stateChanges=new F}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.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(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Hs(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new GH(this,e))}}return n.\u0275fac=function(e){Co()},n.\u0275dir=ot({type:n,viewQuery:function(e,i){if(1&e&&$n(DH,7),2&e){let r;nn(r=rn())&&(i._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),GS=(()=>{class n extends WH{constructor(e,i,r,s){super(e,i,r,s)}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(Sr),ge(US,8),ge(zS,8))},n.\u0275cmp=Gn({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(e,i){1&e&&Et("click",function(){return i._selectViaInteraction()})("keydown",function(s){return i._handleKeydown(s)}),2&e&&(Ms("id",i.id),mn("aria-selected",i.selected)("aria-disabled",i.disabled.toString()),cn("mdc-list-item--selected",i.selected)("mat-mdc-option-multiple",i.multiple)("mat-mdc-option-active",i.active)("mdc-list-item--disabled",i.disabled))},exportAs:["matOption"],features:[Mt],ngContentSelectors:kH,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(Di(FH),kt(0,PH,1,2,"mat-pseudo-checkbox",0),tn(1),Ye(2,"span",1,2),tn(4,1),Ze(),kt(5,TH,1,1,"mat-pseudo-checkbox",3),kt(6,IH,2,1,"span",4),en(7,"div",5)),2&e&&(et("ngIf",i.multiple),tt(5),et("ngIf",!i.multiple&&i.selected&&!i.hideSingleSelectionIndicator),tt(1),et("ngIf",i.group&&i.group._inert),tt(1),et("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[Dm,Ka,jH],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),WS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[Pm,Fs,En,UH]}),n})();const $S=["mat-button",""],qS=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],XS=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],YS={capture:!0},KS=["focus","click","mouseenter","touchstart"],yl="mat-button-ripple-uninitialized";let KH=(()=>{class n{constructor(){this._document=Ft(Vt,{optional:!0}),this._animationMode=Ft(Ai,{optional:!0}),this._globalRippleOptions=Ft(jS,{optional:!0}),this._platform=Ft(An),this._ngZone=Ft(vt),this._onInteraction=e=>{if(e.target===this._document)return;const r=e.target.closest(`[${yl}]`);r&&(r.removeAttribute(yl),this._appendRipple(r))},this._ngZone.runOutsideAngular(()=>{for(const e of KS)this._document?.addEventListener(e,this._onInteraction,YS)})}ngOnDestroy(){for(const e of KS)this._document?.removeEventListener(e,this._onInteraction,YS)}_appendRipple(e){if(!this._document)return;const i=this._document.createElement("span");i.classList.add("mat-mdc-button-ripple");const r=new ZH(e,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);r.rippleConfig.centered=e.hasAttribute("mat-icon-button"),new Yo(r,this._ngZone,i,this._platform).setupTriggerEvents(e),e.append(i)}_createMatRipple(e){if(!this._document)return;e.querySelector(".mat-mdc-button-ripple")?.remove(),e.removeAttribute(yl);const i=this._document.createElement("span");i.classList.add("mat-mdc-button-ripple");const r=new Dm(new Lt(i),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,e.append(i),r}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class ZH{constructor(t,e,i){this._button=t,this._globalRippleOptions=e,this._setRippleConfig(e,i)}_setRippleConfig(t,e){this.rippleConfig=t||{},"NoopAnimations"===e&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get rippleDisabled(){return this._button.hasAttribute("disabled")||!!this._globalRippleOptions?.disabled}}const QH=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],JH=zd(Am(Mm(class{constructor(n){this._elementRef=n}})));let ZS=(()=>{class n extends JH{get ripple(){return!this._ripple&&this._rippleLoader&&(this._ripple=this._rippleLoader._createMatRipple(this._elementRef.nativeElement)),this._ripple}set ripple(e){this._ripple=e}constructor(e,i,r,s){super(e),this._platform=i,this._ngZone=r,this._animationMode=s,this._focusMonitor=Ft(Ud),this._rippleLoader=Ft(KH),this._isFab=!1;const o=e.nativeElement.classList;for(const a of QH)this._hasHostAttributes(a.selector)&&a.mdcClasses.forEach(l=>{o.add(l)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnChanges(){this._ripple&&(this._ripple.disabled=this.disableRipple||this.disabled)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_hasHostAttributes(...e){return e.some(i=>this._elementRef.nativeElement.hasAttribute(i))}}return n.\u0275fac=function(e){Co()},n.\u0275dir=ot({type:n,features:[Mt,fi]}),n})(),tj=(()=>{class n extends ZS{constructor(e,i,r,s){super(e,i,r,s),this._haltDisabledEvents=o=>{this.disabled&&(o.preventDefault(),o.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return n.\u0275fac=function(e){Co()},n.\u0275dir=ot({type:n,features:[Mt]}),n})(),nj=(()=>{class n extends ZS{constructor(e,i,r,s){super(e,i,r,s)}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(An),ge(vt),ge(Ai,8))},n.\u0275cmp=Gn({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostAttrs:["mat-button-ripple-uninitialized",""],hostVars:7,hostBindings:function(e,i){2&e&&(mn("disabled",i.disabled||null),cn("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Mt],attrs:$S,ngContentSelectors:XS,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(Di(qS),en(0,"span",0),tn(1),Ye(2,"span",1),tn(3,1),Ze(),tn(4,2),en(5,"span",2)(6,"span",3)),2&e&&cn("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),ij=(()=>{class n extends tj{constructor(e,i,r,s){super(e,i,r,s)}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(An),ge(vt),ge(Ai,8))},n.\u0275cmp=Gn({type:n,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:["mat-button-ripple-uninitialized",""],hostVars:9,hostBindings:function(e,i){2&e&&(mn("disabled",i.disabled||null)("tabindex",i.disabled?-1:i.tabIndex)("aria-disabled",i.disabled.toString()),cn("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Mt],attrs:$S,ngContentSelectors:XS,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(Di(qS),en(0,"span",0),tn(1),Ye(2,"span",1),tn(3,1),Ze(),tn(4,2),en(5,"span",2)(6,"span",3)),2&e&&cn("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),QS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[En,Pm,En]}),n})();const sj=["matFormFieldNotchedOutline",""],oj=["*"],aj=["textField"],lj=["iconPrefixContainer"],cj=["textPrefixContainer"];function dj(n,t){1&n&&en(0,"span",19)}function uj(n,t){if(1&n){const e=Ni();Ye(0,"label",17),Et("cdkObserveContent",function(){return ti(e),ni(Nt(2)._refreshOutlineNotchWidth())}),tn(1,1),kt(2,dj,1,0,"span",18),Ze()}if(2&n){const e=Nt(2);et("floating",e._shouldLabelFloat())("cdkObserveContentDisabled",!e._hasOutline())("id",e._labelId),mn("for",e._control.id)("aria-owns",e._control.id),tt(2),et("ngIf",!e.hideRequiredMarker&&e._control.required)}}function hj(n,t){1&n&&kt(0,uj,3,6,"label",16),2&n&&et("ngIf",Nt()._hasFloatingLabel())}function fj(n,t){1&n&&en(0,"div",20)}function pj(n,t){}function mj(n,t){1&n&&kt(0,pj,0,0,"ng-template",22),2&n&&(Nt(2),et("ngTemplateOutlet",xs(1)))}function gj(n,t){if(1&n&&(Ye(0,"div",21),kt(1,mj,1,1,"ng-template",9),Ze()),2&n){const e=Nt();et("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",e._labelWidth),tt(1),et("ngIf",!e._forceDisplayInfixLabel())}}function _j(n,t){1&n&&(Ye(0,"div",23,24),tn(2,2),Ze())}function vj(n,t){1&n&&(Ye(0,"div",25,26),tn(2,3),Ze())}function bj(n,t){}function yj(n,t){1&n&&kt(0,bj,0,0,"ng-template",22),2&n&&(Nt(),et("ngTemplateOutlet",xs(1)))}function wj(n,t){1&n&&(Ye(0,"div",27),tn(1,4),Ze())}function Cj(n,t){1&n&&(Ye(0,"div",28),tn(1,5),Ze())}function Ej(n,t){1&n&&en(0,"div",29)}function Sj(n,t){1&n&&(Ye(0,"div",30),tn(1,6),Ze()),2&n&&et("@transitionMessages",Nt()._subscriptAnimationState)}function xj(n,t){if(1&n&&(Ye(0,"mat-hint",34),Ut(1),Ze()),2&n){const e=Nt(2);et("id",e._hintLabelId),tt(1),Ro(e.hintLabel)}}function Aj(n,t){if(1&n&&(Ye(0,"div",31),kt(1,xj,2,2,"mat-hint",32),tn(2,7),en(3,"div",33),tn(4,8),Ze()),2&n){const e=Nt();et("@transitionMessages",e._subscriptAnimationState),tt(1),et("ngIf",e.hintLabel)}}const Mj=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Dj=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Tm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ot({type:n,selectors:[["mat-label"]]}),n})(),Pj=0;const JS=new Xe("MatError");let Tj=(()=>{class n{constructor(e,i){this.id="mat-mdc-error-"+Pj++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(vs("aria-live"),ge(Lt))},n.\u0275dir=ot({type:n,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(e,i){2&e&&Ms("id",i.id)},inputs:{id:"id"},features:[Yt([{provide:JS,useExisting:n}])]}),n})(),Ij=0,Im=(()=>{class n{constructor(){this.align="start",this.id="mat-mdc-hint-"+Ij++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ot({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,i){2&e&&(Ms("id",i.id),mn("align",null),cn("mat-mdc-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"}}),n})();const Fj=new Xe("MatPrefix"),kj=new Xe("MatSuffix");let ex=(()=>{class n{constructor(e){this._elementRef=e,this.floating=!1}getWidth(){return function Oj(n){if(null!==n.offsetParent)return n.scrollWidth;const e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const i=e.scrollWidth;return e.remove(),i}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt))},n.\u0275dir=ot({type:n,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,i){2&e&&cn("mdc-floating-label--float-above",i.floating)},inputs:{floating:"floating"}}),n})();const tx="mdc-line-ripple--active",Gd="mdc-line-ripple--deactivating";let nx=(()=>{class n{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{const s=this._elementRef.nativeElement.classList,o=s.contains(Gd);"opacity"===r.propertyName&&o&&s.remove(tx,Gd)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(Gd),e.add(tx)}deactivate(){this._elementRef.nativeElement.classList.add(Gd)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(vt))},n.\u0275dir=ot({type:n,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),n})(),ix=(()=>{class n{constructor(e,i){this._elementRef=e,this._ngZone=i,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(vt))},n.\u0275cmp=Gn({type:n,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,i){2&e&&cn("mdc-notched-outline--notched",i.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:sj,ngContentSelectors:oj,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(e,i){1&e&&(Di(),en(0,"div",0),Ye(1,"div",1),tn(2),Ze(),en(3,"div",2)),2&e&&(tt(1),Oo("width",i._getNotchWidth()))},encapsulation:2,changeDetection:0}),n})();const Rj={transitionMessages:ol("transitionMessages",[Go("enter",rr({opacity:1,transform:"translateY(0%)"})),ss("void => enter",[rr({opacity:0,transform:"translateY(-5px)"}),Rs("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Fm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ot({type:n}),n})();const km=new Xe("MatFormField"),Lj=new Xe("MAT_FORM_FIELD_DEFAULT_OPTIONS");let rx=0,Bj=(()=>{class n{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=dn(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,r,s,o,a,l,c){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=s,this._platform=o,this._defaults=a,this._animationMode=l,this._document=c,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+rx++,this._hintLabelId="mat-mdc-hint-"+rx++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new F,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,a&&(a.appearance&&(this.appearance=a.appearance),this._hideRequiredMarker=!!a?.hideRequiredMarker,a.color&&(this.color=a.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(pt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),hs(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(pt(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(pt(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,s=i?.getBoundingClientRect().width??0,o=r?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${s+o}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(Sr),ge(vt),ge(Us),ge(An),ge(Lj,8),ge(Ai,8),ge(Vt))},n.\u0275cmp=Gn({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&(_i(r,Tm,5),_i(r,Tm,7),_i(r,Fm,5),_i(r,Fj,5),_i(r,kj,5),_i(r,JS,5),_i(r,Im,5)),2&e){let s;nn(s=rn())&&(i._labelChildNonStatic=s.first),nn(s=rn())&&(i._labelChildStatic=s.first),nn(s=rn())&&(i._formFieldControl=s.first),nn(s=rn())&&(i._prefixChildren=s),nn(s=rn())&&(i._suffixChildren=s),nn(s=rn())&&(i._errorChildren=s),nn(s=rn())&&(i._hintChildren=s)}},viewQuery:function(e,i){if(1&e&&($n(aj,5),$n(lj,5),$n(cj,5),$n(ex,5),$n(ix,5),$n(nx,5)),2&e){let r;nn(r=rn())&&(i._textField=r.first),nn(r=rn())&&(i._iconPrefixContainer=r.first),nn(r=rn())&&(i._textPrefixContainer=r.first),nn(r=rn())&&(i._floatingLabel=r.first),nn(r=rn())&&(i._notchedOutline=r.first),nn(r=rn())&&(i._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,i){2&e&&cn("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===i._animationMode)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-focused",i._control.focused)("mat-primary","accent"!==i.color&&"warn"!==i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Yt([{provide:km,useExisting:n}])],ngContentSelectors:Dj,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(e,i){1&e&&(Di(Mj),kt(0,hj,1,1,"ng-template",null,0,x0),Ye(2,"div",1,2),Et("click",function(s){return i._control.onContainerClick(s)}),kt(4,fj,1,0,"div",3),Ye(5,"div",4),kt(6,gj,2,3,"div",5),kt(7,_j,3,0,"div",6),kt(8,vj,3,0,"div",7),Ye(9,"div",8),kt(10,yj,1,1,"ng-template",9),tn(11),Ze(),kt(12,wj,2,0,"div",10),kt(13,Cj,2,0,"div",11),Ze(),kt(14,Ej,1,0,"div",12),Ze(),Ye(15,"div",13),kt(16,Sj,2,1,"div",14),kt(17,Aj,5,2,"div",15),Ze()),2&e&&(tt(2),cn("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),tt(2),et("ngIf",!i._hasOutline()&&!i._control.disabled),tt(2),et("ngIf",i._hasOutline()),tt(1),et("ngIf",i._hasIconPrefix),tt(1),et("ngIf",i._hasTextPrefix),tt(2),et("ngIf",!i._hasOutline()||i._forceDisplayInfixLabel()),tt(2),et("ngIf",i._hasTextSuffix),tt(1),et("ngIf",i._hasIconSuffix),tt(1),et("ngIf",!i._hasOutline()),tt(1),cn("mat-mdc-form-field-subscript-dynamic-size","dynamic"===i.subscriptSizing),et("ngSwitch",i._getDisplayedMessages()),tt(1),et("ngSwitchCase","error"),tt(1),et("ngSwitchCase","hint"))},dependencies:[Ka,Ww,Za,sp,zB,Im,ex,ix,nx],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[Rj.transitionMessages]},changeDetection:0}),n})(),wl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[En,Fs,mS,En]}),n})();const ax=qo({passive:!0});let Hj=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Pr;const i=Gr(e),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new F,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,ax),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,ax)}}),s}stopMonitoring(e){const i=Gr(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(Re(An),Re(vt))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({}),n})();const Uj=new Xe("MAT_INPUT_VALUE_ACCESSOR"),zj=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Gj=0;const Wj=OS(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new F}});let $j=(()=>{class n extends Wj{get disabled(){return this._disabled}set disabled(e){this._disabled=dn(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(SC.required)??!1}set required(e){this._required=dn(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&aS().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=dn(e)}constructor(e,i,r,s,o,a,l,c,f,E){super(a,s,o,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=E,this._uid="mat-input-"+Gj++,this.focused=!1,this.stateChanges=new F,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(fe=>aS().has(fe)),this._iOSKeyupListener=fe=>{const me=fe.target;!me.value&&0===me.selectionStart&&0===me.selectionEnd&&(me.setSelectionRange(1,1),me.setSelectionRange(0,0))};const G=this._elementRef.nativeElement,ee=G.nodeName.toLowerCase();this._inputValueAccessor=l||G,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&f.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ee,this._isTextarea="textarea"===ee,this._isInFormField=!!E,this._isNativeSelect&&(this.controlType=G.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){zj.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(An),ge(xr,10),ge(rl,8),ge(sl,8),ge(RS),ge(Uj,10),ge(Hj),ge(vt),ge(km,8))},n.\u0275dir=ot({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(e,i){1&e&&Et("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Ms("id",i.id)("disabled",i.disabled)("required",i.required),mn("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),cn("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._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:[Yt([{provide:Fm,useExisting:n}]),Mt,fi]}),n})(),lx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[En,wl,wl,jj,En]}),n})();const qj=["switch"],Xj=["*"],Yj=new Xe("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),Kj={provide:ir,useExisting:an(()=>dx),multi:!0};class cx{constructor(t,e){this.source=t,this.checked=e}}let Zj=0;const Qj=kS(zd(Mm(Am(class{constructor(n){this._elementRef=n}}))));let Jj=(()=>{class n extends Qj{get required(){return this._required}set required(e){this._required=dn(e)}get checked(){return this._checked}set checked(e){this._checked=dn(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,s,o,a,l){super(e),this._focusMonitor=i,this._changeDetectorRef=r,this.defaults=o,this._onChange=c=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new Ot,this.toggleChange=new Ot,this.tabIndex=parseInt(s)||0,this.color=this.defaultColor=o.color||"accent",this._noopAnimations="NoopAnimations"===a,this.id=this._uniqueId=`${l}${++Zj}`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return n.\u0275fac=function(e){Co()},n.\u0275dir=ot({type:n,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[Mt]}),n})(),dx=(()=>{class n extends Jj{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(e,i,r,s,o,a){super(e,i,r,s,o,a,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new cx(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(e){return new cx(this,e)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(Ud),ge(Sr),vs("tabindex"),ge(Yj),ge(Ai,8))},n.\u0275cmp=Gn({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(e,i){if(1&e&&$n(qj,5),2&e){let r;nn(r=rn())&&(i._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(e,i){2&e&&(Ms("id",i.id),mn("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),cn("mat-mdc-slide-toggle-focused",i._focused)("mat-mdc-slide-toggle-checked",i.checked)("_mat-animation-noopable",i._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[Yt([Kj]),Mt],ngContentSelectors:Xj,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[1,"mdc-label",3,"for","click"]],template:function(e,i){if(1&e&&(Di(),Ye(0,"div",0)(1,"button",1,2),Et("click",function(){return i._handleClick()}),en(3,"div",3),Ye(4,"div",4)(5,"div",5)(6,"div",6),en(7,"div",7),Ze(),Ye(8,"div",8),en(9,"div",9),Ze(),Ye(10,"div",10),Oi(),Ye(11,"svg",11),en(12,"path",12),Ze(),Ye(13,"svg",13),en(14,"path",14),Ze()()()()(),Ki(),Ye(15,"label",15),Et("click",function(s){return s.stopPropagation()}),tn(16),Ze()()),2&e){const r=xs(2);cn("mdc-form-field--align-end","before"==i.labelPosition),tt(1),cn("mdc-switch--selected",i.checked)("mdc-switch--unselected",!i.checked)("mdc-switch--checked",i.checked)("mdc-switch--disabled",i.disabled),et("tabIndex",i.tabIndex)("disabled",i.disabled),mn("id",i.buttonId)("name",i.name)("aria-label",i.ariaLabel)("aria-labelledby",i._getAriaLabelledBy())("aria-describedby",i.ariaDescribedby)("aria-required",i.required||null)("aria-checked",i.checked),tt(8),et("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0),tt(6),et("for",i.buttonId),mn("id",i._labelId)}},dependencies:[Dm],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}'],encapsulation:2,changeDetection:0}),n})(),ux=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({}),n})(),hx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[ux,En,Pm,Fs,ux,En]}),n})();const nU=["*",[["mat-toolbar-row"]]],iU=["*","mat-toolbar-row"],rU=zd(class{constructor(n){this._elementRef=n}});let fx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ot({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),sU=(()=>{class n extends rU{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(An),ge(Vt))},n.\u0275cmp=Gn({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&_i(r,fx,5),2&e){let s;nn(s=rn())&&(i._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&cn("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Mt],ngContentSelectors:iU,decls:2,vars:0,template:function(e,i){1&e&&(Di(nU),tn(0),tn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),px=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[En,En]}),n})();const oU=["addListener","removeListener"],aU=["addEventListener","removeEventListener"],lU=["on","off"];function pn(n,t,e,i){if(p(e)&&(i=e,e=void 0),i)return pn(n,t,e).pipe(yp(i));const[r,s]=function uU(n){return p(n.addEventListener)&&p(n.removeEventListener)}(n)?aU.map(o=>a=>n[o](t,a,e)):function cU(n){return p(n.addListener)&&p(n.removeListener)}(n)?oU.map(mx(n,t)):function dU(n){return p(n.on)&&p(n.off)}(n)?lU.map(mx(n,t)):[];if(!r&&xe(n))return zn(o=>pn(o,t,e))(Bt(n));if(!r)throw new TypeError("Invalid event target");return new he(o=>{const a=(...l)=>o.next(1s(a)})}function mx(n,t){return e=>i=>n[e](t,i)}const Cl={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Cl;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(s=>{e=void 0,n(s)});return new ae(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:t}=Cl;return(t?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=Cl;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};new class fU extends ym{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class hU extends bm{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Cl.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:s}=t;null!=e&&(null===(r=s[s.length-1])||void 0===r?void 0:r.id)!==e&&(Cl.cancelAnimationFrame(e),t._scheduled=void 0)}});let Om,mU=1;const Wd={};function gx(n){return n in Wd&&(delete Wd[n],!0)}const gU={setImmediate(n){const t=mU++;return Wd[t]=!0,Om||(Om=Promise.resolve()),Om.then(()=>gx(t)&&n()),t},clearImmediate(n){gx(n)}},{setImmediate:_U,clearImmediate:vU}=gU,$d={setImmediate(...n){const{delegate:t}=$d;return(t?.setImmediate||_U)(...n)},clearImmediate(n){const{delegate:t}=$d;return(t?.clearImmediate||vU)(n)},delegate:void 0};new class yU extends ym{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class bU extends bm{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=$d.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:s}=t;null!=e&&(null===(r=s[s.length-1])||void 0===r?void 0:r.id)!==e&&($d.clearImmediate(e),t._scheduled===e&&(t._scheduled=void 0))}});function _x(n,t=wm){return function CU(n){return w((t,e)=>{let i=!1,r=null,s=null,o=!1;const a=()=>{if(s?.unsubscribe(),s=null,i){i=!1;const c=r;r=null,e.next(c)}o&&e.complete()},l=()=>{s=null,o&&e.complete()};t.subscribe(y(e,c=>{i=!0,r=c,s||Bt(n(c)).subscribe(s=y(e,a,l))},()=>{o=!0,(!i||!s||s.closed)&&e.complete()}))})}(()=>function SU(n=0,t,e=HB){let i=-1;return null!=t&&($m(t)?e=t:i=t),new he(r=>{let s=function EU(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;s<0&&(s=0);let o=0;return e.schedule(function(){r.closed||(r.next(o++),0<=i?this.schedule(void 0,i):r.complete())},s)})}(n,t))}let qd=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new F,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new he(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(_x(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Tr()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(bi(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Gr(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>pn(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(Re(vt),Re(An),Re(Vt,8))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rm=(()=>{class n{constructor(e,i,r,s){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=s,this._destroyed=new F,this._elementScrolled=new he(o=>this.ngZone.runOutsideAngular(()=>pn(this.elementRef.nativeElement,"scroll").pipe(pt(this._destroyed)).subscribe(o)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=fl()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==fl()?e.left=e.right:1==fl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;lS()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",s=this.elementRef.nativeElement;if("top"==e)return s.scrollTop;if("bottom"==e)return s.scrollHeight-s.clientHeight-s.scrollTop;const o=this.dir&&"rtl"==this.dir.value;return"start"==e?e=o?r:i:"end"==e&&(e=o?i:r),o&&2==fl()?e==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:o&&1==fl()?e==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:e==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(qd),ge(vt),ge(Us,8))},n.\u0275dir=ot({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),n})(),Xd=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new F,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(_x(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(Re(An),Re(vt),Re(Vt,8))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ko=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({}),n})(),vx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[vl,Ko,vl,Ko]}),n})();function bx(n){return B(()=>n)}const yx=["*"],MU=["content"];function DU(n,t){if(1&n){const e=Ni();Ye(0,"div",2),Et("click",function(){return ti(e),ni(Nt()._onBackdropClicked())}),Ze()}2&n&&cn("mat-drawer-shown",Nt()._isShowingBackdrop())}function PU(n,t){1&n&&(Ye(0,"mat-drawer-content"),tn(1,2),Ze())}const TU=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],IU=["mat-drawer","mat-drawer-content","*"],FU={transformDrawer:ol("transform",[Go("open, open-instant",rr({transform:"none",visibility:"visible"})),Go("void",rr({"box-shadow":"none",visibility:"hidden"})),ss("void => open-instant",Rs("0ms")),ss("void <=> open, open-instant => void",Rs("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},kU=new Xe("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function OU(){return!1}}),wx=new Xe("MAT_DRAWER_CONTAINER");let Yd=(()=>{class n extends Rm{constructor(e,i,r,s,o){super(r,s,o),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(ge(Sr),ge(an(()=>Ex)),ge(Lt),ge(qd),ge(vt))},n.\u0275cmp=Gn({type:n,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&Oo("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[Yt([{provide:Rm,useExisting:n}]),Mt],ngContentSelectors:yx,decls:1,vars:0,template:function(e,i){1&e&&(Di(),tn(0))},encapsulation:2,changeDetection:0}),n})(),Cx=(()=>{class n{get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=dn(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=dn(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(dn(e))}constructor(e,i,r,s,o,a,l,c){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=r,this._platform=s,this._ngZone=o,this._interactivityChecker=a,this._doc=l,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new F,this._animationEnd=new F,this._animationState="void",this.openedChange=new Ot(!0),this._openedStream=this.openedChange.pipe(bi(f=>f),B(()=>{})),this.openedStart=this._animationStarted.pipe(bi(f=>f.fromState!==f.toState&&0===f.toState.indexOf("open")),bx(void 0)),this._closedStream=this.openedChange.pipe(bi(f=>!f),B(()=>{})),this.closedStart=this._animationStarted.pipe(bi(f=>f.fromState!==f.toState&&"void"===f.toState),bx(void 0)),this._destroyed=new F,this.onPositionChanged=new Ot,this._modeChanged=new F,this.openedChange.subscribe(f=>{f?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{pn(this._elementRef.nativeElement,"keydown").pipe(bi(f=>27===f.keyCode&&!this.disableClose&&!Hs(f)),pt(this._destroyed)).subscribe(f=>this._ngZone.run(()=>{this.close(),f.stopPropagation(),f.preventDefault()}))}),this._animationEnd.pipe(Dl((f,E)=>f.fromState===E.fromState&&f.toState===E.toState)).subscribe(f=>{const{fromState:E,toState:G}=f;(0===G.indexOf("open")&&"void"===E||"void"===G&&0===E.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe(zr(1)).subscribe(o=>s(o?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,r=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(fH),ge(Ud),ge(An),ge(vt),ge(CS),ge(Vt,8),ge(wx,8))},n.\u0275cmp=Gn({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,i){if(1&e&&$n(MU,5),2&e){let r;nn(r=rn())&&(i._content=r.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&Qh("@transform.start",function(s){return i._animationStarted.next(s)})("@transform.done",function(s){return i._animationEnd.next(s)}),2&e&&(mn("align",null),af("@transform",i._animationState),cn("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:yx,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(Di(),Ye(0,"div",0,1),tn(2),Ze())},dependencies:[Rm],encapsulation:2,data:{animation:[FU.transformDrawer]},changeDetection:0}),n})(),Ex=(()=>{class n{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=dn(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:dn(e)}get scrollable(){return this._userContent||this._content}constructor(e,i,r,s,o,a=!1,l){this._dir=e,this._element=i,this._ngZone=r,this._changeDetectorRef=s,this._animationMode=l,this._drawers=new Bo,this.backdropClick=new Ot,this._destroyed=new F,this._doCheckSubject=new F,this._contentMargins={left:null,right:null},this._contentMarginChanges=new F,e&&e.change.pipe(pt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),o.change().pipe(pt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}ngAfterContentInit(){this._allDrawers.changes.pipe(_l(this._allDrawers),pt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(_l(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(ml(10),pt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,i-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();i+=r,e-=r}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(bi(i=>i.fromState!==i.toState),pt(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(pt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(pt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(zr(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(pt(hs(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(ge(Us,8),ge(Lt),ge(vt),ge(Sr),ge(Xd),ge(kU),ge(Ai,8))},n.\u0275cmp=Gn({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,r){if(1&e&&(_i(r,Yd,5),_i(r,Cx,5)),2&e){let s;nn(s=rn())&&(i._content=s.first),nn(s=rn())&&(i._allDrawers=s)}},viewQuery:function(e,i){if(1&e&&$n(Yd,5),2&e){let r;nn(r=rn())&&(i._userContent=r.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&cn("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Yt([{provide:wx,useExisting:n}])],ngContentSelectors:IU,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(Di(TU),kt(0,DU,1,2,"div",0),tn(1),tn(2,1),kt(3,PU,2,0,"mat-drawer-content",1)),2&e&&(et("ngIf",i.hasBackdrop),tt(3),et("ngIf",!i._content))},dependencies:[Ka,Yd],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),Sx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[Fs,En,Ko,Ko,En]}),n})();class Lm{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class xx extends Lm{constructor(t,e,i,r,s){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=s}}class Ax extends Lm{constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class LU extends Lm{constructor(t){super(),this.element=t instanceof Lt?t.nativeElement:t}}class NU{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof xx?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ax?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof LU?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class VU extends NU{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||Zi.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let BU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({}),n})();const Mx=lS();class HU{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Fn(-this._previousScrollPosition.left),t.style.top=Fn(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Mx&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Mx&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class jU{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0).pipe(bi(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Dx{enable(){}disable(){}attach(){}}function Nm(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function Px(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class UU{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Nm(e,[{width:i,height:r,bottom:r,right:i,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 zU=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Dx,this.close=o=>new jU(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new HU(this._viewportRuler,this._document),this.reposition=o=>new UU(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(Re(qd),Re(Xd),Re(vt),Re(Vt))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Tx{constructor(t){if(this.scrollStrategy=new Dx,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class GU{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let Ix=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(Re(Vt))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),WU=(()=>{class n extends Ix{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){const a=s[o]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(Re(Vt),Re(vt,8))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$U=(()=>{class n extends Ix{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=ls(s)},this._clickListener=s=>{const o=ls(s),a="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const f=l[c];if(f._outsidePointerEvents.observers.length<1||!f.hasAttached())continue;if(f.overlayElement.contains(o)||f.overlayElement.contains(a))break;const E=f._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>E.next(s)):E.next(s)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(Re(Vt),Re(An),Re(vt,8))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fx=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||fm()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;sthis._backdropClick.next(E),this._backdropTransitionendHandler=E=>{this._disposeBackdrop(E.target)},this._keydownEvents=new F,this._outsidePointerEvents=new F,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(zr(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Fn(this._config.width),t.height=Fn(this._config.height),t.minWidth=Fn(this._config.minWidth),t.minHeight=Fn(this._config.minHeight),t.maxWidth=Fn(this._config.maxWidth),t.maxHeight=Fn(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const r=Vd(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(pt(hs(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()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const kx="cdk-overlay-connected-position-bounding-box",XU=/([A-Za-z%]+)$/;class YU{get positions(){return this._preferredPositions}constructor(t,e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s,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 F,this._resizeSubscription=ae.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._validatePositions(),t.hostElement.classList.add(kx),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)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 t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),f=this._getOverlayFit(c,e,i,a);if(f.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(f,c,i)?s.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleAreal&&(l=f,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&zs(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(kx),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,s;if("center"==i.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?o:a}return e.left<0&&(r-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=Rx(e);let{x:o,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let G=0-a,ee=a+s.height-i.height,fe=this._subtractOverflows(s.width,0-o,o+s.width-i.width),me=this._subtractOverflows(s.height,G,ee),Ae=fe*me;return{visibleArea:Ae,isCompletelyWithinViewport:s.width*s.height===Ae,fitsInViewportVertically:me===s.height,fitsInViewportHorizontally:fe==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=Ox(this._overlayRef.getConfig().minHeight),a=Ox(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=o&&o<=r)&&(t.fitsInViewportHorizontally||null!=a&&a<=s)}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=Rx(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let f=0,E=0;return f=r.width<=s.width?c||-o:t.xfe&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-fe/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)G=i.width-t.x+this._viewportMargin,f=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)E=t.x,f=i.right-t.x;else{const ee=Math.min(i.right-t.x+i.left,t.x),fe=this._lastBoundingBoxSize.width;f=2*ee,E=t.x-ee,f>fe&&!this._isInitialRender&&!this._growAfterOpen&&(E=t.x-fe/2)}return{top:o,left:E,bottom:a,right:G,width:f,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Fn(i.height),r.top=Fn(i.top),r.bottom=Fn(i.bottom),r.width=Fn(i.width),r.left=Fn(i.left),r.right=Fn(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=Fn(s)),o&&(r.maxWidth=Fn(o))}this._lastBoundingBoxSize=i,zs(this._boundingBox.style,r)}_resetBoundingBoxStyles(){zs(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){zs(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const f=this._viewportRuler.getViewportScrollPosition();zs(i,this._getExactOverlayY(e,t,f)),zs(i,this._getExactOverlayX(e,t,f))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=Fn(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=Fn(o.maxWidth):s&&(i.maxWidth="")),zs(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=Fn(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Fn(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Px(t,i),isOriginOutsideView:Nm(t,i),isOverlayClipped:Px(e,i),isOverlayOutsideView:Nm(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Vd(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Lt)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function zs(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Ox(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(XU);return e&&"px"!==e?null:parseFloat(t)}return n||null}function Rx(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Lx="cdk-global-overlay-wrapper";class KU{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Lx),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a),f=this._xPosition,E=this._xOffset,G="rtl"===this._overlayRef.getConfig().direction;let ee="",fe="",me="";l?me="flex-start":"center"===f?(me="center",G?fe=E:ee=E):G?"left"===f||"end"===f?(me="flex-end",ee=E):("right"===f||"start"===f)&&(me="flex-start",fe=E):"left"===f||"start"===f?(me="flex-start",ee=E):("right"===f||"end"===f)&&(me="flex-end",fe=E),t.position=this._cssPosition,t.marginLeft=l?"0":ee,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":fe,e.justifyContent=me,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(Lx),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let ZU=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new KU}flexibleConnectedTo(e){return new YU(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(Re(Xd),Re(Vt),Re(An),Re(Fx))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QU=0,Zo=(()=>{class n{constructor(e,i,r,s,o,a,l,c,f,E,G,ee){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=f,this._location=E,this._outsideClickDispatcher=G,this._animationsModuleType=ee}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new Tx(e);return o.direction=o.direction||this._directionality.value,new qU(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+QU++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ps)),new VU(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(Re(zU),Re(Fx),Re(Ma),Re(ZU),Re(WU),Re(Zi),Re(vt),Re(Vt),Re(Us),Re(Dw),Re($U),Re(Ai,8))},n.\u0275prov=at({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const JU=[{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"}],Nx=new Xe("cdk-connected-overlay-scroll-strategy");let Vm=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt))},n.\u0275dir=ot({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),n})(),Vx=(()=>{class n{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=dn(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=dn(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=dn(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=dn(e)}get push(){return this._push}set push(e){this._push=dn(e)}constructor(e,i,r,s,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=ae.EMPTY,this._attachSubscription=ae.EMPTY,this._detachSubscription=ae.EMPTY,this._positionSubscription=ae.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Ot,this.positionChange=new Ot,this.attach=new Ot,this.detach=new Ot,this.overlayKeydown=new Ot,this.overlayOutsideClick=new Ot,this._templatePortal=new Ax(i,r),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=JU);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Hs(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Tx({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Vm?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(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function RU(n,t=!1){return w((e,i)=>{let r=0;e.subscribe(y(i,s=>{const o=n(s,r++);(o||t)&&i.next(s),!o&&i.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(ge(Zo),ge(Cr),ge(Vi),ge(Nx),ge(Us,8))},n.\u0275dir=ot({type:n,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"],standalone:!0,features:[fi]}),n})();const t3={provide:Nx,deps:[Zo],useFactory:function e3(n){return()=>n.scrollStrategies.reposition()}};let Bx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({providers:[Zo,t3],imports:[vl,BU,vx,vx]}),n})();const n3=["tooltip"],Hx=new Xe("mat-tooltip-scroll-strategy"),s3={provide:Hx,deps:[Zo],useFactory:function r3(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},a3=new Xe("mat-tooltip-default-options",{providedIn:"root",factory:function o3(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),jx="tooltip-panel",Ux=qo({passive:!0});let f3=(()=>{class n{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=dn(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=dn(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=gl(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=gl(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,r,s,o,a,l,c,f,E,G,ee){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=E,this._defaultOptions=G,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new F,this._scrollStrategy=f,this._document=ee,G&&(this._showDelay=G.showDelay,this._hideDelay=G.hideDelay,G.position&&(this.position=G.position),G.positionAtOrigin&&(this.positionAtOrigin=G.positionAtOrigin),G.touchGestures&&(this.touchGestures=G.touchGestures)),E.change.pipe(pt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(pt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,Ux)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(i);this._detach(),this._portal=this._portal||new xx(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=r.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(pt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&s._origin instanceof Lt)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(pt(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${jx}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(pt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(pt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(pt(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!Hs(s)&&(s.preventDefault(),s.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(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...s.main}),this._addOffset({...r.fallback,...s.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(zr(1),pt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:s}=e;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${jx}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{const r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,Ux)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){Co()},n.\u0275dir=ot({type:n,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),p3=(()=>{class n extends f3{constructor(e,i,r,s,o,a,l,c,f,E,G,ee){super(e,i,r,s,o,a,l,c,f,E,G,ee),this._tooltipComponent=g3,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const r=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=r?-8:8:"end"===e.originX&&(e.offsetX=r?8:-8),e}}return n.\u0275fac=function(e){return new(e||n)(ge(Zo),ge(Lt),ge(qd),ge(Vi),ge(vt),ge(An),ge(JB),ge(Ud),ge(Hx),ge(Us,8),ge(a3,8),ge(Vt))},n.\u0275dir=ot({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[Mt]}),n})(),m3=(()=>{class n{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new F,this._animationsDisabled="NoopAnimations"===i}show(e){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,r=this._showAnimation,s=this._hideAnimation;if(i.classList.remove(e?s:r),i.classList.add(e?r:s),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const o=getComputedStyle(i);("0s"===o.getPropertyValue("animation-duration")||"none"===o.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(ge(Sr),ge(Ai,8))},n.\u0275dir=ot({type:n}),n})(),g3=(()=>{class n extends m3{constructor(e,i,r){super(e,r),this._elementRef=i,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}}return n.\u0275fac=function(e){return new(e||n)(ge(Sr),ge(Lt),ge(Ai,8))},n.\u0275cmp=Gn({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&$n(n3,7),2&e){let r;nn(r=rn())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&Et("mouseleave",function(s){return i._handleMouseLeave(s)}),2&e&&Oo("zoom",i.isVisible()?1:null)},features:[Mt],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(e,i){1&e&&(Ye(0,"div",0,1),Et("animationend",function(s){return i._handleAnimationEnd(s)}),Ye(2,"div",2),Ut(3),Ze()()),2&e&&(cn("mdc-tooltip--multiline",i._isMultiline),et("ngClass",i.tooltipClass),tt(3),Ro(i.message))},dependencies:[ip],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),n})(),zx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({providers:[s3],imports:[EH,Fs,Bx,En,En,Ko]}),n})();class _3{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new F,e&&e.length&&(t?e.forEach(s=>this._markSelected(s)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,i=new Set(t);t.forEach(s=>this._markSelected(s)),e.filter(s=>!i.has(s)).forEach(s=>this._unmarkSelected(s));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(t){if(this.compareWith){for(let e of this._selection)if(this.compareWith(t,e))return e;return t}return t}}const b3=["trigger"],y3=["panel"];function w3(n,t){if(1&n&&(Ye(0,"span",10),Ut(1),Ze()),2&n){const e=Nt();tt(1),Ro(e.placeholder)}}function C3(n,t){if(1&n&&(Ye(0,"span",14),Ut(1),Ze()),2&n){const e=Nt(2);tt(1),Ro(e.triggerValue)}}function E3(n,t){1&n&&tn(0,0,["*ngSwitchCase","true"])}function S3(n,t){1&n&&(Ye(0,"span",11),kt(1,C3,2,1,"span",12),kt(2,E3,1,0,"ng-content",13),Ze()),2&n&&(et("ngSwitch",!!Nt().customTrigger),tt(2),et("ngSwitchCase",!0))}function x3(n,t){if(1&n){const e=Ni();Oi(),Ki(),Ye(0,"div",15,16),Et("@transformPanel.done",function(r){return ti(e),ni(Nt()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return ti(e),ni(Nt()._handleKeydown(r))}),tn(2,1),Ze()}if(2&n){const e=Nt();sf("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),et("ngClass",e.panelClass)("@transformPanel","showing"),mn("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const A3=[[["mat-select-trigger"]],"*"],M3=["mat-select-trigger","*"],D3={transformPanelWrap:ol("transformPanelWrap",[ss("* => void",A2("@transformPanel",[x2()],{optional:!0}))]),transformPanel:ol("transformPanel",[Go("void",rr({opacity:0,transform:"scale(1, 0.8)"})),ss("void => showing",Rs("120ms cubic-bezier(0, 0, 0.2, 1)",rr({opacity:1,transform:"scale(1, 1)"}))),ss("* => void",Rs("100ms linear",rr({opacity:0})))])};let Gx=0;const Wx=new Xe("mat-select-scroll-strategy"),T3=new Xe("MAT_SELECT_CONFIG"),I3={provide:Wx,deps:[Zo],useFactory:function P3(n){return()=>n.scrollStrategies.reposition()}},F3=new Xe("MatSelectTrigger");class k3{constructor(t,e){this.source=t,this.value=e}}const O3=Mm(kS(Am(OS(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r,this.stateChanges=new F}}))));let R3=(()=>{class n extends O3{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(SC.required)??!1}set required(e){this._required=dn(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=dn(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=dn(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=gl(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,i,r,s,o,a,l,c,f,E,G,ee,fe,me){super(o,s,l,c,E),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=f,this._liveAnnouncer=fe,this._defaultOptions=me,this._panelOpen=!1,this._compareWith=(Ae,Ve)=>Ae===Ve,this._uid="mat-select-"+Gx++,this._triggerAriaLabelledBy=null,this._destroy=new F,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Gx++,this._panelDoneAnimatingStream=new F,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=function v3(n){return new he(t=>{Bt(n()).subscribe(t)})}(()=>{const Ae=this.options;return Ae?Ae.changes.pipe(_l(Ae),au(()=>hs(...Ae.map(Ve=>Ve.onSelectionChange)))):this._ngZone.onStable.pipe(zr(1),au(()=>this.optionSelectionChanges))}),this.openedChange=new Ot,this._openedStream=this.openedChange.pipe(bi(Ae=>Ae),B(()=>{})),this._closedStream=this.openedChange.pipe(bi(Ae=>!Ae),B(()=>{})),this.selectionChange=new Ot,this.valueChange=new Ot,this.ngControl&&(this.ngControl.valueAccessor=this),null!=me?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=me.typeaheadDebounceInterval),this._scrollStrategyFactory=ee,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(G)||0,this.id=this.id}ngOnInit(){this._selectionModel=new _3(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Dl(),pt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(pt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(_l(null),pt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.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(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),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(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,s=13===i||32===i,o=this._keyManager;if(!o.isTyping()&&s&&!Hs(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;o.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,s=40===r||38===r,o=i.isTyping();if(s&&e.altKey)e.preventDefault(),this.close();else if(o||13!==r&&32!==r||!i.activeItem||Hs(e))if(!o&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&s&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(zr(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(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_skipPredicate(e){return e.disabled}_initKeyManager(){this._keyManager=new tH(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=hs(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(pt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),hs(...this.options.map(i=>i._stateChanges)).pipe(pt(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(ge(Xd),ge(Sr),ge(vt),ge(RS),ge(Lt),ge(Us,8),ge(rl,8),ge(sl,8),ge(km,8),ge(xr,10),vs("tabindex"),ge(Wx),ge(wH),ge(T3,8))},n.\u0275dir=ot({type:n,viewQuery:function(e,i){if(1&e&&($n(b3,5),$n(y3,5),$n(Vx,5)),2&e){let r;nn(r=rn())&&(i.trigger=r.first),nn(r=rn())&&(i.panel=r.first),nn(r=rn())&&(i._overlayDir=r.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:[Mt,fi]}),n})(),L3=(()=>{class n extends R3{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=e=>!this.panelOpen&&e.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(pt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const r=this.panel.nativeElement,s=function $H(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),s=0;for(let o=0;oe+i?Math.max(0,n-i+t):e}(o.offsetTop,o.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new k3(this,e)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof Vm?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=dn(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=jn(n)))(i||n)}}(),n.\u0275cmp=Gn({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(_i(r,F3,5),_i(r,GS,5),_i(r,zS,5)),2&e){let s;nn(s=rn())&&(i.customTrigger=s.first),nn(s=rn())&&(i.options=s),nn(s=rn())&&(i.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,i){1&e&&Et("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(mn("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()),cn("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[Yt([{provide:Fm,useExisting:n},{provide:US,useExisting:n}]),Mt],ngContentSelectors:M3,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(Di(A3),Ye(0,"div",0,1),Et("click",function(){return i.toggle()}),Ye(3,"div",2),kt(4,w3,2,1,"span",3),kt(5,S3,3,2,"span",4),Ze(),Ye(6,"div",5)(7,"div",6),Oi(),Ye(8,"svg",7),en(9,"path",8),Ze()()()(),kt(10,x3,3,9,"ng-template",9),Et("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=xs(1);mn("aria-owns",i.panelOpen?i.id+"-panel":null),tt(3),et("ngSwitch",i.empty),mn("id",i._valueId),tt(1),et("ngSwitchCase",!0),tt(1),et("ngSwitchCase",!1),tt(5),et("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[ip,Za,sp,zw,Vx,Vm],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface{max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px)}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[D3.transformPanel]},changeDetection:0}),n})(),$x=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({providers:[I3],imports:[Fs,Bx,WS,En,Ko,wl,WS,En]}),n})();function qx(n){return w((t,e)=>{let s,i=null,r=!1;i=t.subscribe(y(e,void 0,void 0,o=>{s=Bt(n(o,qx(n)(t))),i?(i.unsubscribe(),i=null,s.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,s.subscribe(e))})}class Bm{}class Wr{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?"string"==typeof t?this.lazyInit=()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Wr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Wr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Wr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(t,e){const i=(Array.isArray(e)?e:[e]).map(s=>s.toString()),r=t.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(t,r)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class H3{encodeKey(t){return Xx(t)}encodeValue(t){return Xx(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const U3=/%(\d[a-f0-9])/gi,z3={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Xx(n){return encodeURIComponent(n).replace(U3,(t,e)=>z3[e]??t)}function Kd(n){return`${n}`}class cs{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new H3,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function j3(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(Kd):[Kd(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new cs({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Kd(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Kd(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class G3{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Yx(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Kx(n){return typeof Blob<"u"&&n instanceof Blob}function Zx(n){return typeof FormData<"u"&&n instanceof FormData}class El{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function W3(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Wr),this.context||(this.context=new G3),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":aE.set(G,t.setHeaders[G]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((E,G)=>E.set(G,t.setParams[G]),c)),new El(e,i,s,{params:c,headers:l,context:f,reportProgress:a,responseType:r,withCredentials:o})}}var Xn=(()=>((Xn=Xn||{})[Xn.Sent=0]="Sent",Xn[Xn.UploadProgress=1]="UploadProgress",Xn[Xn.ResponseHeader=2]="ResponseHeader",Xn[Xn.DownloadProgress=3]="DownloadProgress",Xn[Xn.Response=4]="Response",Xn[Xn.User=5]="User",Xn))();class q3{constructor(t,e=200,i="OK"){this.headers=t.headers||new Wr,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Sl extends q3{constructor(t={}){super(t),this.type=Xn.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Sl({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function jm(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Um=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof El)s=e;else{let l,c;l=r.headers instanceof Wr?r.headers:new Wr(r.headers),r.params&&(c=r.params instanceof cs?r.params:new cs({fromObject:r.params})),s=new El(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Tr(s).pipe(function B3(n,t){return p(t)?zn(n,t,1):zn(n,1)}(l=>this.handler.handle(l)));if(e instanceof El||"events"===r.observe)return o;const a=o.pipe(bi(l=>l instanceof Sl));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(B(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(B(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(B(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(B(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new cs).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,jm(r,i))}post(e,i,r={}){return this.request("POST",e,jm(r,i))}put(e,i,r={}){return this.request("PUT",e,jm(r,i))}}return n.\u0275fac=function(e){return new(e||n)(Re(Bm))},n.\u0275prov=at({token:n,factory:n.\u0275fac}),n})();const fz=["*"];let Jd;function xl(n){return function pz(){if(void 0===Jd&&(Jd=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Jd=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Jd}()?.createHTML(n)||n}function aA(n){return Error(`Unable to find icon with the name "${n}"`)}function lA(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function cA(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class $s{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let eu=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new $s(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(Zt.HTML,r);if(!o)throw cA(r);const a=xl(o);return this._addSvgIconConfig(e,i,new $s("",a,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new $s(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(Zt.HTML,i);if(!s)throw cA(i);const o=xl(s);return this._addSvgIconSetConfig(e,new $s("",o,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Zt.RESOURCE_URL,e);if(!i)throw lA(e);const r=this._cachedIconsByUrl.get(i);return r?Tr(tu(r)):this._loadSvgIconFromConfig(new $s(e,null)).pipe(Ld(s=>this._cachedIconsByUrl.set(i,s)),B(s=>tu(s)))}getNamedSvgIcon(e,i=""){const r=dA(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):function N3(n,t){const e=p(n)?n:()=>n,i=r=>r.error(e());return new he(t?r=>t.schedule(i,0,r):i)}(aA(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Tr(tu(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(B(i=>tu(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?Tr(r):yC(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(qx(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Zt.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Tr(null)})))).pipe(B(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw aA(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ld(i=>e.svgText=i),B(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Tr(null):this._fetchIcon(e).pipe(Ld(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(xl(""));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(xl("")),r=e.attributes;for(let s=0;sxl(c)),function V3(n){return w((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}(()=>this._inProgressUrlFetches.delete(o)),su());return this._inProgressUrlFetches.set(o,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(dA(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),uA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Cz=uA.map(n=>`[${n}]`).join(", "),Ez=/^url\(['"]?#(.*?)['"]?\)$/;let Sz=(()=>{class n extends vz{get inline(){return this._inline}set inline(e){this._inline=dn(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,s,o,a){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ae.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(Cz),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const a=i[s],l=a.getAttribute(o),c=l?l.match(Ez):null;if(c){let f=r.get(a);f||(f=[],r.set(a,f)),f.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(zr(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(eu),vs("aria-hidden"),ge(yz),ge(_r),ge(bz,8))},n.\u0275cmp=Gn({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(mn("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),cn("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Mt],ngContentSelectors:fz,decls:1,vars:0,template:function(e,i){1&e&&(Di(),tn(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}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),n})(),hA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[En,En]}),n})(),xz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({imports:[QS,lx,wl,hx,$x,px,Sx,zx,hA,QS,lx,wl,hx,$x,px,Sx,zx,hA]}),n})(),Az=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n}),n.\u0275inj=zt({}),n})();var Mr=W(627),sr=W(16);function Gm(n,t,e){n[t]=e}function Al(){return typeof window>"u"}const Pz=["pdfViewerContainer"];Al()||Gm(Mr,"verbosity",Mr.VerbosityLevel.INFOS);var zi=(()=>((zi=zi||{})[zi.DISABLED=0]="DISABLED",zi[zi.ENABLED=1]="ENABLED",zi[zi.ENHANCED=2]="ENHANCED",zi))();let fA=(()=>{class n{set cMapsUrl(e){this._cMapsUrl=e}set page(e){const i=e=parseInt(e,10)||1;this._pdf&&(e=this.getValidPageNumber(e)),this._page=e,i!==e&&this.pageChange.emit(e)}set renderText(e){this._renderText=e}set renderTextMode(e){this._renderTextMode=e}set originalSize(e){this._originalSize=e}set showAll(e){this._showAll=e}set stickToPage(e){this._stickToPage=e}set zoom(e){e<=0||(this._zoom=e)}get zoom(){return this._zoom}set zoomScale(e){this._zoomScale=e}get zoomScale(){return this._zoomScale}set rotation(e){"number"==typeof e&&e%90==0?this._rotation=e:console.warn("Invalid pages rotation angle.")}set externalLinkTarget(e){this._externalLinkTarget=e}set autoresize(e){this._canAutoResize=!!e}set fitToPage(e){this._fitToPage=!!e}set showBorders(e){this._showBorders=!!e}static getLinkTarget(e){switch(e){case"blank":return sr.LinkTarget.BLANK;case"none":return sr.LinkTarget.NONE;case"self":return sr.LinkTarget.SELF;case"parent":return sr.LinkTarget.PARENT;case"top":return sr.LinkTarget.TOP}return null}constructor(e,i){if(this.element=e,this.ngZone=i,this.isVisible=!1,this._cMapsUrl=typeof Mr<"u"?`https://unpkg.com/pdfjs-dist@${Mr.version}/cmaps/`:null,this._imageResourcesPath=typeof Mr<"u"?`https://unpkg.com/pdfjs-dist@${Mr.version}/web/images/`:void 0,this._renderText=!0,this._renderTextMode=zi.ENABLED,this._stickToPage=!1,this._originalSize=!0,this._page=1,this._zoom=1,this._zoomScale="page-width",this._rotation=0,this._showAll=!0,this._canAutoResize=!0,this._fitToPage=!1,this._externalLinkTarget="blank",this._showBorders=!1,this.resizeTimeout=null,this.pageScrollTimeout=null,this.isInitialized=!1,this.destroy$=new F,this.afterLoadComplete=new Ot,this.pageRendered=new Ot,this.pageInitialized=new Ot,this.textLayerRendered=new Ot,this.onError=new Ot,this.onProgress=new Ot,this.pageChange=new Ot(!0),Al())return;let r;const s=Mr.version;r=window[`pdfWorkerSrc${s}`]||(window.hasOwnProperty("pdfWorkerSrc")&&"string"==typeof window.pdfWorkerSrc&&window.pdfWorkerSrc?window.pdfWorkerSrc:`https://cdn.jsdelivr.net/npm/pdfjs-dist@${s}/legacy/build/pdf.worker.min.js`),Gm(Mr.GlobalWorkerOptions,"workerSrc",r)}ngAfterViewChecked(){if(this.isInitialized)return;const e=this.pdfViewerContainer.nativeElement.offsetParent;!0!==this.isVisible||null!=e?!1===this.isVisible&&null!=e&&(this.isVisible=!0,setTimeout(()=>{this.initialize(),this.ngOnChanges({src:this.src})})):this.isVisible=!1}ngOnInit(){this.initialize(),this.setupResizeListener()}ngOnDestroy(){this.clear(),this.destroy$.next(),this.loadingTask=null}ngOnChanges(e){if(!Al()&&this.isVisible)if("src"in e)this.loadPDF();else if(this._pdf){if("renderText"in e?(this.pdfViewer.textLayerMode=this._renderText?this._renderTextMode:zi.DISABLED,this.resetPdfDocument()):"showAll"in e&&(this.setupViewer(),this.resetPdfDocument()),"page"in e){const{page:i}=e;if(i.currentValue===this._latestScrolledPage)return;this.pdfViewer.scrollPageIntoView({pageNumber:this._page})}this.update()}}updateSize(){qr(this._pdf.getPage(this.pdfViewer.currentPageNumber)).pipe(pt(this.destroy$)).subscribe({next:e=>{const i=this._rotation+e.rotate,r=e.getViewport({scale:this._zoom,rotation:i}).width*n.CSS_UNITS;let s=this._zoom,o=!0;if(!this._originalSize||this._fitToPage&&r>this.pdfViewerContainer.nativeElement.clientWidth){const a=e.getViewport({scale:1,rotation:i});s=this.getScale(a.width,a.height),o=!this._stickToPage}this.pdfViewer._setScale(s,o)}})}clear(){this.loadingTask&&!this.loadingTask.destroyed&&this.loadingTask.destroy(),this._pdf&&(this._latestScrolledPage=0,this._pdf.destroy(),this._pdf=void 0),this.pdfViewer&&this.pdfViewer.setDocument(null),this.pdfLinkService&&this.pdfLinkService.setDocument(null,null),this.pdfFindController&&this.pdfFindController.setDocument(null)}getPDFLinkServiceConfig(){const e=n.getLinkTarget(this._externalLinkTarget);return e?{externalLinkTarget:e}:{}}initEventBus(){this.eventBus=function Mz(n,t){const e=new n.EventBus;return function Dz(n,t){pn(n,"documentload").pipe(pt(t)).subscribe(()=>{const e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)}),pn(n,"pagerendered").pipe(pt(t)).subscribe(({pageNumber:e,cssTransform:i,source:r})=>{const s=document.createEvent("CustomEvent");s.initCustomEvent("pagerendered",!0,!0,{pageNumber:e,cssTransform:i}),r.div.dispatchEvent(s)}),pn(n,"textlayerrendered").pipe(pt(t)).subscribe(({pageNumber:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:e}),i.textLayerDiv.dispatchEvent(r)}),pn(n,"pagechanging").pipe(pt(t)).subscribe(({pageNumber:e,source:i})=>{const r=document.createEvent("UIEvents");r.initEvent("pagechanging",!0,!0),r.pageNumber=e,i.container.dispatchEvent(r)}),pn(n,"pagesinit").pipe(pt(t)).subscribe(({source:e})=>{const i=document.createEvent("CustomEvent");i.initCustomEvent("pagesinit",!0,!0,null),e.container.dispatchEvent(i)}),pn(n,"pagesloaded").pipe(pt(t)).subscribe(({pagesCount:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("pagesloaded",!0,!0,{pagesCount:e}),i.container.dispatchEvent(r)}),pn(n,"scalechange").pipe(pt(t)).subscribe(({scale:e,presetValue:i,source:r})=>{const s=document.createEvent("UIEvents");s.initEvent("scalechange",!0,!0),s.scale=e,s.presetValue=i,r.container.dispatchEvent(s)}),pn(n,"updateviewarea").pipe(pt(t)).subscribe(({location:e,source:i})=>{const r=document.createEvent("UIEvents");r.initEvent("updateviewarea",!0,!0),r.location=e,i.container.dispatchEvent(r)}),pn(n,"find").pipe(pt(t)).subscribe(({source:e,type:i,query:r,phraseSearch:s,caseSensitive:o,highlightAll:a,findPrevious:l})=>{if(e===window)return;const c=document.createEvent("CustomEvent");c.initCustomEvent("find"+i,!0,!0,{query:r,phraseSearch:s,caseSensitive:o,highlightAll:a,findPrevious:l}),window.dispatchEvent(c)}),pn(n,"attachmentsloaded").pipe(pt(t)).subscribe(({attachmentsCount:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:e}),i.container.dispatchEvent(r)}),pn(n,"sidebarviewchanged").pipe(pt(t)).subscribe(({view:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("sidebarviewchanged",!0,!0,{view:e}),i.outerContainer.dispatchEvent(r)}),pn(n,"pagemode").pipe(pt(t)).subscribe(({mode:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("pagemode",!0,!0,{mode:e}),i.pdfViewer.container.dispatchEvent(r)}),pn(n,"namedaction").pipe(pt(t)).subscribe(({action:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("namedaction",!0,!0,{action:e}),i.pdfViewer.container.dispatchEvent(r)}),pn(n,"presentationmodechanged").pipe(pt(t)).subscribe(({active:e,switchInProgress:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("presentationmodechanged",!0,!0,{active:e,switchInProgress:i}),window.dispatchEvent(r)}),pn(n,"outlineloaded").pipe(pt(t)).subscribe(({outlineCount:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e}),i.container.dispatchEvent(r)})}(e,t),e}(sr,this.destroy$),pn(this.eventBus,"pagerendered").pipe(pt(this.destroy$)).subscribe(e=>{this.pageRendered.emit(e)}),pn(this.eventBus,"pagesinit").pipe(pt(this.destroy$)).subscribe(e=>{this.pageInitialized.emit(e)}),pn(this.eventBus,"pagechanging").pipe(pt(this.destroy$)).subscribe(({pageNumber:e})=>{this.pageScrollTimeout&&clearTimeout(this.pageScrollTimeout),this.pageScrollTimeout=window.setTimeout(()=>{this._latestScrolledPage=e,this.pageChange.emit(e)},100)}),pn(this.eventBus,"textlayerrendered").pipe(pt(this.destroy$)).subscribe(e=>{this.textLayerRendered.emit(e)})}initPDFServices(){this.pdfLinkService=new sr.PDFLinkService({eventBus:this.eventBus,...this.getPDFLinkServiceConfig()}),this.pdfFindController=new sr.PDFFindController({eventBus:this.eventBus,linkService:this.pdfLinkService})}getPDFOptions(){return{eventBus:this.eventBus,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfLinkService,textLayerMode:this._renderText?this._renderTextMode:zi.DISABLED,findController:this.pdfFindController,l10n:new sr.GenericL10n("en"),imageResourcesPath:this._imageResourcesPath}}setupViewer(){Gm(Mr,"disableTextLayer",!this._renderText),this.initPDFServices(),this.pdfViewer=this._showAll?new sr.PDFViewer(this.getPDFOptions()):new sr.PDFSinglePageViewer(this.getPDFOptions()),this.pdfLinkService.setViewer(this.pdfViewer),this.pdfViewer._currentPageNumber=this._page}getValidPageNumber(e){return e<1?1:e>this._pdf.numPages?this._pdf.numPages:e}getDocumentParams(){const e=typeof this.src;if(!this._cMapsUrl)return this.src;const i={cMapUrl:this._cMapsUrl,cMapPacked:!0,enableXfa:!0};return"string"===e?i.url=this.src:"object"===e&&(void 0!==this.src.byteLength?i.data=this.src:Object.assign(i,this.src)),i}loadPDF(){if(!this.src)return;if(this.lastLoaded===this.src)return void this.update();this.clear(),this.setupViewer(),this.loadingTask=Mr.getDocument(this.getDocumentParams()),this.loadingTask.onProgress=i=>{this.onProgress.emit(i)};const e=this.src;qr(this.loadingTask.promise).pipe(pt(this.destroy$)).subscribe({next:i=>{this._pdf=i,this.lastLoaded=e,this.afterLoadComplete.emit(i),this.resetPdfDocument(),this.update()},error:i=>{this.lastLoaded=null,this.onError.emit(i)}})}update(){this.page=this._page,this.render()}render(){this._page=this.getValidPageNumber(this._page),(0!==this._rotation||this.pdfViewer.pagesRotation!==this._rotation)&&setTimeout(()=>{this.pdfViewer.pagesRotation=this._rotation}),this._stickToPage&&setTimeout(()=>{this.pdfViewer.currentPageNumber=this._page}),this.updateSize()}getScale(e,i){const r=this._showBorders?2*n.BORDER_WIDTH:0,s=this.pdfViewerContainer.nativeElement.clientWidth-r,o=this.pdfViewerContainer.nativeElement.clientHeight-r;if(0===o||0===i||0===s||0===e)return 1;let a=1;switch(this._zoomScale){case"page-fit":a=Math.min(o/i,s/e);break;case"page-height":a=o/i;break;default:a=s/e}return this._zoom*a/n.CSS_UNITS}resetPdfDocument(){this.pdfLinkService.setDocument(this._pdf,null),this.pdfFindController.setDocument(this._pdf),this.pdfViewer.setDocument(this._pdf)}initialize(){Al()||!this.isVisible||(this.isInitialized=!0,this.initEventBus(),this.setupViewer())}setupResizeListener(){Al()||this.ngZone.runOutsideAngular(()=>{pn(window,"resize").pipe(ml(100),bi(()=>this._canAutoResize&&!!this._pdf),pt(this.destroy$)).subscribe(()=>{this.updateSize()})})}}return n.CSS_UNITS=96/72,n.BORDER_WIDTH=9,n.\u0275fac=function(e){return new(e||n)(ge(Lt),ge(vt))},n.\u0275cmp=Gn({type:n,selectors:[["pdf-viewer"]],viewQuery:function(e,i){if(1&e&&$n(Pz,5),2&e){let r;nn(r=rn())&&(i.pdfViewerContainer=r.first)}},inputs:{src:"src",cMapsUrl:["c-maps-url","cMapsUrl"],page:"page",renderText:["render-text","renderText"],renderTextMode:["render-text-mode","renderTextMode"],originalSize:["original-size","originalSize"],showAll:["show-all","showAll"],stickToPage:["stick-to-page","stickToPage"],zoom:"zoom",zoomScale:["zoom-scale","zoomScale"],rotation:"rotation",externalLinkTarget:["external-link-target","externalLinkTarget"],autoresize:"autoresize",fitToPage:["fit-to-page","fitToPage"],showBorders:["show-borders","showBorders"]},outputs:{afterLoadComplete:"after-load-complete",pageRendered:"page-rendered",pageInitialized:"pages-initialized",textLayerRendered:"text-layer-rendered",onError:"error",onProgress:"on-progress",pageChange:"pageChange"},features:[fi],decls:3,vars:0,consts:[[1,"ng2-pdf-viewer-container"],["pdfViewerContainer",""],[1,"pdfViewer"]],template:function(e,i){1&e&&(Ye(0,"div",0,1),en(2,"div",2),Ze())},styles:['.ng2-pdf-viewer-container[_ngcontent-%COMP%]{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}[_nghost-%COMP%]{display:block;position:relative}[_nghost-%COMP%] {--pdfViewer-padding-bottom: 0;--page-margin: 1px auto -8px;--page-border: 9px solid transparent;--spreadHorizontalWrapped-margin-LR: -3.5px;--viewer-container-height: 0;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,");--xfa-unfocused-field-background: var( --annotation-unfocused-field-background );--page-border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAA1ElEQVQ4jbWUWw6EIAxFy2NFs/8NzR4UJhpqLsdi5mOmSSMUOfYWqv3S0gMr4XlYH/64gZa/gN3ANYA7KAXALt4ktoQ5MI9YxqaG8bWmsIysMuT6piSQCa4whZThCu8CM4zP9YJaKci9jicPq3NcBWYoPMGUlhG7ivtkB+gVyFY75wXghOvh8t5mto1Mdim6e+MBqH6XsY+YAwjpq3vGF7weTWQptLEDVCZvPTMl5JZZsdh47FHW6qFMyvLYqjcnmdFfY9Xk/KDOlzCusX2mi/ofM7MPkzBcSp4Q1/wAAAAASUVORK5CYII=) 9 9 repeat;--scale-factor: 1;--focus-outline: solid 2px blue;--hover-outline: dashed 2px blue;--freetext-line-height: 1.35;--freetext-padding: 2px;--editorInk-editing-cursor: pointer}@media screen and (forced-colors: active){[_nghost-%COMP%] {--pdfViewer-padding-bottom: 9px;--page-margin: 8px auto -1px;--page-border: 1px solid CanvasText;--page-border-image: none;--spreadHorizontalWrapped-margin-LR: 3.5px}}@media (forced-colors: active){[_nghost-%COMP%] {--focus-outline: solid 3px ButtonText;--hover-outline: dashed 3px ButtonText}}[_nghost-%COMP%] .textLayer{position:absolute;text-align:initial;inset:0;overflow:hidden;opacity:.2;line-height:1;-webkit-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none}[_nghost-%COMP%] .textLayer span, [_nghost-%COMP%] .textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}[_nghost-%COMP%] .textLayer span.markedContent{top:0;height:0}[_nghost-%COMP%] .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}[_nghost-%COMP%] .textLayer .highlight.appended{position:initial}[_nghost-%COMP%] .textLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .textLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .textLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .textLayer .highlight.selected{background-color:#006400}[_nghost-%COMP%] .textLayer ::selection{background:rgb(0,0,255)}[_nghost-%COMP%] .textLayer br::selection{background:transparent}[_nghost-%COMP%] .textLayer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .textLayer .endOfContent.active{top:0}@media (forced-colors: active){[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:required, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:required, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:required, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:required, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:required{outline:1.5px solid selectedItem}}[_nghost-%COMP%] .annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0}[_nghost-%COMP%] .annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;transform-origin:0 0}[_nghost-%COMP%] .annotationLayer .linkAnnotation>a, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>canvas{width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .linkAnnotation>a:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover{opacity:.2;background:rgb(255,255,0);box-shadow:0 2px 10px #ff0}[_nghost-%COMP%] .annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{background-image:var(--annotation-unfocused-field-background);border:1px solid transparent;box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:required, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:required, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:required, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:required, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:required{outline:1.5px solid red}[_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select option{padding:0}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea{resize:none}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input[disabled], [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea[disabled], [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:hover, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:hover, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid rgb(0,0,0)}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:focus, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:1px solid transparent}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input :focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea :focus, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select :focus, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox :focus, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent;outline:auto}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;appearance:none}[_nghost-%COMP%] .annotationLayer .popupTriggerArea{height:100%;width:100%}[_nghost-%COMP%] .annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}[_nghost-%COMP%] .annotationLayer .popup{position:absolute;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}[_nghost-%COMP%] .annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}[_nghost-%COMP%] .annotationLayer .popup h1{display:inline-block}[_nghost-%COMP%] .annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}[_nghost-%COMP%] .annotationLayer .popupContent{border-top:1px solid rgb(51,51,51);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}[_nghost-%COMP%] .annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}[_nghost-%COMP%] .annotationLayer .highlightAnnotation, [_nghost-%COMP%] .annotationLayer .underlineAnnotation, [_nghost-%COMP%] .annotationLayer .squigglyAnnotation, [_nghost-%COMP%] .annotationLayer .strikeoutAnnotation, [_nghost-%COMP%] .annotationLayer .freeTextAnnotation, [_nghost-%COMP%] .annotationLayer .lineAnnotation svg line, [_nghost-%COMP%] .annotationLayer .squareAnnotation svg rect, [_nghost-%COMP%] .annotationLayer .circleAnnotation svg ellipse, [_nghost-%COMP%] .annotationLayer .polylineAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .polygonAnnotation svg polygon, [_nghost-%COMP%] .annotationLayer .caretAnnotation, [_nghost-%COMP%] .annotationLayer .inkAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .stampAnnotation, [_nghost-%COMP%] .annotationLayer .fileAttachmentAnnotation{cursor:pointer}[_nghost-%COMP%] .annotationLayer section svg{position:absolute;width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}[_nghost-%COMP%] .annotationLayer .annotationTextContent span{width:100%;display:inline-block}@media (forced-colors: active){[_nghost-%COMP%] .xfaLayer *:required{outline:1.5px solid selectedItem}}[_nghost-%COMP%] .xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}[_nghost-%COMP%] .xfaLayer .highlight.appended{position:initial}[_nghost-%COMP%] .xfaLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .xfaLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .xfaLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .xfaLayer .highlight.selected{background-color:#cbdfcb}[_nghost-%COMP%] .xfaLayer ::selection{background:rgb(0,0,255)}[_nghost-%COMP%] .xfaPage{overflow:hidden;position:relative}[_nghost-%COMP%] .xfaContentarea{position:absolute}[_nghost-%COMP%] .xfaPrintOnly{display:none}[_nghost-%COMP%] .xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}[_nghost-%COMP%] .xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}[_nghost-%COMP%] .xfaLayer *:required{outline:1.5px solid red}[_nghost-%COMP%] .xfaLayer div{pointer-events:none}[_nghost-%COMP%] .xfaLayer svg{pointer-events:none}[_nghost-%COMP%] .xfaLayer svg *{pointer-events:none}[_nghost-%COMP%] .xfaLayer a{color:#00f}[_nghost-%COMP%] .xfaRich li{margin-left:3em}[_nghost-%COMP%] .xfaFont{color:#000;font-weight:400;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}[_nghost-%COMP%] .xfaCaption{overflow:hidden;flex:0 0 auto}[_nghost-%COMP%] .xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}[_nghost-%COMP%] .xfaLabel{height:100%;width:100%}[_nghost-%COMP%] .xfaLeft{display:flex;flex-direction:row;align-items:center}[_nghost-%COMP%] .xfaRight{display:flex;flex-direction:row-reverse;align-items:center}[_nghost-%COMP%] .xfaLeft>.xfaCaption, [_nghost-%COMP%] .xfaLeft>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaRight>.xfaCaption, [_nghost-%COMP%] .xfaRight>.xfaCaptionForCheckButton{max-height:100%}[_nghost-%COMP%] .xfaTop{display:flex;flex-direction:column;align-items:flex-start}[_nghost-%COMP%] .xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}[_nghost-%COMP%] .xfaTop>.xfaCaption, [_nghost-%COMP%] .xfaTop>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaBottom>.xfaCaption, [_nghost-%COMP%] .xfaBottom>.xfaCaptionForCheckButton{width:100%}[_nghost-%COMP%] .xfaBorder{background-color:transparent;position:absolute;pointer-events:none}[_nghost-%COMP%] .xfaWrapped{width:100%;height:100%}[_nghost-%COMP%] .xfaTextfield:focus, [_nghost-%COMP%] .xfaSelect:focus{background-image:none;background-color:transparent;outline:auto;outline-offset:-1px}[_nghost-%COMP%] .xfaCheckbox:focus, [_nghost-%COMP%] .xfaRadio:focus{outline:auto}[_nghost-%COMP%] .xfaTextfield, [_nghost-%COMP%] .xfaSelect{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}[_nghost-%COMP%] .xfaTop>.xfaTextfield, [_nghost-%COMP%] .xfaTop>.xfaSelect, [_nghost-%COMP%] .xfaBottom>.xfaTextfield, [_nghost-%COMP%] .xfaBottom>.xfaSelect{flex:0 1 auto}[_nghost-%COMP%] .xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}[_nghost-%COMP%] .xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}[_nghost-%COMP%] .xfaCheckbox, [_nghost-%COMP%] .xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}[_nghost-%COMP%] .xfaRich{white-space:pre-wrap;width:100%;height:100%}[_nghost-%COMP%] .xfaImage{object-position:left top;object-fit:contain;width:100%;height:100%}[_nghost-%COMP%] .xfaLrTb, [_nghost-%COMP%] .xfaRlTb, [_nghost-%COMP%] .xfaTb{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaLr{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}[_nghost-%COMP%] .xfaTb>div{justify-content:left}[_nghost-%COMP%] .xfaPosition{position:relative}[_nghost-%COMP%] .xfaArea{position:relative}[_nghost-%COMP%] .xfaValignMiddle{display:flex;align-items:center}[_nghost-%COMP%] .xfaTable{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}[_nghost-%COMP%] .xfaTable .xfaRlRow>div{flex:1}[_nghost-%COMP%] .xfaNonInteractive input, [_nghost-%COMP%] .xfaNonInteractive textarea, [_nghost-%COMP%] .xfaDisabled input, [_nghost-%COMP%] .xfaDisabled textarea, [_nghost-%COMP%] .xfaReadOnly input, [_nghost-%COMP%] .xfaReadOnly textarea{background:initial}@media print{[_nghost-%COMP%] .xfaTextfield, [_nghost-%COMP%] .xfaSelect{background:transparent}[_nghost-%COMP%] .xfaSelect{-webkit-appearance:none;appearance:none;text-indent:1px;text-overflow:""}}[_nghost-%COMP%] [data-editor-rotation="90"]{transform:rotate(90deg)}[_nghost-%COMP%] [data-editor-rotation="180"]{transform:rotate(180deg)}[_nghost-%COMP%] [data-editor-rotation="270"]{transform:rotate(270deg)}[_nghost-%COMP%] .annotationEditorLayer{background:transparent;position:absolute;top:0;left:0;font-size:calc(100px * var(--scale-factor));transform-origin:0 0}[_nghost-%COMP%] .annotationEditorLayer .selectedEditor{outline:var(--focus-outline);resize:none}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor{position:absolute;background:transparent;border-radius:3px;padding:calc(var(--freetext-padding) * var(--scale-factor));resize:none;width:auto;height:auto;z-index:1;transform-origin:0 0;touch-action:none}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor .internal{background:transparent;border:none;top:0;left:0;overflow:visible;white-space:nowrap;resize:none;font:10px sans-serif;line-height:var(--freetext-line-height)}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor .overlay{position:absolute;display:none;background:transparent;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor .overlay.enabled{display:block}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor .internal:empty:before{content:attr(default-content);color:gray}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor .internal:focus{outline:none}[_nghost-%COMP%] .annotationEditorLayer .inkEditor.disabled{resize:none}[_nghost-%COMP%] .annotationEditorLayer .inkEditor.disabled.selectedEditor{resize:horizontal}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor), [_nghost-%COMP%] .annotationEditorLayer .inkEditor:hover:not(.selectedEditor){outline:var(--hover-outline)}[_nghost-%COMP%] .annotationEditorLayer .inkEditor{position:absolute;background:transparent;border-radius:3px;overflow:auto;width:100%;height:100%;z-index:1;transform-origin:0 0;cursor:auto}[_nghost-%COMP%] .annotationEditorLayer .inkEditor.editing{resize:none;cursor:var(--editorInk-editing-cursor),pointer}[_nghost-%COMP%] .annotationEditorLayer .inkEditor .inkEditorCanvas{position:absolute;top:0;left:0;width:100%;height:100%;touch-action:none}[_nghost-%COMP%] [data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[_nghost-%COMP%] [data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[_nghost-%COMP%] [data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}[_nghost-%COMP%] .pdfViewer{padding-bottom:var(--pdfViewer-padding-bottom)}[_nghost-%COMP%] .pdfViewer .canvasWrapper{overflow:hidden}[_nghost-%COMP%] .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);border-image:var(--page-border-image);background-clip:content-box;background-color:#fff}[_nghost-%COMP%] .pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}[_nghost-%COMP%] .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}[_nghost-%COMP%] .pdfViewer.singlePageView{display:inline-block}[_nghost-%COMP%] .pdfViewer.singlePageView .page{margin:0;border:none}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .pdfViewer.scrollWrapped, [_nghost-%COMP%] .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .spread{white-space:nowrap}[_nghost-%COMP%] .pdfViewer.removePageBorders, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}[_nghost-%COMP%] .spread .page, [_nghost-%COMP%] .spread .dummyPage, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}[_nghost-%COMP%] .spread .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page{margin-left:var(--spreadHorizontalWrapped-margin-LR);margin-right:var(--spreadHorizontalWrapped-margin-LR)}[_nghost-%COMP%] .pdfViewer.removePageBorders .spread .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}[_nghost-%COMP%] .pdfViewer .page canvas{margin:0;display:block}[_nghost-%COMP%] .pdfViewer .page canvas[hidden]{display:none}[_nghost-%COMP%] .pdfViewer .page .loadingIcon{position:absolute;display:block;inset:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQQAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/ilPcHRpbWl6ZWQgd2l0aCBodHRwczovL2V6Z2lmLmNvbS9vcHRpbWl6ZQAh+QQJBwAQACwAAAAAGAAYAAAFmiAkjiTkOGVaBgjZNGSgkgKjjM8zLoI8iy+BKCdiCX8iBeMAhEEIPRXLxViYUE9CbCQoFAzFhHY3zkaT3oPvBz1zE4UBsr1eWZH4vAowOBwGAHk8AoQLfH6Agm0Ed3qOAXWOIgQKiWyFJQgDgJEpdG+WEACNEFNFmKVlVzJQk6qdkwqBoi1mebJ3ALNGeIZHtGSwNDS1RZKueCEAIfkECQcAEAAsAAAAABgAGAAABZcgJI4kpChlWgYCWRQkEKgjURgjw4zOg9CjVwuiEyEeO6CxkBC9nA+HiuUqLEyoBZI0Mx4SAFFgQCDZuguBoGv6Dtg0gvpqdhxQQDkBzuUr/4A1JwMKP39pc2mDhYCIc4GQYn6QCwCMeY91l0p6dBAEJ0OfcFRimZ91Mwt0alxxAIZyRmuAsKxDLKKvZbM1tJxmvGKRpn8hACH5BAkHABAALAAAAAAYABgAAAWhICSOJGQYZVoGAnkcJBKoI3EAY1GMCtPSosSBINKJBIwGkHdwBGGQA0OhYpEGQxNqkYzNIITBACEKKBaxxNfBeOCO4vMy0Hg8nDHFeCktkKtfNAtoS4UqAicKBj9zBAKPC4iKi4aRkISGmWWBmjUIAIyHkCUEAKCVo2WmREecVqoCgZhgP4NHrGWCj7e3szSpuxAsoVWxnp6cVV4kyZW+KSEAIfkECQcAEAAsAAAAABgAGAAABZkgJI4kBABlWgYEOQykEKgjMSDjcYxG0dKi108nEhQKQN4rCIMkCgbawjWYnSCLY2yGVSgEooBhWqsGGwxc0RtNBgoMhmJ1QgETjANYFeBKyUmBKQQIdT9JDmgPDQ6EhoKJD4sOgpWWgiwChyqEBH5hmptSoSOZgJ4kLKWkYTF7C2SaqaM/hEWygay4mYG8t6uffFuzl1iANCEAIfkECQcAEAAsAAAAABgAGAAABZ0gJI4khCBlmhKkopBCoI6LIozDMAIHO4uuBVBnOiR+I4FrCDwAZsKdQnaCLIwwmRUA8JmioprWUCjcwlwUMnAoG0qL03k2KCS8cC0UjOzDCQKBfHQFDAwFU4CCfgqFhy9+kZJWgzSKSAcPZn+BfQENDw8OljGWJAFeDoZPYTBnC1GdSXqnsoBolSulX2GyP6hgvnG0KrS3NJNhuSQhACH5BAkHABAALAAAAAAYABgAAAWaICSOJCQIZZoupGGQRKCOC0CMijIiwz2LABtQZxoMfjQhxAXszWQ7gOwECRhh0MCJJRJARTUoIHFAgbfI6uBwAJS01J/i4PClVYHvfV8lbLlIBmwFbQt+aGmChG18jXeGT4dICQxlb4g/AQUMDER9XjR6BAdiDQwINDBmkAsPDVh4cX4imw53iLKuaVqAcUsPqEiidkt6j4AzIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiREEGWaBiSCtCoZCMsIAKOg1LEo0KKbaKFQ9EYLoOkFuQlirNxzCQkUW9GZ0hQd4nyDAWr4G/esYSbyZFYZwu3jqiuvr8u8I2BwOAwASXh1e31/doeHC3klWnElfAlTd46MfQUGk2stCVEGBQWSdCciDg5VDAVYKoEiDQ0iBwxGcj9RDw8+qHIzebc2DJJQJK6qiKVyIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiS0LGWaBiRBtCoZCKgoCCMB1DF0sz6cCQDo5W62l28XAyZFpyECBv3lnCbhUqHMIo0Qg4Jbmn1jRCa4iV27TzfXGjEecOFWMN1OdvvfPGUuXSoKBw6EXokrAwcHRVU0UAeEBANAAAmUI1gNDyhjJgUHLW0iDg8FIqOnBQZrDA9TELE2rEYIDw4jta2LMpCrqld/YQpgIQAh+QQJBwAQACwAAAAAGAAYAAAFmyAkjiS0LGWaBiRBkKw6BgIqCsJcyyMe4yJajhcEml5H26o1PN2QQd3uFiv2AADlAgflIbDdZLgkABOJgep5LfWty4p4zeU+w+XsvJWXliEKDwdEBgMKYQ4PDw1qK3EDCCMAiQ5BCV0LCj+FSDQkgCgGBiYHAy2MIgoMghAHqw4HAGsNDEMFBTekdgwKI7aRB2MwkL2rVHoQoWchACH5BAkHABAALAAAAAAYABgAAAWWICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkfbqjU83ZBB3e4WK0qrCxyU55peid0qcUwuixyNx6PhILsAcAJazXYj4lvz2MkLiFsHDAlEcABKZwwMBX8pBgoKQxAIigpBA1sLBj+PSDQkB4uSACYDlTMyBgWDEKVnl2QFBUigN61gBQYjtLV5JZ4jtlR6omMhACH5BAkHABAALAAAAAAYABgAAAWaICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkdbidYanm7I4AjwYDh6saJuJ3JUG1mZi9srPA7EcRimJLrfJYWZUVC8TziXnEG3u/E+cIJaPAFrPQl1aQAIbRAGBZGHJQiMUQKRBkEKbQsAPZaEXQcslSYKmjMyAAdXj34ACkNEiUgDA5t+PAQHn6Ogjkuzry2DNwhuIQAh+QQFBwAQACwAAAAAGAAYAAAFnCAkjiS0LGVaBgBJEGSguo8zCsK4CPIsMg+ECCcKEH0ix6MwhJl4KiOp8UCdmrEbo6EoHpxF8A6aBBZ6vhf5dmAkkGr0CoWs21WGQ2FvsI9xC3l7B311fy93iWGKJQQOhHCAJQB6A3IqcWwJLU90i2FkUiMKlhBELEI6MwgDXRAGhQgAYD6tTqRFAJxpA6mvrqazSKJJhUWMpjlIIQA7) center no-repeat}[_nghost-%COMP%] .pdfViewer .page .loadingIcon.notVisible{background:none}[_nghost-%COMP%] .pdfViewer.enablePermissions .textLayer span{-webkit-user-select:none!important;user-select:none!important;cursor:not-allowed}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer{padding-bottom:0}[_nghost-%COMP%] .pdfPresentationMode .spread{margin:0}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}']}),n})();function Tz(n,t){if(1&n){const e=Ni();Ye(0,"button",39),Et("click",function(){return ti(e),Nt(),ni(xs(12).toggle())}),Ye(1,"mat-icon"),Ut(2,"menu"),Ze()()}}function Iz(n,t){1&n&&(Ye(0,"span",40),Ut(1,"Angular 5+ Component to render PDF"),Ze())}function Fz(n,t){1&n&&en(0,"iframe",41)}function kz(n,t){if(1&n&&(Ye(0,"div",42),Ut(1),function d0(n,t){const e=Gt();let i;const r=n+jt;e.firstCreatePass?(i=function uk(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=ms(i.type)),o=li(ge);try{const a=Ql(!1),l=s();return Ql(a),function GI(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,Ue(),r,l),l}finally{li(o)}}(2,"json"),Ze()),2&n){const e=Nt();tt(1),Br(" ",u0(2,1,e.error.message)," ")}}function Oz(n,t){if(1&n){const e=Ni();Ye(0,"mat-form-field",34)(1,"mat-label"),Ut(2,"Select an option"),Ze(),Ye(3,"mat-select",43),Et("valueChange",function(r){return ti(e),ni(Nt().zoomScale=r)}),Ye(4,"mat-option",44),Ut(5,"Page Width"),Ze(),Ye(6,"mat-option",45),Ut(7,"Page Height"),Ze(),Ye(8,"mat-option",46),Ut(9,"Page Fit"),Ze()()()}if(2&n){const e=Nt();tt(3),et("value",e.zoomScale)}}function Rz(n,t){if(1&n){const e=Ni();Oi(),Ki(),Ye(0,"div",14)(1,"mat-slide-toggle",15),Et("ngModelChange",function(r){return ti(e),ni(Nt().stickToPage=r)}),Ut(2," Stick to page "),Ze()()}if(2&n){const e=Nt();tt(1),et("ngModel",e.stickToPage)}}function Lz(n,t){if(1&n&&(Ye(0,"span"),Ut(1),Ze()),2&n){const e=Nt(2);tt(1),Br("of ",e.pdf.numPages,"")}}function Nz(n,t){if(1&n){const e=Ni();Oi(),Ki(),Ye(0,"div",14)(1,"button",18),Et("click",function(){return ti(e),ni(Nt().incrementPage(-1))}),Ut(2," Previous "),Ze(),Ye(3,"mat-form-field",23)(4,"input",47),Et("ngModelChange",function(r){return ti(e),ni(Nt().page=r)}),Ze(),Ye(5,"mat-error"),Ut(6,"Input is not a number!"),Ze()(),kt(7,Lz,2,1,"span",33),Ye(8,"button",18),Et("click",function(){return ti(e),ni(Nt().incrementPage(1))}),Ut(9," Next "),Ze()()}if(2&n){const e=Nt();tt(4),et("ngModel",e.page),tt(3),et("ngIf",e.pdf)}}function Vz(n,t){if(1&n){const e=Ni();Oi(),Ki(),Ye(0,"div",14)(1,"mat-slide-toggle",15),Et("ngModelChange",function(r){return ti(e),ni(Nt().isOutlineShown=r)}),Ut(2," Show outline "),Ze()()}if(2&n){const e=Nt();tt(1),et("ngModel",e.isOutlineShown)}}function Bz(n,t){if(1&n){const e=Ni();Ye(0,"ul")(1,"li")(2,"a",50),Et("click",function(){const s=ti(e).$implicit;return ni(Nt(3).navigateTo(s.dest))}),Ut(3),Ze()()()}if(2&n){const e=t.$implicit;tt(3),Br(" ",e.title," ")}}function Hz(n,t){if(1&n){const e=Ni();Ye(0,"ul",49)(1,"li")(2,"a",50),Et("click",function(){const s=ti(e).$implicit;return ni(Nt(2).navigateTo(s.dest))}),Ut(3),Ze(),kt(4,Bz,4,1,"ul",51),Ze()()}if(2&n){const e=t.$implicit;tt(3),Br(" ",e.title," "),tt(1),et("ngForOf",e.items)}}function jz(n,t){if(1&n&&(Oi(),Ki(),Ye(0,"div"),kt(1,Hz,5,2,"ul",48),Ze()),2&n){const e=Nt();tt(1),et("ngForOf",e.outline)}}function Uz(n,t){if(1&n&&(Ye(0,"div",52)(1,"div",53),en(2,"div",54),Ze(),Ye(3,"span"),Ut(4),Ze()()),2&n){const e=Nt();tt(2),Oo("width",e.progressData.loaded/e.progressData.total*100+"%"),tt(2),Br("",e.getInt(e.progressData.loaded/e.progressData.total*100),"%")}}let zz=(()=>{class n{constructor(){this.pdfSrc="./assets/pdf-test.pdf",this.page=1,this.rotation=0,this.zoom=1,this.zoomScale="page-width",this.originalSize=!1,this.renderText=!0,this.isLoaded=!1,this.stickToPage=!1,this.showAll=!0,this.autoresize=!0,this.fitToPage=!1,this.isOutlineShown=!1,this.pdfQuery="",this.mobile=!1}ngOnInit(){window.screen.width<=768&&(this.mobile=!0)}loadPdf(){const e=new XMLHttpRequest;e.open("GET","/assets/pdf-test.pdf",!0),e.responseType="blob",e.onload=i=>{if(console.log(e),200===e.status){const r=new Blob([e.response],{type:"application/pdf"});this.pdfSrc=URL.createObjectURL(r)}},e.send()}setCustomWorkerPath(){window.pdfWorkerSrc="/lib/pdfjs-dist/build/pdf.worker.js"}incrementPage(e){this.page+=e}incrementZoom(e){this.zoom+=e}rotate(e){this.rotation+=e}onFileSelected(){const e=document.querySelector("#file");if(typeof FileReader<"u"){const i=new FileReader;i.onload=r=>{this.pdfSrc=r.target.result},i.readAsArrayBuffer(e.files[0])}}afterLoadComplete(e){this.pdf=e,this.loadOutline()}loadOutline(){this.pdf.getOutline().then(e=>{this.outline=e})}onError(e){if(this.error=e,"PasswordException"===e.name){const i=prompt("This document is password protected. Enter the password:");i&&(this.error=null,this.setPassword(i))}}setPassword(e){let i;i=this.pdfSrc instanceof ArrayBuffer?{data:this.pdfSrc}:"string"==typeof this.pdfSrc?{url:this.pdfSrc}:{...this.pdfSrc},i.password=e,this.pdfSrc=i}onProgress(e){console.log(e),this.progressData=e,this.isLoaded=e.loaded>=e.total,this.error=null}getInt(e){return Math.round(e)}navigateTo(e){this.pdfComponent.pdfLinkService.goToDestination(e)}scrollToPage(){this.pdfComponent.pdfViewer.scrollPageIntoView({pageNumber:3})}pageRendered(e){console.log("(page-rendered)",e)}pageInitialized(e){console.log("(page-initialized)",e)}pageChange(e){console.log("(page-change)",e)}searchQueryChanged(e){const i=e!==this.pdfQuery?"":"again";this.pdfQuery=e,this.pdfComponent.eventBus.dispatch("find",{type:i,query:this.pdfQuery,highlightAll:!0,caseSensitive:!1,phraseSearch:!0})}onResize(e){this.mobile=e.target.innerWidth<=768}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Gn({type:n,selectors:[["pdf-viewer-app"]],viewQuery:function(e,i){if(1&e&&$n(fA,5),2&e){let r;nn(r=rn())&&(i.pdfComponent=r.first)}},hostBindings:function(e,i){1&e&&Et("resize",function(s){return i.onResize(s)},0,Tv)},decls:82,vars:40,consts:[["color","primary"],["class","toggle-menu","mat-raised-button","",3,"click",4,"ngIf"],["class","description hide-md",4,"ngIf"],[1,"spacer"],["src","https://ghbtns.com/github-btn.html?user=vadimdez&repo=ng2-pdf-viewer&type=star&count=true","frameborder","0","scrolling","0","width","170px","height","20px",4,"ngIf"],["href","https://github.com/vadimdez/ng2-pdf-viewer","mat-raised-button","",1,"button"],[1,"example-container"],[3,"mode","opened"],["drawer",""],[1,"mb","full-width"],["matInput","","type","text","placeholder","Set URL of the PDF file",3,"ngModel","ngModelChange"],[1,"select-file__container"],["type","file","id","file",3,"change"],["class","error mb",4,"ngIf"],[1,"mb"],[3,"ngModel","ngModelChange"],[1,"mb",3,"hidden"],["class","full-width",4,"ngIf"],["mat-button","","type","button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["cx","11","cy","11","r","8"],["x1","21","y1","21","x2","16.65","y2","16.65"],["x1","8","y1","11","x2","14","y2","11"],[1,"page-number"],["matInput","","type","number","placeholder","Zoom","pattern","-?[0-9]*(\\.[0-9]+)?",3,"ngModel","ngModelChange"],["x1","11","y1","8","x2","11","y2","14"],["class","mb",4,"ngIf"],["mat-button","","type","button","matTooltip","Rotate left",3,"matTooltipPosition","click"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","transform","scale(-1,1)"],["points","23 4 23 10 17 10"],["d","M20.49 15a9 9 0 1 1-2.12-9.36L23 10"],["matInput","","type","number","placeholder","Rotation","disabled","",3,"ngModel"],["mat-button","","type","button","matTooltip","Rotate right",3,"matTooltipPosition","click"],[4,"ngIf"],[1,"full-width"],["matInput","","id","pdfQueryInput","type","text","placeholder","Search...",3,"value","input","keyup.enter"],["queryInp",""],["id","progress",4,"ngIf"],[3,"src","page","rotation","original-size","show-all","fit-to-page","zoom","zoom-scale","stick-to-page","render-text","external-link-target","autoresize","show-borders","pageChange","after-load-complete","error","on-progress","page-rendered","pages-initialized"],["mat-raised-button","",1,"toggle-menu",3,"click"],[1,"description","hide-md"],["src","https://ghbtns.com/github-btn.html?user=vadimdez&repo=ng2-pdf-viewer&type=star&count=true","frameborder","0","scrolling","0","width","170px","height","20px"],[1,"error","mb"],[3,"value","valueChange"],["value","page-width"],["value","page-height"],["value","page-fit"],["matInput","","type","number","placeholder","Page","pattern","-?[0-9]*(\\.[0-9]+)?",3,"ngModel","ngModelChange"],["class","outline-list",4,"ngFor","ngForOf"],[1,"outline-list"],[3,"click"],[4,"ngFor","ngForOf"],["id","progress"],[1,"bg"],[1,"bar"]],template:function(e,i){if(1&e){const r=Ni();Ye(0,"mat-toolbar",0)(1,"mat-toolbar-row"),kt(2,Tz,3,0,"button",1),Ye(3,"span"),Ut(4,"ng2-pdf-viewer"),Ze(),kt(5,Iz,2,0,"span",2),en(6,"span",3),kt(7,Fz,1,0,"iframe",4),Ye(8,"a",5),Ut(9,"Get Started"),Ze()()(),Ye(10,"mat-drawer-container",6)(11,"mat-drawer",7,8)(13,"mat-form-field",9)(14,"mat-label"),Ut(15,"Set URL of the PDF file"),Ze(),Ye(16,"input",10),Et("ngModelChange",function(o){return i.pdfSrc=o}),Ze()(),Ye(17,"div",11)(18,"p"),Ut(19," Or render preview by just selecting PDF file (no upload required) "),Ze(),Ye(20,"input",12),Et("change",function(){return i.onFileSelected()}),Ze()(),kt(21,kz,3,3,"div",13),Ye(22,"div",14)(23,"mat-slide-toggle",15),Et("ngModelChange",function(o){return i.originalSize=o}),Ut(24," Original size "),Ze()(),Ye(25,"div",16)(26,"mat-slide-toggle",15),Et("ngModelChange",function(o){return i.fitToPage=o}),Ut(27," Fit to page "),Ze()(),Ye(28,"div",14)(29,"mat-slide-toggle",15),Et("ngModelChange",function(o){return i.renderText=o}),Ut(30," Render text layer "),Ze()(),Ye(31,"div",14)(32,"mat-slide-toggle",15),Et("ngModelChange",function(o){return i.autoresize=o}),Ut(33," Auto resize "),Ze()(),Ye(34,"div",14)(35,"mat-slide-toggle",15),Et("ngModelChange",function(o){return i.showAll=o}),Ut(36," Show all pages "),Ze()(),kt(37,Oz,10,1,"mat-form-field",17),Ye(38,"div",9)(39,"button",18),Et("click",function(){return i.incrementZoom(-.1)}),Oi(),Ye(40,"svg",19),en(41,"circle",20)(42,"line",21)(43,"line",22),Ze()(),Ki(),Ye(44,"mat-form-field",23)(45,"input",24),Et("ngModelChange",function(o){return i.zoom=o}),Ze(),Ye(46,"mat-error"),Ut(47,"Input is not a number!"),Ze()(),Ye(48,"button",18),Et("click",function(){return i.incrementZoom(.1)}),Oi(),Ye(49,"svg",19),en(50,"circle",20)(51,"line",21)(52,"line",25)(53,"line",22),Ze()()(),kt(54,Rz,3,1,"div",26),kt(55,Nz,10,2,"div",26),Ki(),Ye(56,"div",14)(57,"button",27),Et("click",function(){return i.rotate(-90)}),Oi(),Ye(58,"svg",28),en(59,"polyline",29)(60,"path",30),Ze()(),Ki(),Ye(61,"mat-form-field",23),en(62,"input",31),Ye(63,"mat-error"),Ut(64,"Input is not a number!"),Ze()(),Ye(65,"button",32),Et("click",function(){return i.rotate(90)}),Oi(),Ye(66,"svg",19),en(67,"polyline",29)(68,"path",30),Ze()()(),kt(69,Vz,3,1,"div",26),kt(70,jz,2,1,"div",33),Ki(),Ye(71,"div",14)(72,"mat-form-field",34)(73,"mat-label"),Ut(74,"Search"),Ze(),Ye(75,"input",35,36),Et("input",function(o){return i.searchQueryChanged(o.target.value)})("keyup.enter",function(){ti(r);const o=xs(76);return ni(i.searchQueryChanged(o.value))}),Ze(),Ye(77,"mat-hint"),Ut(78,"Search in entire pdf"),Ze()()(),kt(79,Uz,5,3,"div",37),Ze(),Ye(80,"mat-drawer-content")(81,"pdf-viewer",38),Et("pageChange",function(o){return i.page=o})("after-load-complete",function(o){return i.afterLoadComplete(o)})("error",function(o){return i.onError(o)})("on-progress",function(o){return i.onProgress(o)})("page-rendered",function(o){return i.pageRendered(o)})("pages-initialized",function(o){return i.pageInitialized(o)})("pageChange",function(o){return i.pageChange(o)}),Ze()()()}2&e&&(tt(2),et("ngIf",i.mobile),tt(1),sf("title ",i.mobile?"mob":"desk",""),tt(2),et("ngIf",!i.mobile),tt(2),et("ngIf",!i.mobile),tt(4),et("mode",i.mobile?"push":"side")("opened",!i.mobile),tt(5),et("ngModel",i.pdfSrc),tt(5),et("ngIf",i.error),tt(2),et("ngModel",i.originalSize),tt(2),et("hidden",!i.originalSize),tt(1),et("ngModel",i.fitToPage),tt(3),et("ngModel",i.renderText),tt(3),et("ngModel",i.autoresize),tt(3),et("ngModel",i.showAll),tt(2),et("ngIf",!i.originalSize),tt(8),et("ngModel",i.zoom),tt(9),et("ngIf",i.showAll),tt(1),et("ngIf",i.stickToPage&&i.showAll||!i.showAll),tt(2),et("matTooltipPosition","above"),tt(5),et("ngModel",i.rotation),tt(3),et("matTooltipPosition","above"),tt(4),et("ngIf",i.showAll),tt(1),et("ngIf",i.showAll&&i.isOutlineShown),tt(5),et("value",i.pdfQuery),tt(4),et("ngIf",!i.isLoaded&&!i.error&&i.progressData),tt(2),et("src",i.pdfSrc)("page",i.page)("rotation",i.rotation)("original-size",i.originalSize)("show-all",i.showAll)("fit-to-page",i.fitToPage)("zoom",i.zoom)("zoom-scale",i.zoomScale)("stick-to-page",i.stickToPage)("render-text",i.renderText)("external-link-target","blank")("autoresize",i.autoresize)("show-borders",!1))},dependencies:[Hw,Ka,dd,Op,qC,jp,kp,ij,nj,$j,Bj,Tm,Im,Tj,dx,L3,GS,sU,fx,Cx,Ex,Yd,p3,Sz,fA,$w],styles:["mat-toolbar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;z-index:100}.select-file__container[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:20px}.select-file__container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0}.page-number[_ngcontent-%COMP%]{width:80px}.mb[_ngcontent-%COMP%]{margin-bottom:15px}pdf-viewer[_ngcontent-%COMP%]{display:block}.error[_ngcontent-%COMP%]{color:#ff4146}#progress[_ngcontent-%COMP%]{margin-top:50px;width:100px;text-align:center;margin-left:auto;margin-right:auto}#progress[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%], #progress[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{height:20px}#progress[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{background-color:#e3e3e3}#progress[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{width:0;max-width:100%;background-color:#3f51b5;transition:.5s width}.outline-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer}.outline-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#ea1f62}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-drawer[_ngcontent-%COMP%]{width:320px;padding:12px}mat-drawer-container[_ngcontent-%COMP%]{position:absolute;inset:64px 0 0}pdf-viewer[_ngcontent-%COMP%]{height:100%}.title[_ngcontent-%COMP%]{width:284px;text-align:left}.title.mob[_ngcontent-%COMP%]{text-align:center}a.button[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly}.full-width[_ngcontent-%COMP%]{width:100%}"]}),n})(),Gz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$t({type:n,bootstrap:[zz]}),n.\u0275inj=zt({imports:[fC,E2,CB,xz,Az]}),n})();document.write('