diff --git a/server/src/uds/static/admin/main.js b/server/src/uds/static/admin/main.js index b49457e3..9a8e9cef 100644 --- a/server/src/uds/static/admin/main.js +++ b/server/src/uds/static/admin/main.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"1gqn":function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},KKCa:function(t,e){t.exports="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},MCLT:function(t,e,n){var i=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],n=0;n=a)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}})),u=r[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),f(n)?i.showHidden=n:n&&e._extend(i,n),g(i.showHidden)&&(i.showHidden=!1),g(i.depth)&&(i.depth=2),g(i.colors)&&(i.colors=!1),g(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=s),l(i,t,i.depth)}function s(t,e){var n=o.styles[e];return n?"\x1b["+o.colors[n][0]+"m"+t+"\x1b["+o.colors[n][1]+"m":t}function u(t,e){return t}function l(t,n,i){if(t.customInspect&&n&&w(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,t);return v(r)||(r=l(t,r,i)),r}var a=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(v(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return m(e)?t.stylize(""+e,"number"):f(e)?t.stylize(""+e,"boolean"):p(e)?t.stylize("null","null"):void 0}(t,n);if(a)return a;var o=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),k(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return c(n);if(0===o.length){if(w(n))return t.stylize("[Function"+(n.name?": "+n.name:"")+"]","special");if(y(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(b(n))return t.stylize(Date.prototype.toString.call(n),"date");if(k(n))return c(n)}var u,_="",C=!1,x=["{","}"];return d(n)&&(C=!0,x=["[","]"]),w(n)&&(_=" [Function"+(n.name?": "+n.name:"")+"]"),y(n)&&(_=" "+RegExp.prototype.toString.call(n)),b(n)&&(_=" "+Date.prototype.toUTCString.call(n)),k(n)&&(_=" "+c(n)),0!==o.length||C&&0!=n.length?i<0?y(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),u=C?function(t,e,n,i,r){for(var a=[],o=0,s=e.length;o60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(u,_,x)):x[0]+_+x[1]}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,i,r,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?s=t.stylize(u.set?"[Getter/Setter]":"[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),D(i,r)||(o="["+r+"]"),s||(t.seen.indexOf(u.value)<0?(s=p(n)?l(t,u.value,null):l(t,u.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),g(o)){if(a&&r.match(/^\d+$/))return s;(o=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function d(t){return Array.isArray(t)}function f(t){return"boolean"==typeof t}function p(t){return null===t}function m(t){return"number"==typeof t}function v(t){return"string"==typeof t}function g(t){return void 0===t}function y(t){return _(t)&&"[object RegExp]"===C(t)}function _(t){return"object"==typeof t&&null!==t}function b(t){return _(t)&&"[object Date]"===C(t)}function k(t){return _(t)&&("[object Error]"===C(t)||t instanceof Error)}function w(t){return"function"==typeof t}function C(t){return Object.prototype.toString.call(t)}function x(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(g(r)&&(r=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!a[t])if(new RegExp("\\b"+t+"\\b","i").test(r)){var n=process.pid;a[t]=function(){var i=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,i)}}else a[t]=function(){};return a[t]},e.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=f,e.isNull=p,e.isNullOrUndefined=function(t){return null==t},e.isNumber=m,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=g,e.isRegExp=y,e.isObject=_,e.isDate=b,e.isError=k,e.isFunction=w,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n("1gqn");var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(){var t=new Date,e=[x(t.getHours()),x(t.getMinutes()),x(t.getSeconds())].join(":");return[t.getDate(),S[t.getMonth()],e].join(" ")}function D(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",E(),e.format.apply(e,arguments))},e.inherits=n("KKCa"),e._extend=function(t,e){if(!e||!_(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t}},crnd:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},dunZ:function(t,e,n){var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:this;function r(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){s(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function a(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(n){}return e.status>=200&&e.status<=299}function o(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype?function(t,e,n){var s=i.URL||i.webkitURL,u=document.createElement("a");u.download=e=e||t.name||"download",u.rel="noopener","string"==typeof t?(u.href=t,u.origin!==location.origin?a(u.href)?r(t,e,n):o(u,u.target="_blank"):o(u)):(u.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){o(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(a(t))r(t,e,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout((function(){o(i)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var o="application/octet-stream"===t.type,s=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||o&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},l.readAsDataURL(t)}else{var c=i.URL||i.webkitURL,h=c.createObjectURL(t);a?a.location=h:location.href=h,a=null,setTimeout((function(){c.revokeObjectURL(h)}),4e4)}});i.saveAs=s.saveAs=s,t.exports=s},zUnb:function(t,e,n){"use strict";function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t,e,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}(t,e);if(r){var a=Object.getOwnPropertyDescriptor(r,e);return a.get?a.get.call(n):a.value}})(t,e,n||t)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}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 i,r,a=!0,o=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?a(t):e}function g(t){var e=p();return function(){var n,r=i(t);if(e){var a=i(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v(this,n)}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(i){return i.pipe(ot((function(n,i){return nt(t(n,i)).pipe(G((function(t,r){return e(n,t,i,r)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new st(t,n))})}var st=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;y(this,t),this.project=e,this.concurrent=n}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new ut(t,this.project,this.concurrent))}}]),t}(),ut=function(t){f(n,t);var e=g(n);function n(t,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return y(this,n),(r=e.call(this,t)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return b(n,[{key:"_next",value:function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(rt);function lt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return ot(L,t)}function ct(t,e){return e?et(t,e):new V(Z(t))}function ht(){for(var t=Number.POSITIVE_INFINITY,e=null,n=arguments.length,i=new Array(n),r=0;r1&&"number"==typeof i[i.length-1]&&(t=i.pop())):"number"==typeof a&&(t=i.pop()),null===e&&1===i.length&&i[0]instanceof V?i[0]:lt(t)(ct(i,e))}function dt(){return function(t){return t.lift(new ft(t))}}var ft=function(){function t(e){y(this,t),this.connectable=e}return b(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var i=new pt(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),t}(),pt=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).connectable=i,r}return b(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(M),mt=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this)).source=t,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return b(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new E).add(this.source.subscribe(new gt(this.getSubject(),this))),t.closed&&(this._connection=null,t=E.EMPTY)),t}},{key:"refCount",value:function(){return dt()(this)}}]),n}(V),vt=function(){var t=mt.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}}}(),gt=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).connectable=i,r}return b(n,[{key:"_error",value:function(t){this._unsubscribe(),r(i(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),r(i(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),n}(H);function yt(){return new U}function _t(t){return{toString:t}.toString()}var bt="__parameters__";function kt(t,e,n){return _t((function(){var i=function(t){return function(){if(t){var e=t.apply(void 0,arguments);for(var n in e)this[n]=e[n]}}}(e);function r(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:Et.Default;if(void 0===le)throw new Error("inject() must be called from an injection context");return null===le?me(t,void 0,e):le.get(t,e&Et.Optional?null:void 0,e)}function fe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et.Default;return(qt||de)(Ut(t),e)}var pe=fe;function me(t,e,n){var i=Tt(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&Et.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND [".concat(Bt(t),"]"))}function ve(t){for(var e=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:oe;if(e===oe){var n=new Error("NullInjectorError: No provider for ".concat(Bt(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}();function ye(t,e,n,i){var r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=Bt(e);if(Array.isArray(e))r=e.map(Bt).join(" -> ");else if("object"==typeof e){var a=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):Bt(s)))}r="{".concat(a.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(t.replace(se,"\n "))}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}var _e=function t(){y(this,t)},be=function t(){y(this,t)};function ke(t,e){t.forEach((function(t){return Array.isArray(t)?ke(t,e):e(t)}))}function we(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ce(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function xe(t,e){for(var n=[],i=0;i=0?t[1|i]=n:function(t,e,n,i){var r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i=~i,e,n),i}function Ee(t,e){var n=De(t,e);if(n>=0)return t[1|n]}function De(t,e){return function(t,e,n){for(var i=0,r=t.length>>1;r!==i;){var a=i+(r-i>>1),o=t[a<<1];if(e===o)return a<<1;o>e?r=a:i=a+1}return~(r<<1)}(t,e)}var Ae=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Ie=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Oe={},Te=[],Re=0;function Me(t){return _t((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===Ae.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Te,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ie.Emulated,id:"c",styles:t.styles||Te,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,a=t.pipes;return n.id+=Re++,n.inputs=Ve(t.inputs,e),n.outputs=Ve(t.outputs),r&&r.forEach((function(t){return t(n)})),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(Pe)}:null,n.pipeDefs=a?function(){return("function"==typeof a?a():a).map(Fe)}:null,n}))}function Pe(t){return ze(t)||function(t){return t[Qt]||null}(t)}function Fe(t){return function(t){return t[Jt]||null}(t)}var Le={};function Ne(t){var e={type:t.type,bootstrap:t.bootstrap||Te,declarations:t.declarations||Te,imports:t.imports||Te,exports:t.exports||Te,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&_t((function(){Le[t.id]=t.type})),e}function Ve(t,e){if(null==t)return Oe;var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,e&&(e[r]=a)}return n}var Be=Me;function je(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ze(t){return t[Xt]||null}function He(t,e){return t.hasOwnProperty(ne)?t[ne]:null}function Ue(t,e){var n=t[te]||null;if(!n&&!0===e)throw new Error("Type ".concat(Bt(t)," does not have '\u0275mod' property."));return n}function We(t){return Array.isArray(t)&&"object"==typeof t[1]}function qe(t){return Array.isArray(t)&&!0===t[1]}function Ge(t){return 0!=(8&t.flags)}function Ye(t){return 2==(2&t.flags)}function Ke(t){return 1==(1&t.flags)}function Ze(t){return null!==t.template}function $e(t){return 0!=(512&t[2])}var Xe=function(){function t(e,n,i){y(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=i}return b(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function Qe(){return Je}function Je(t){return t.type.prototype.ngOnChanges&&(t.setInput=en),tn}function tn(){var t=nn(this),e=null==t?void 0:t.current;if(e){var n=t.previous;if(n===Oe)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}}function en(t,e,n,i){var r=nn(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Oe,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[n],u=o[s];a[s]=new Xe(u&&u.currentValue,e,o===Oe),t[i]=e}function nn(t){return t.__ngSimpleChanges__||null}Qe.ngInherit=!0;var rn=void 0;function an(){return void 0!==rn?rn:"undefined"!=typeof document?document:void 0}function on(t){return!!t.listen}var sn={createRenderer:function(t,e){return an()}};function un(t){for(;Array.isArray(t);)t=t[0];return t}function ln(t,e){return un(e[t+20])}function cn(t,e){return un(e[t.index])}function hn(t,e){return t.data[e+20]}function dn(t,e){return t[e+20]}function fn(t,e){var n=e[t];return We(n)?n:n[0]}function pn(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function mn(t){return 4==(4&t[2])}function vn(t){return 128==(128&t[2])}function gn(t,e){return null===t||null==e?null:t[e]}function yn(t){t[18]=0}function _n(t,e){t[5]+=e;for(var n=t,i=t[3];null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}var bn={lFrame:Un(null),bindingsEnabled:!0,checkNoChangesMode:!1};function kn(){return bn.bindingsEnabled}function wn(){return bn.lFrame.lView}function Cn(){return bn.lFrame.tView}function xn(t){bn.lFrame.contextLView=t}function Sn(){return bn.lFrame.previousOrParentTNode}function En(t,e){bn.lFrame.previousOrParentTNode=t,bn.lFrame.isParent=e}function Dn(){return bn.lFrame.isParent}function An(){bn.lFrame.isParent=!1}function In(){return bn.checkNoChangesMode}function On(t){bn.checkNoChangesMode=t}function Tn(){var t=bn.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Rn(){return bn.lFrame.bindingIndex}function Mn(){return bn.lFrame.bindingIndex++}function Pn(t){var e=bn.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Fn(t,e){var n=bn.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ln(e)}function Ln(t){bn.lFrame.currentDirectiveIndex=t}function Nn(t){var e=bn.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Vn(){return bn.lFrame.currentQueryIndex}function Bn(t){bn.lFrame.currentQueryIndex=t}function jn(t,e){var n=Hn();bn.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function zn(t,e){var n=Hn(),i=t[1];bn.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function Hn(){var t=bn.lFrame,e=null===t?null:t.child;return null===e?Un(t):e}function Un(t){var e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Wn(){var t=bn.lFrame;return bn.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}var qn=Wn;function Gn(){var t=Wn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Yn(t){return(bn.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,bn.lFrame.contextLView))[8]}function Kn(){return bn.lFrame.selectedIndex}function Zn(t){bn.lFrame.selectedIndex=t}function $n(){var t=bn.lFrame;return hn(t.tView,t.selectedIndex)}function Xn(){bn.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Qn(){bn.lFrame.currentNamespace=null}function Jn(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[o]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e&&(t[2]+=2048,a.call(o)):a.call(o)}var ai=function t(e,n,i){y(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function oi(t,e,n){for(var i=on(t),r=0;re){o=a-1;break}}}for(;a>16}function pi(t,e){for(var n=fi(t),i=e;n>0;)i=i[15],n--;return i}function mi(t){return"string"==typeof t?t:null==t?"":""+t}function vi(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():mi(t)}var gi=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind($t)}();function yi(t){return{name:"body",target:t.ownerDocument.body}}function _i(t){return t instanceof Function?t():t}var bi=!0;function ki(t){var e=bi;return bi=t,e}var wi=0;function Ci(t,e){var n=Si(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,xi(i.data,t),xi(e,null),xi(i.blueprint,null));var r=Ei(t,e),a=t.injectorIndex;if(hi(r))for(var o=di(r),s=pi(r,e),u=s[1].data,l=0;l<8;l++)e[a+l]=s[o+l]|u[o+l];return e[a+8]=r,a}function xi(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Si(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Ei(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[6],i=1;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function Di(t,e,n){!function(t,e,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ie)&&(i=n[ie]),null==i&&(i=n[ie]=wi++);var r=255&i,a=1<3&&void 0!==arguments[3]?arguments[3]:Et.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var a=Mi(n);if("function"==typeof a){jn(e,t);try{var o=a();if(null!=o||i&Et.Optional)return o;throw new Error("No provider for ".concat(vi(n),"!"))}finally{qn()}}else if("number"==typeof a){if(-1===a)return new Li(t,e);var s=null,u=Si(t,e),l=-1,c=i&Et.Host?e[16][6]:null;for((-1===u||i&Et.SkipSelf)&&(l=-1===u?Ei(t,e):e[u+8],Fi(i,!1)?(s=e[1],u=di(l),e=pi(l,e)):u=-1);-1!==u;){l=e[u+8];var h=e[1];if(Pi(a,u,h.data)){var d=Oi(u,e,n,s,i,c);if(d!==Ii)return d}Fi(i,e[1].data[u+8]===c)&&Pi(a,u,e)?(s=h,u=di(l),e=pi(l,e)):u=-1}}}if(i&Et.Optional&&void 0===r&&(r=null),0==(i&(Et.Self|Et.Host))){var f=e[9],p=he(void 0);try{return f?f.get(n,r,i&Et.Optional):me(n,r,i&Et.Optional)}finally{he(p)}}if(i&Et.Optional)return r;throw new Error("NodeInjector: NOT_FOUND [".concat(vi(n),"]"))}var Ii={};function Oi(t,e,n,i,r,a){var o=e[1],s=o.data[t+8],u=Ti(s,o,n,null==i?Ye(s)&&bi:i!=o&&3===s.type,r&Et.Host&&a===s);return null!==u?Ri(e,o,u,s):Ii}function Ti(t,e,n,i,r){for(var a=t.providerIndexes,o=e.data,s=1048575&a,u=t.directiveStart,l=a>>20,c=r?s+l:t.directiveEnd,h=i?s:s+l;h=u&&d.type===n)return h}if(r){var f=o[u];if(f&&Ze(f)&&f.type===n)return u}return null}function Ri(t,e,n,i){var r=t[n],a=e.data;if(r instanceof ai){var o=r;if(o.resolving)throw new Error("Circular dep for ".concat(vi(a[n])));var s,u=ki(o.canSeeViewProviders);o.resolving=!0,o.injectImpl&&(s=he(o.injectImpl)),jn(t,i);try{r=t[n]=o.factory(void 0,a,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.type.prototype,r=i.ngOnInit,a=i.ngDoCheck;if(i.ngOnChanges){var o=Je(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,a[n],e)}finally{o.injectImpl&&he(s),ki(u),o.resolving=!1,qn()}}return r}function Mi(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(ie)?t[ie]:void 0;return"number"==typeof e&&e>0?255&e:e}function Pi(t,e,n){var i=64&t,r=32&t;return!!((128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e])&1<1?e-1:0),i=1;i";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}}}]),t}(),nr=function(){function t(e){if(y(this,t),this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return b(t,[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;var n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();fr.hasOwnProperty(e)&&!lr.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(kr(t))}},{key:"checkClobberedElement",value:function(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: ".concat(t.outerHTML));return e}}]),t}(),_r=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,br=/([^\#-~ |!])/g;function kr(t){return t.replace(/&/g,"&").replace(_r,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(br,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}function wr(t,e){var n=null;try{ur=ur||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new er:new nr(t)}(t);var i=e?String(e):"";n=ur.getInertBodyElement(i);var r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=ur.getInertBodyElement(i)}while(i!==a);var o=new yr,s=o.sanitizeChildren(Cr(n)||n);return tr()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=Cr(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function Cr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var xr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Sr(t){var e=Dr();return e?e.sanitize(xr.HTML,t)||"":$i(t,"HTML")?Zi(t):wr(an(),mi(t))}function Er(t){var e=Dr();return e?e.sanitize(xr.URL,t)||"":$i(t,"URL")?Zi(t):ar(mi(t))}function Dr(){var t=wn();return t&&t[12]}function Ar(t,e){t.__ngContext__=e}function Ir(t){throw new Error("Multiple components match node with tagname ".concat(t.tagName))}function Or(){throw new Error("Cannot mix multi providers and regular providers")}function Tr(t,e,n){for(var i=t.length;;){var r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){var a=e.length;if(r+a===i||t.charCodeAt(r+a)<=32)return r}n=r+1}}function Rr(t,e,n){for(var i=0;ia?"":r[c+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==Tr(d,l,0)||2&i&&l!==h){if(Lr(i))return!1;o=!0}}}}else{if(!o&&!Lr(i)&&!Lr(u))return!1;if(o&&Lr(u))continue;o=!1,i=u|1&i}}return Lr(i)||o}function Lr(t){return 0==(1&t)}function Nr(t,e,n,i){if(null===e)return-1;var r=0;if(i||!n){for(var a=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||Lr(o)||(e+=jr(a,r),r=""),i=o,a=a||!Lr(i);n++}return""!==r&&(e+=jr(a,r)),e}var Hr={};function Ur(t){var e=t[3];return qe(e)?e[3]:e}function Wr(t){return Gr(t[13])}function qr(t){return Gr(t[4])}function Gr(t){for(;null!==t&&!qe(t);)t=t[4];return t}function Yr(t){Kr(Cn(),wn(),Kn()+t,In())}function Kr(t,e,n,i){if(!i)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&ti(e,r,n)}else{var a=t.preOrderHooks;null!==a&&ei(e,a,0,n)}Zn(n)}function Zr(t,e){return t<<17|e<<2}function $r(t){return t>>17&32767}function Xr(t){return 2|t}function Qr(t){return(131068&t)>>2}function Jr(t,e){return-131069&t|e<<2}function ta(t){return 1|t}function ea(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;i20&&Kr(t,e,0,In()),n(i,r)}finally{Zn(a)}}function la(t,e,n){if(Ge(e))for(var i=e.directiveEnd,r=e.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:cn,i=e.localNames;if(null!==i)for(var r=e.index+1,a=0;a0&&function t(e){for(var n=Wr(e);null!==n;n=qr(n))for(var i=10;i0&&t(r)}var o=e[1].components;if(null!==o)for(var s=0;s0&&t(u)}}(n)}}function Ra(t,e){var n=fn(e,t),i=n[1];!function(t,e){for(var n=e.length;n0&&(t[n-1][4]=i[4]);var a=Ce(t,10+e);Ka(i[1],i,!1,null);var o=a[19];null!==o&&o.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Xa(t,e){if(!(256&e[2])){var n=e[11];on(n)&&n.destroyNode&&lo(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Ja(t[1],t);for(;e;){var n=null;if(We(e))n=e[13];else{var i=e[10];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)We(e)&&Ja(e[1],e),e=Qa(e,t);null===e&&(e=t),We(e)&&Ja(e[1],e),n=e&&e[4]}e=n}}(e)}}function Qa(t,e){var n;return We(t)&&(n=t[6])&&2===n.type?Wa(n,t):t[3]===e?null:t[3]}function Ja(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var i=0;i=0?i[s]():i[-s].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);e[7]=null}}(t,e);var n=e[6];n&&3===n.type&&on(e[11])&&e[11].destroy();var i=e[17];if(null!==i&&qe(e[3])){i!==e[3]&&Za(i,e);var r=e[19];null!==r&&r.detachView(t)}}}function to(t,e,n){for(var i=e.parent;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){var r=n[6];return 2===r.type?qa(r,n):n[0]}if(e&&5===e.type&&4&e.flags)return cn(e,n).parentNode;if(2&i.flags){var a=t.data,o=a[a[i.index].directiveStart].encapsulation;if(o!==Ie.ShadowDom&&o!==Ie.Native)return null}return cn(i,n)}function eo(t,e,n,i){on(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function no(t,e,n){on(t)?t.appendChild(e,n):e.appendChild(n)}function io(t,e,n,i){null!==i?eo(t,e,n,i):no(t,e,n)}function ro(t,e){return on(t)?t.parentNode(e):e.parentNode}function ao(t,e){if(2===t.type){var n=Wa(t,e);return null===n?null:so(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?cn(t,e):null}function oo(t,e,n,i){var r=to(t,i,e);if(null!=r){var a=e[11],o=ao(i.parent||e[6],e);if(Array.isArray(n))for(var s=0;s-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Xa(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){pa(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){Pa(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Fa(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){On(!0);try{Fa(t,e,n)}finally{On(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,lo(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}},{key:"rootNodes",get:function(){var t=this._lView;return null==t[0]?function t(e,n,i,r){for(var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==i;){var o=n[i.index];if(null!==o&&r.push(un(o)),qe(o))for(var s=10;s0;)this.remove(this.length-1)}},{key:"get",value:function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}},{key:"createEmbeddedView",value:function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i}},{key:"createComponent",value:function(t,e,n,i,r){var a=n||this.parentInjector;if(!r&&null==t.ngModule&&a){var o=a.get(_e,null);o&&(r=o)}var s=t.create(a,i,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),qe(n[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var a=n[3],o=new go(a,a[6],a[3]);o.detach(o.indexOf(t))}}var s=this._adjustIndex(e);return function(t,e,n,i){var r=10+i,a=n.length;i>0&&(n[r-1][4]=e),i1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return bo(e,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Li(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var t=Ei(this._hostTNode,this._hostView),e=pi(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var i=n.parent.injectorIndex,r=n.parent;null!=r.parent&&i==r.parent.injectorIndex;)r=r.parent;return r}for(var a=fi(t),o=e,s=e[6];a>1;)s=(o=o[15])[6],a--;return s}(t,this._hostView,this._hostTNode);return hi(t)&&null!=n?new Li(n,e):new Li(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),i}(t));var a=i[n.index];if(qe(a))r=a;else{var o;if(4===n.type)o=un(a);else if(o=i[11].createComment(""),$e(i)){var s=i[11],u=cn(n,i);eo(s,ro(s,u),o,function(t,e){return on(t)?t.nextSibling(e):e.nextSibling}(s,u))}else oo(i[1],i,o,n);i[n.index]=r=Oa(a,i,o,n),Ma(i,r)}return new go(r,n,i)}function Co(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return xo(Sn(),wn(),t)}function xo(t,e,n){if(!n&&Ye(t)){var i=fn(t.index,e);return new yo(i,i)}return 3===t.type||0===t.type||4===t.type||5===t.type?new yo(e[16],e):null}var So=function(){var t=function t(){y(this,t)};return t.__NG_ELEMENT_ID__=function(){return Eo()},t}(),Eo=Co,Do=Function,Ao=new re("Set Injector scope."),Io={},Oo={},To=[],Ro=void 0;function Mo(){return void 0===Ro&&(Ro=new ge),Ro}function Po(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Fo(t,n,e||Mo(),i)}var Fo=function(){function t(e,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;y(this,t),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&ke(n,(function(t){return r.processProvider(t,e,n)})),ke([e],(function(t){return r.processInjectorType(t,[],o)})),this.records.set(ae,Vo(void 0,this));var s=this.records.get(Ao);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof e?null:Bt(e))}return b(t,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(t){return t.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et.Default;this.assertNotDestroyed();var i=ce(this);try{if(!(n&Et.SkipSelf)){var r=this.records.get(t);if(void 0===r){var a=zo(t)&&Tt(t);r=a&&this.injectableDefInScope(a)?Vo(Lo(t),Io):null,this.records.set(t,r)}if(null!=r)return this.hydrate(t,r)}var o=n&Et.Self?Mo():this.parent;return o.get(t,e=n&Et.Optional&&e===oe?null:e)}catch(u){if("NullInjectorError"===u.name){var s=u.ngTempTokenPath=u.ngTempTokenPath||[];if(s.unshift(Bt(t)),i)throw u;return ye(u,t,"R3InjectorError",this.source)}throw u}finally{ce(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach((function(e){return t.get(e)}))}},{key:"toString",value:function(){var t=[];return this.records.forEach((function(e,n){return t.push(Bt(n))})),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var i=this;if(!(t=Ut(t)))return!1;var r=Mt(t),a=null==r&&t.ngModule||void 0,o=void 0===a?t:a,s=-1!==n.indexOf(o);if(void 0!==a&&(r=Mt(a)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(o);try{ke(r.imports,(function(t){i.processInjectorType(t,e,n)&&(void 0===u&&(u=[]),u.push(t))}))}finally{}if(void 0!==u)for(var l=function(t){var e=u[t],n=e.ngModule,r=e.providers;ke(r,(function(t){return i.processProvider(t,n,r||To)}))},c=0;c0){var n=xe(e,"?");throw new Error("Can't resolve all parameters for ".concat(Bt(t),": (").concat(n.join(", "),")."))}var i=function(t){var e=t&&(t[Pt]||t[Nt]||t[Lt]&&t[Lt]());if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" 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(n,'" class.')),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function No(t,e,n){var i,r=void 0;if(jo(t)){var a=Ut(t);return He(a)||Lo(a)}if(Bo(t))r=function(){return Ut(t.useValue)};else if((i=t)&&i.useFactory)r=function(){return t.useFactory.apply(t,l(ve(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return fe(Ut(t.useExisting))};else{var o=Ut(t&&(t.useClass||t.provide));if(o||function(t,e,n){var i="";if(t&&e){var r=e.map((function(t){return t==n?"?"+n+"?":"..."}));i=" - only instances of Provider and Type are allowed, got: [".concat(r.join(", "),"]")}throw new Error("Invalid provider for the NgModule '".concat(Bt(t),"'")+i)}(e,n,t),!function(t){return!!t.deps}(t))return He(o)||Lo(o);r=function(){return k(o,l(ve(t.deps)))}}return r}function Vo(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function Bo(t){return null!==t&&"object"==typeof t&&ue in t}function jo(t){return"function"==typeof t}function zo(t){return"function"==typeof t||"object"==typeof t&&t instanceof re}var Ho=function(t,e,n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Po(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)},Uo=function(){var t=function(){function t(){y(this,t)}return b(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?Ho(t,e,""):Ho(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=oe,t.NULL=new ge,t.\u0275prov=It({token:t,providedIn:"any",factory:function(){return fe(ae)}}),t.__NG_ELEMENT_ID__=-1,t}(),Wo=new re("AnalyzeForEntryComponents");function qo(t,e,n){var i=n?t.styles:null,r=n?t.classes:null,a=0;if(null!==e)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:Et.Default,n=wn();if(null==n)return fe(t,e);var i=Sn();return Ai(i,n,Ut(t),e)}function as(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;var n=t.attrs;if(n)for(var i=n.length,r=0;r2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=wn(),a=Cn(),o=Sn();return bs(a,r,r[11],o,t,e,n,i),gs}function ys(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=Sn(),a=wn(),o=Cn(),s=Nn(o.data),u=ja(s,r,a);return bs(o,a,u,r,t,e,n,i),ys}function _s(t,e,n,i){var r=t.cleanup;if(null!=r)for(var a=0;au?s[u]:null}"string"==typeof o&&(a+=2)}return null}function bs(t,e,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=Ke(i),l=t.firstCreatePass,c=l&&(t.cleanup||(t.cleanup=[])),h=Ba(e),d=!0;if(3===i.type){var f=cn(i,e),p=s?s(f):Oe,m=p.target||f,v=h.length,g=s?function(t){return s(un(t[i.index])).target}:i.index;if(on(n)){var y=null;if(!s&&u&&(y=_s(t,e,r,i.index)),null!==y){var _=y.__ngLastListenerFn__||y;_.__ngNextListenerFn__=a,y.__ngLastListenerFn__=a,d=!1}else{a=ws(i,e,a,!1);var b=n.listen(p.name||m,r,a);h.push(a,b),c&&c.push(r,g,v,v+1)}}else a=ws(i,e,a,!0),m.addEventListener(r,a,o),h.push(a),c&&c.push(r,g,v,o)}var k,w=i.outputs;if(d&&null!==w&&(k=w[r])){var C=k.length;if(C)for(var x=0;x0&&void 0!==arguments[0]?arguments[0]:1;return Yn(t)}function xs(t,e){for(var n=null,i=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=wn(),r=Cn(),a=ra(r,i[6],t,1,null,n||null);null===a.projection&&(a.projection=e),An(),co(r,i,a)}function Ds(t,e,n){return As(t,"",e,"",n),Ds}function As(t,e,n,i,r){var a=wn(),o=es(a,e,n,i);return o!==Hr&&ga(Cn(),$n(),a,t,o,a[11],r,!1),As}var Is=[];function Os(t,e,n,i,r){for(var a=t[n+1],o=null===e,s=i?$r(a):Qr(a),u=!1;0!==s&&(!1===u||o);){var l=t[s+1];Ts(t[s],e)&&(u=!0,t[s+1]=i?ta(l):Xr(l)),s=i?$r(l):Qr(l)}u&&(t[n+1]=i?Xr(a):ta(a))}function Ts(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&De(t,e)>=0}var Rs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ms(t){return t.substring(Rs.key,Rs.keyEnd)}function Ps(t,e){var n=Rs.textEnd;return n===e?-1:(e=Rs.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Rs.key=e,n),Fs(t,e,n))}function Fs(t,e,n){for(;e=0;n=Ps(e,n))Se(t,Ms(e),!0)}function Bs(t,e,n,i){var r=wn(),a=Cn(),o=Pn(2);a.firstUpdatePass&&zs(a,t,o,i),e!==Hr&&Qo(r,o,e)&&Ws(a,a.data[Kn()+20],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=Bt(Zi(t)))),t}(e,n),i,o)}function js(t,e){return e>=t.expandoStartIndex}function zs(t,e,n,i){var r=t.data;if(null===r[n+1]){var a=r[Kn()+20],o=js(t,n);Ys(a,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){var r=Nn(t),a=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=Us(n=Hs(null,t,e,n,i),e.attrs,i),a=null);else{var o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=Hs(r,t,e,n,i),null===a){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==Qr(i))return t[$r(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[$r(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=Us(s=Hs(null,t,e,s[1],i),e.attrs,i))}else a=function(t,e,n){for(var i=void 0,r=e.directiveEnd,a=1+e.directiveStylingLast;a0)&&(c=!0):l=n,r)if(0!==u){var h=$r(t[s+1]);t[i+1]=Zr(h,s),0!==h&&(t[h+1]=Jr(t[h+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=Zr(s,0),0!==s&&(t[s+1]=Jr(t[s+1],i)),s=i;else t[i+1]=Zr(u,0),0===s?s=i:t[u+1]=Jr(t[u+1],i),u=i;c&&(t[i+1]=Xr(t[i+1])),Os(t,l,i,!0),Os(t,l,i,!1),function(t,e,n,i,r){var a=r?t.residualClasses:t.residualStyles;null!=a&&"string"==typeof e&&De(a,e)>=0&&(n[i+1]=ta(n[i+1]))}(e,l,t,i,a),o=Zr(s,u),a?e.classBindings=o:e.styleBindings=o}(r,a,e,n,o,i)}}function Hs(t,e,n,i,r){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=t[r],l=Array.isArray(u),c=l?u[1]:u,h=null===c,d=n[r+1];d===Hr&&(d=h?Is:void 0);var f=h?Ee(d,i):c===i?d:void 0;if(l&&!Gs(f)&&(f=Ee(u,i)),Gs(f)&&(s=f,o))return s;var p=t[r+1];r=o?$r(p):Qr(p)}if(null!==e){var m=a?e.residualClasses:e.residualStyles;null!=m&&(s=Ee(m,i))}return s}function Gs(t){return void 0!==t}function Ys(t,e){return 0!=(t.flags&(e?16:32))}function Ks(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=wn(),i=Cn(),r=t+20,a=i.firstCreatePass?ra(i,n[6],t,3,null,null):i.data[r],o=n[r]=Ya(e,n[11]);oo(i,n,o,a),En(a,!1)}function Zs(t){return $s("",t,""),Zs}function $s(t,e,n){var i=wn(),r=es(i,t,e,n);return r!==Hr&&Ua(i,Kn(),r),$s}function Xs(t,e,n,i,r){var a=wn(),o=function(t,e,n,i,r,a){var o=Jo(t,Rn(),n,r);return Pn(2),o?e+mi(n)+i+mi(r)+a:Hr}(a,t,e,n,i,r);return o!==Hr&&Ua(a,Kn(),o),Xs}function Qs(t,e,n){var i=wn();return Qo(i,Mn(),e)&&ga(Cn(),$n(),i,t,e,i[11],n,!0),Qs}function Js(t,e,n){var i=wn();if(Qo(i,Mn(),e)){var r=Cn(),a=$n();ga(r,a,i,t,e,ja(Nn(r.data),a,i),n,!0)}return Js}function tu(t,e){var n=pn(t)[1],i=n.data.length-1;Jn(n,{directiveStart:i,directiveEnd:i+1})}function eu(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,i=[t];e;){var r=void 0;if(Ze(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);var a=t;a.inputs=nu(t.inputs),a.declaredInputs=nu(t.declaredInputs),a.outputs=nu(t.outputs);var o=r.hostBindings;o&&au(t,o);var s=r.viewQuery,u=r.contentQueries;if(s&&iu(t,s),u&&ru(t,u),At(t.inputs,r.inputs),At(t.declaredInputs,r.declaredInputs),At(t.outputs,r.outputs),Ze(r)&&r.data.animation){var l=t.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var h=0;h=0;i--){var r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=li(r.hostAttrs,n=li(n,r.hostAttrs))}}(i)}function nu(t){return t===Oe?{}:t===Te?[]:t}function iu(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function ru(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,r){e(t,i,r),n(t,i,r)}:e}function au(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}function ou(t,e,n){var i=Cn();if(i.firstCreatePass){var r=Ze(t);su(n,i.data,i.blueprint,r,!0),su(e,i.data,i.blueprint,r,!1)}}function su(t,e,n,i,r){if(t=Ut(t),Array.isArray(t))for(var a=0;a>20;if(jo(t)||!t.multi){var p=new ai(l,r,rs),m=cu(u,e,r?h:h+f,d);-1===m?(Di(Ci(c,s),o,u),uu(o,t,e.length),e.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{var v=cu(u,e,h+f,d),g=cu(u,e,h,h+f),y=g>=0&&n[g];if(r&&!y||!r&&!(v>=0&&n[v])){Di(Ci(c,s),o,u);var _=function(t,e,n,i,r){var a=new ai(t,n,rs);return a.multi=[],a.index=e,a.componentProviders=0,lu(a,r,i&&!n),a}(r?du:hu,n.length,r,i,l);!r&&y&&(n[g].providerFactory=_),uu(o,t,e.length,0),e.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(_),s.push(_)}else uu(o,t,v>-1?v:g,lu(n[r?g:v],l,!r&&i));!r&&i&&y&&n[g].componentProviders++}}}function uu(t,e,n,i){var r=jo(e);if(r||e.useClass){var a=(e.useClass||e).prototype.ngOnDestroy;if(a){var o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=o.indexOf(n);-1===s?o.push(n,[i,a]):o[s+1].push(i,a)}else o.push(n,a)}}}function lu(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function cu(t,e,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return ou(n,i?i(t):t,e)}}}var mu=function t(){y(this,t)},vu=function t(){y(this,t)},gu=function(){function t(){y(this,t)}return b(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(Bt(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),yu=function(){var t=function t(){y(this,t)};return t.NULL=new gu,t}(),_u=function(){var t=function t(e){y(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=function(){return bu(t)},t}(),bu=function(t){return bo(t,Sn(),wn())},ku=function t(){y(this,t)},wu=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),Cu=function(){var t=function t(){y(this,t)};return t.__NG_ELEMENT_ID__=function(){return xu()},t}(),xu=function(){var t=wn(),e=fn(Sn().index,t);return function(t){var e=t[11];if(on(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(We(e)?e:t)},Su=function(){var t=function t(){y(this,t)};return t.\u0275prov=It({token:t,providedIn:"root",factory:function(){return null}}),t}(),Eu=function t(e){y(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},Du=new Eu("10.0.8"),Au=function(){function t(){y(this,t)}return b(t,[{key:"supports",value:function(t){return Zo(t)}},{key:"create",value:function(t){return new Ou(t)}}]),t}(),Iu=function(t,e){return e},Ou=function(){function t(e){y(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=e||Iu}return b(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,i=0,r=null;e||n;){var a=!n||e&&e.currentIndex0&&po(l,h,_.join(" "))}if(a=hn(p,0),void 0!==e)for(var b=a.projection=[],k=0;k ".concat(null," ").concat("!="," ").concat(e," <=Actual]"))}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var ol=new Map,sl=function(t){f(n,t);var e=g(n);function n(t,i){var r;y(this,n),(r=e.call(this))._parent=i,r._bootstrapComponents=[],r.injector=a(r),r.destroyCbs=[],r.componentFactoryResolver=new Ku(a(r));var o=Ue(t),s=t[ee]||null;return s&&al(s),r._bootstrapComponents=_i(o.bootstrap),r._r3Injector=Po(t,i,[{provide:_e,useValue:a(r)},{provide:yu,useValue:r.componentFactoryResolver}],Bt(t)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(t),r}return b(n,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et.Default;return t===Uo||t===_e||t===ae?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(_e),ul=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this)).moduleType=t,null!==Ue(t)&&function t(e){if(null!==e.\u0275mod.id){var n=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(Bt(e)," vs ").concat(Bt(e.name)))})(n,ol.get(n),e),ol.set(n,e)}var i=e.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach((function(e){return t(e)}))}(t),i}return b(n,[{key:"create",value:function(t){return new sl(this.moduleType,t)}}]),n}(be);function ll(t,e,n){var i=Tn()+t,r=wn();return r[i]===Hr?Xo(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function cl(t,e,n,i){return fl(wn(),Tn(),t,e,n,i)}function hl(t,e,n,i,r){return pl(wn(),Tn(),t,e,n,i,r)}function dl(t,e){var n=t[e];return n===Hr?void 0:n}function fl(t,e,n,i,r,a){var o=e+n;return Qo(t,o,r)?Xo(t,o+1,a?i.call(a,r):i(r)):dl(t,o+1)}function pl(t,e,n,i,r,a,o){var s=e+n;return Jo(t,s,r,a)?Xo(t,s+2,o?i.call(o,r,a):i(r,a)):dl(t,s+2)}function ml(t,e){var n,i=Cn(),r=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var i=e[n];if(t===i.name)return i}throw new Error("The pipe '".concat(t,"' could not be found!"))}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var a=n.factory||(n.factory=He(n.type)),o=he(rs),s=ki(!1),u=a();return ki(s),he(o),function(t,e,n,i){var r=n+20;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}(i,wn(),t,u),u}function vl(t,e,n){var i=wn(),r=dn(i,t);return _l(i,yl(i,t)?fl(i,Tn(),e,r.transform,n,r):r.transform(n))}function gl(t,e,n,i){var r=wn(),a=dn(r,t);return _l(r,yl(r,t)?pl(r,Tn(),e,a.transform,n,i,a):a.transform(n,i))}function yl(t,e){return t[1].data[e+20].pure}function _l(t,e){return Ko.isWrapped(e)&&(e=Ko.unwrap(e),t[Rn()]=Hr),e}var bl=function(t){f(n,t);var e=g(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return y(this,n),(t=e.call(this)).__isAsync=i,t}return b(n,[{key:"emit",value:function(t){r(i(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,a){var o,s=function(t){return null},u=function(){return null};t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout((function(){return t.next(e)}))}:function(e){t.next(e)},t.error&&(s=this.__isAsync?function(e){setTimeout((function(){return t.error(e)}))}:function(e){t.error(e)}),t.complete&&(u=this.__isAsync?function(){setTimeout((function(){return t.complete()}))}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)},e&&(s=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)}),a&&(u=this.__isAsync?function(){setTimeout((function(){return a()}))}:function(){a()}));var l=r(i(n.prototype),"subscribe",this).call(this,o,s,u);return t instanceof E&&t.add(l),l}}]),n}(U);function kl(){return this._results[Yo()]()}var wl=function(){function t(){y(this,t),this.dirty=!0,this._results=[],this.changes=new bl,this.length=0;var e=Yo(),n=t.prototype;n[e]||(n[e]=kl)}return b(t,[{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t){this._results=function t(e,n){void 0===n&&(n=e);for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];y(this,t),this.queries=e}return b(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var i=null!==e.contentQueries?e.contentQueries[0]:n.length,r=[],a=0;a3&&void 0!==arguments[3]?arguments[3]:null;y(this,t),this.predicate=e,this.descendants=n,this.isStatic=i,this.read=r},El=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];y(this,t),this.queries=e}return b(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;y(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return b(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{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(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,i=0;i0)r.push(s[u/2]);else{for(var c=o[u+1],h=n[-l],d=10;d0&&(r=setTimeout((function(){i._callbacks=i._callbacks.filter((function(t){return t.timeoutId!==r})),t(i._didWork,i.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(cc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),bc=function(){var t=function(){function t(){y(this,t),this._applications=new Map,kc.addToWindow(this)}return b(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||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(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return kc.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),kc=new(function(){function t(){y(this,t)}return b(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),wc=function(t,e,n){var i=new ul(n);return Promise.resolve(i)},Cc=new re("AllowMultipleToken"),xc=function t(e,n){y(this,t),this.name=e,this.token=n};function Sc(t){if(gc&&!gc.destroyed&&!gc.injector.get(Cc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");gc=t.get(Ic);var e=t.get(Kl,null);return e&&e.forEach((function(t){return t()})),gc}function Ec(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(e),r=new re(i);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=Ac();if(!a||a.injector.get(Cc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var o=n.concat(e).concat({provide:r,useValue:!0},{provide:Ao,useValue:"platform"});Sc(Uo.create({providers:o,name:i}))}return Dc(r)}}function Dc(t){var e=Ac();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function Ac(){return gc&&!gc.destroyed?gc:null}var Ic=function(){var t=function(){function t(e){y(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return b(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,i,r=this,a=(i=e&&e.ngZoneEventCoalescing||!1,"noop"===(n=e?e.ngZone:void 0)?new yc:("zone.js"===n?void 0:n)||new cc({enableLongStackTrace:tr(),shouldCoalesceEventChangeDetection:i})),o=[{provide:cc,useValue:a}];return a.run((function(){var e=Uo.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),i=n.injector.get(Hi,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Rc(r._modules,n)})),a.runOutsideAngular((function(){return a.onError.subscribe({next:function(t){i.handleError(t)}})})),function(t,e,i){try{var a=((o=n.injector.get(Wl)).runInitializers(),o.donePromise.then((function(){return al(n.injector.get(Ql,"en-US")||"en-US"),r._moduleDoBootstrap(n),n})));return ms(a)?a.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):a}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var o}(i,a)}))}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Oc({},n);return wc(0,0,t).then((function(t){return e.bootstrapModuleFactory(t,i)}))}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Tc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(Bt(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(t){return t.destroy()})),this._destroyListeners.forEach((function(t){return t()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Uo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}();function Oc(t,e){return Array.isArray(e)?e.reduce(Oc,t):Object.assign(Object.assign({},t),e)}var Tc=function(){var t=function(){function t(e,n,i,r,a,o){var s=this;y(this,t),this._zone=e,this._console=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=a,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=tr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new V((function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){t.next(s._stable),t.complete()}))})),l=new V((function(t){var e;s._zone.runOutsideAngular((function(){e=s._zone.onStable.subscribe((function(){cc.assertNotInAngularZone(),lc((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){cc.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=ht(u,l.pipe((function(t){return dt()((e=yt,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,vt);return i.source=t,i.subjectFactory=n,i})(t));var e})))}return b(t,[{key:"bootstrap",value:function(t,e){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof vu?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(_e),a=n.create(Uo.NULL,[],e||n.selector,r);a.onDestroy((function(){i._unloadComponent(a)}));var o=a.injector.get(_c,null);return o&&a.injector.get(bc).registerApplication(a.location.nativeElement,o),this._loadComponent(a),tr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),a}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=h(this._views);try{for(n.s();!(e=n.n()).done;)e.value.detectChanges()}catch(a){n.e(a)}finally{n.f()}if(this._enforceNoNewChanges){var i,r=h(this._views);try{for(r.s();!(i=r.n()).done;)i.value.checkNoChanges()}catch(a){r.e(a)}finally{r.f()}}}catch(o){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(o)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Rc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get($l,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))}},{key:"_unloadComponent",value:function(t){this.detachView(t.hostView),Rc(this.components,t)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(t){return t.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(cc),fe(Xl),fe(Uo),fe(Hi),fe(yu),fe(Wl))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}();function Rc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Mc=function t(){y(this,t)},Pc=function t(){y(this,t)},Fc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Lc=function(){var t=function(){function t(e,n){y(this,t),this._compiler=e,this._config=n||Fc}return b(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,i=u(t.split("#"),2),r=i[0],a=i[1];return void 0===a&&(a="default"),n("crnd")(r).then((function(t){return t[a]})).then((function(t){return Nc(t,r,a)})).then((function(t){return e._compiler.compileModuleAsync(t)}))}},{key:"loadFactory",value:function(t){var e=u(t.split("#"),2),i=e[0],r=e[1],a="NgFactory";return void 0===r&&(r="default",a=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then((function(t){return t[r+a]})).then((function(t){return Nc(t,i,r)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(sc),fe(Pc,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}();function Nc(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var Vc=Ec(null,"core",[{provide:Zl,useValue:"unknown"},{provide:Ic,deps:[Uo]},{provide:bc,deps:[]},{provide:Xl,deps:[]}]),Bc=[{provide:Tc,useClass:Tc,deps:[cc,Xl,Uo,Hi,yu,Wl]},{provide:$u,deps:[cc],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:Wl,useClass:Wl,deps:[[new Ct,Ul]]},{provide:sc,useClass:sc,deps:[]},Gl,{provide:Vu,useFactory:function(){return zu},deps:[]},{provide:Bu,useFactory:function(){return Hu},deps:[]},{provide:Ql,useFactory:function(t){return al(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new wt(Ql),new Ct,new St]]},{provide:Jl,useValue:"USD"}],jc=function(){var t=function t(e){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)(fe(Tc))},providers:Bc}),t}(),zc=null;function Hc(){return zc}var Uc=function t(){y(this,t)},Wc=new re("DocumentToken"),qc=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:Gc,token:t,providedIn:"platform"}),t}();function Gc(){return fe(Kc)}var Yc=new re("Location Initialized"),Kc=function(){var t=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this))._doc=t,i._init(),i}return b(n,[{key:"_init",value:function(){this.location=Hc().getLocation(),this._history=Hc().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Hc().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){Hc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}},{key:"onHashChange",value:function(t){Hc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}},{key:"pushState",value:function(t,e,n){Zc()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){Zc()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(qc);return t.\u0275fac=function(e){return new(e||t)(fe(Wc))},t.\u0275prov=It({factory:$c,token:t,providedIn:"platform"}),t}();function Zc(){return!!window.history.pushState}function $c(){return new Kc(fe(Wc))}function Xc(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Qc(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Jc(t){return t&&"?"!==t[0]?"?"+t:t}var th=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:eh,token:t,providedIn:"root"}),t}();function eh(t){var e=fe(Wc).location;return new ih(fe(qc),e&&e.origin||"")}var nh=new re("appBaseHref"),ih=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;if(y(this,n),(r=e.call(this))._platformLocation=t,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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 r._baseHref=i,r}return b(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return Xc(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+Jc(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+Jc(i));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+Jc(i));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(th);return t.\u0275fac=function(e){return new(e||t)(fe(qc),fe(nh,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),rh=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this))._platformLocation=t,r._baseHref="",null!=i&&(r._baseHref=i),r}return b(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=Xc(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+Jc(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+Jc(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(th);return t.\u0275fac=function(e){return new(e||t)(fe(qc),fe(nh,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),ah=function(){var t=function(){function t(e,n){var i=this;y(this,t),this._subject=new bl,this._urlChangeListeners=[],this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Qc(sh(r)),this._platformStrategy.onPopState((function(t){i._subject.emit({url:i.path(!0),pop:!0,state:t.state,type:t.type})}))}return b(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+Jc(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,sh(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Jc(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Jc(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)})))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(t,e)}))}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(th),fe(qc))},t.normalizeQueryParams=Jc,t.joinWithSlash=Xc,t.stripTrailingSlash=Qc,t.\u0275prov=It({factory:oh,token:t,providedIn:"root"}),t}();function oh(){return new ah(fe(th),fe(qc))}function sh(t){return t.replace(/\/index.html$/,"")}var uh={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},lh=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),ch=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),hh=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),dh=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),fh=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),ph=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function mh(t,e){return wh(nl(t)[rl.DateFormat],e)}function vh(t,e){return wh(nl(t)[rl.TimeFormat],e)}function gh(t,e){return wh(nl(t)[rl.DateTimeFormat],e)}function yh(t,e){var n=nl(t),i=n[rl.NumberSymbols][e];if(void 0===i){if(e===ph.CurrencyDecimal)return n[rl.NumberSymbols][ph.Decimal];if(e===ph.CurrencyGroup)return n[rl.NumberSymbols][ph.Group]}return i}function _h(t,e){return nl(t)[rl.NumberFormats][e]}function bh(t){return nl(t)[rl.Currencies]}function kh(t){if(!t[rl.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[rl.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function wh(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Ch(t){var e=u(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}function xh(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",i=bh(n)[t]||uh[t]||[],r=i[1];return"narrow"===e&&"string"==typeof r?r:i[0]||t}var Sh=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Eh={},Dh=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Ah=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Ih=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Oh=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Th(t,e,n,i){var r=function(t){if(qh(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();var e,n=parseFloat(t);if(!isNaN(t-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var i=u(t.split("-").map((function(t){return+t})),3);return new Date(i[0],i[1]-1,i[2])}if(e=t.match(Sh))return function(t){var e=new Date(0),n=0,i=0,r=t[8]?e.setUTCFullYear:e.setFullYear,a=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var o=Number(t[4]||0)-n,s=Number(t[5]||0)-i,u=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return a.call(e,o,s,u,l),e}(e)}var r=new Date(t);if(!qh(r))throw new Error('Unable to convert "'.concat(t,'" into a date'));return r}(t);e=function t(e,n){var i=function(t){return nl(t)[rl.LocaleId]}(e);if(Eh[i]=Eh[i]||{},Eh[i][n])return Eh[i][n];var r="";switch(n){case"shortDate":r=mh(e,fh.Short);break;case"mediumDate":r=mh(e,fh.Medium);break;case"longDate":r=mh(e,fh.Long);break;case"fullDate":r=mh(e,fh.Full);break;case"shortTime":r=vh(e,fh.Short);break;case"mediumTime":r=vh(e,fh.Medium);break;case"longTime":r=vh(e,fh.Long);break;case"fullTime":r=vh(e,fh.Full);break;case"short":var a=t(e,"shortTime"),o=t(e,"shortDate");r=Rh(gh(e,fh.Short),[a,o]);break;case"medium":var s=t(e,"mediumTime"),u=t(e,"mediumDate");r=Rh(gh(e,fh.Medium),[s,u]);break;case"long":var l=t(e,"longTime"),c=t(e,"longDate");r=Rh(gh(e,fh.Long),[l,c]);break;case"full":var h=t(e,"fullTime"),d=t(e,"fullDate");r=Rh(gh(e,fh.Full),[h,d])}return r&&(Eh[i][n]=r),r}(n,e)||e;for(var a,o=[];e;){if(!(a=Dh.exec(e))){o.push(e);break}var s=(o=o.concat(a.slice(1))).pop();if(!s)break;e=s}var l=r.getTimezoneOffset();i&&(l=Wh(i,l),r=function(t,e,n){var i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Wh(e,i)-i))}(r,i));var c="";return o.forEach((function(t){var e=function(t){if(Uh[t])return Uh[t];var e;switch(t){case"G":case"GG":case"GGG":e=Nh(Oh.Eras,dh.Abbreviated);break;case"GGGG":e=Nh(Oh.Eras,dh.Wide);break;case"GGGGG":e=Nh(Oh.Eras,dh.Narrow);break;case"y":e=Fh(Ih.FullYear,1,0,!1,!0);break;case"yy":e=Fh(Ih.FullYear,2,0,!0,!0);break;case"yyy":e=Fh(Ih.FullYear,3,0,!1,!0);break;case"yyyy":e=Fh(Ih.FullYear,4,0,!1,!0);break;case"M":case"L":e=Fh(Ih.Month,1,1);break;case"MM":case"LL":e=Fh(Ih.Month,2,1);break;case"MMM":e=Nh(Oh.Months,dh.Abbreviated);break;case"MMMM":e=Nh(Oh.Months,dh.Wide);break;case"MMMMM":e=Nh(Oh.Months,dh.Narrow);break;case"LLL":e=Nh(Oh.Months,dh.Abbreviated,hh.Standalone);break;case"LLLL":e=Nh(Oh.Months,dh.Wide,hh.Standalone);break;case"LLLLL":e=Nh(Oh.Months,dh.Narrow,hh.Standalone);break;case"w":e=Hh(1);break;case"ww":e=Hh(2);break;case"W":e=Hh(1,!0);break;case"d":e=Fh(Ih.Date,1);break;case"dd":e=Fh(Ih.Date,2);break;case"E":case"EE":case"EEE":e=Nh(Oh.Days,dh.Abbreviated);break;case"EEEE":e=Nh(Oh.Days,dh.Wide);break;case"EEEEE":e=Nh(Oh.Days,dh.Narrow);break;case"EEEEEE":e=Nh(Oh.Days,dh.Short);break;case"a":case"aa":case"aaa":e=Nh(Oh.DayPeriods,dh.Abbreviated);break;case"aaaa":e=Nh(Oh.DayPeriods,dh.Wide);break;case"aaaaa":e=Nh(Oh.DayPeriods,dh.Narrow);break;case"b":case"bb":case"bbb":e=Nh(Oh.DayPeriods,dh.Abbreviated,hh.Standalone,!0);break;case"bbbb":e=Nh(Oh.DayPeriods,dh.Wide,hh.Standalone,!0);break;case"bbbbb":e=Nh(Oh.DayPeriods,dh.Narrow,hh.Standalone,!0);break;case"B":case"BB":case"BBB":e=Nh(Oh.DayPeriods,dh.Abbreviated,hh.Format,!0);break;case"BBBB":e=Nh(Oh.DayPeriods,dh.Wide,hh.Format,!0);break;case"BBBBB":e=Nh(Oh.DayPeriods,dh.Narrow,hh.Format,!0);break;case"h":e=Fh(Ih.Hours,1,-12);break;case"hh":e=Fh(Ih.Hours,2,-12);break;case"H":e=Fh(Ih.Hours,1);break;case"HH":e=Fh(Ih.Hours,2);break;case"m":e=Fh(Ih.Minutes,1);break;case"mm":e=Fh(Ih.Minutes,2);break;case"s":e=Fh(Ih.Seconds,1);break;case"ss":e=Fh(Ih.Seconds,2);break;case"S":e=Fh(Ih.FractionalSeconds,1);break;case"SS":e=Fh(Ih.FractionalSeconds,2);break;case"SSS":e=Fh(Ih.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Bh(Ah.Short);break;case"ZZZZZ":e=Bh(Ah.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Bh(Ah.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Bh(Ah.Long);break;default:return null}return Uh[t]=e,e}(t);c+=e?e(r,n,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),c}function Rh(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function Mh(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,a="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,a=n));for(var o=String(t);o.length2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,o){var s=Lh(t,a);if((n>0||s>-n)&&(s+=n),t===Ih.Hours)0===s&&-12===n&&(s=12);else if(t===Ih.FractionalSeconds)return Ph(s,e);var u=yh(o,ph.MinusSign);return Mh(s,e,u,i,r)}}function Lh(t,e){switch(t){case Ih.FullYear:return e.getFullYear();case Ih.Month:return e.getMonth();case Ih.Date:return e.getDate();case Ih.Hours:return e.getHours();case Ih.Minutes:return e.getMinutes();case Ih.Seconds:return e.getSeconds();case Ih.FractionalSeconds:return e.getMilliseconds();case Ih.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}function Nh(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hh.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,a){return Vh(r,a,t,e,n,i)}}function Vh(t,e,n,i,r,a){switch(n){case Oh.Months:return function(t,e,n){var i=nl(t),r=wh([i[rl.MonthsFormat],i[rl.MonthsStandalone]],e);return wh(r,n)}(e,r,i)[t.getMonth()];case Oh.Days:return function(t,e,n){var i=nl(t),r=wh([i[rl.DaysFormat],i[rl.DaysStandalone]],e);return wh(r,n)}(e,r,i)[t.getDay()];case Oh.DayPeriods:var o=t.getHours(),s=t.getMinutes();if(a){var l=function(t){var e=nl(t);return kh(e),(e[rl.ExtraData][2]||[]).map((function(t){return"string"==typeof t?Ch(t):[Ch(t[0]),Ch(t[1])]}))}(e),c=function(t,e,n){var i=nl(t);kh(i);var r=wh([i[rl.ExtraData][0],i[rl.ExtraData][1]],e)||[];return wh(r,n)||[]}(e,r,i),h=l.findIndex((function(t){if(Array.isArray(t)){var e=u(t,2),n=e[0],i=e[1],r=o>=n.hours&&s>=n.minutes,a=o0?Math.floor(r/60):Math.ceil(r/60);switch(t){case Ah.Short:return(r>=0?"+":"")+Mh(o,2,a)+Mh(Math.abs(r%60),2,a);case Ah.ShortGMT:return"GMT"+(r>=0?"+":"")+Mh(o,1,a);case Ah.Long:return"GMT"+(r>=0?"+":"")+Mh(o,2,a)+":"+Mh(Math.abs(r%60),2,a);case Ah.Extended:return 0===i?"Z":(r>=0?"+":"")+Mh(o,2,a)+":"+Mh(Math.abs(r%60),2,a);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function jh(t){var e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}function zh(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Hh(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r;if(e){var a=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,o=n.getDate();r=1+Math.floor((o+a)/7)}else{var s=jh(n.getFullYear()),u=zh(n).getTime()-s.getTime();r=1+Math.round(u/6048e5)}return Mh(r,t,yh(i,ph.MinusSign))}}var Uh={};function Wh(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function qh(t){return t instanceof Date&&!isNaN(t.valueOf())}var Gh=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Yh(t,e,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",u=!1;if(isFinite(t)){var l=Xh(t);o&&(l=$h(l));var c=e.minInt,h=e.minFrac,d=e.maxFrac;if(a){var f=a.match(Gh);if(null===f)throw new Error("".concat(a," is not a valid digit info"));var p=f[1],m=f[3],v=f[5];null!=p&&(c=Jh(p)),null!=m&&(h=Jh(m)),null!=v?d=Jh(v):null!=m&&h>d&&(d=h)}Qh(l,h,d);var g=l.digits,y=l.integerLen,_=l.exponent,b=[];for(u=g.every((function(t){return!t}));y0?b=g.splice(y,g.length):(b=g,g=[0]);var k=[];for(g.length>=e.lgSize&&k.unshift(g.splice(-e.lgSize,g.length).join(""));g.length>e.gSize;)k.unshift(g.splice(-e.gSize,g.length).join(""));g.length&&k.unshift(g.join("")),s=k.join(yh(n,i)),b.length&&(s+=yh(n,r)+b.join("")),_&&(s+=yh(n,ph.Exponential)+"+"+_)}else s=yh(n,ph.Infinity);return t<0&&!u?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}function Kh(t,e,n,i,r){var a=Zh(_h(e,lh.Currency),yh(e,ph.MinusSign));return a.minFrac=function(t){var e,n=uh[t];return n&&(e=n[2]),"number"==typeof e?e:2}(i),a.maxFrac=a.minFrac,Yh(t,a,e,ph.CurrencyGroup,ph.CurrencyDecimal,r).replace("\xa4",n).replace("\xa4","").trim()}function Zh(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],a=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=o[0],u=o[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var l=0;l-1&&(o=o.replace(".","")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;"0"===o.charAt(i);i++);if(i===(a=o.length))e=[0],n=1;else{for(a--;"0"===o.charAt(a);)a--;for(n-=i,e=[],r=0;i<=a;i++,r++)e[r]=Number(o.charAt(i))}return n>22&&(e=e.splice(0,21),s=n-1,n=1),{digits:e,exponent:s,integerLen:n}}function Qh(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction (".concat(e,") is higher than the maximum (").concat(n,")."));var i=t.digits,r=i.length-t.integerLen,a=Math.min(Math.max(e,r),n),o=a+t.integerLen,s=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(var u=o;u=5)if(o-1<0){for(var c=0;c>o;c--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;r=d?i.pop():h=!1),e>=10?1:0}),0);f&&(i.unshift(f),t.integerLen++)}function Jh(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var td=function t(){y(this,t)};function ed(t,e,n,i){var r="=".concat(t);if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t,i),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(t,'"'))}var nd=function(){var t=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this)).locale=t,i}return b(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return nl(t)[rl.PluralCase]}(e||this.locale)(t)){case ch.Zero:return"zero";case ch.One:return"one";case ch.Two:return"two";case ch.Few:return"few";case ch.Many:return"many";default:return"other"}}}]),n}(td);return t.\u0275fac=function(e){return new(e||t)(fe(Ql))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}();function id(t,e){e=encodeURIComponent(e);var n,i=h(t.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,a=r.indexOf("="),o=u(-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],2),s=o[1];if(o[0].trim()===e)return decodeURIComponent(s)}}catch(l){i.e(l)}finally{i.f()}return null}var rd=function(){var t=function(){function t(e,n,i,r){y(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return b(t,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Bt(t.item)));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(n){return e._toggleClass(n,!!t[n])})))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))}},{key:"_toggleClass",value:function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)}))}},{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Zo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Vu),rs(Bu),rs(_u),rs(Cu))},t.\u0275dir=Be({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),ad=function(){var t=function(){function t(e){y(this,t),this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}return b(t,[{key:"ngOnChanges",value:function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(_e);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(yu)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(qu))},t.\u0275dir=Be({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[Qe]}),t}(),od=function(){function t(e,n,i,r){y(this,t),this.$implicit=e,this.ngForOf=n,this.index=i,this.count=r}return b(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}(),sd=function(){var t=function(){function t(e,n,i){y(this,t),this._viewContainer=e,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return b(t,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation((function(t,i,r){if(null==t.previousIndex){var a=e._viewContainer.createEmbeddedView(e._template,new od(null,e._ngForOf,-1,-1),null===r?void 0:r),o=new ud(t,a);n.push(o)}else if(null==r)e._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=e._viewContainer.get(i);e._viewContainer.move(s,r);var u=new ud(t,s);n.push(u)}}));for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:Et.Default,e=Co(!0);if(null!=e||t&Et.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=je({name:"async",type:t,pure:!1}),t}(),Sd=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"transform",value:function(e){if(!e)return e;if("string"!=typeof e)throw bd(t,e);return e.toLowerCase()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"lowercase",type:t,pure:!0}),t}(),Ed=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,Dd=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"transform",value:function(e){if(!e)return e;if("string"!=typeof e)throw bd(t,e);return e.replace(Ed,(function(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"titlecase",type:t,pure:!0}),t}(),Ad=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"transform",value:function(e){if(!e)return e;if("string"!=typeof e)throw bd(t,e);return e.toUpperCase()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"uppercase",type:t,pure:!0}),t}(),Id=function(){var t=function(){function t(e){y(this,t),this.locale=e}return b(t,[{key:"transform",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return Th(e,n,r||this.locale,i)}catch(a){throw bd(t,a.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Ql))},t.\u0275pipe=je({name:"date",type:t,pure:!0}),t}(),Od=/#/g,Td=function(){var t=function(){function t(e){y(this,t),this._localization=e}return b(t,[{key:"transform",value:function(e,n,i){if(null==e)return"";if("object"!=typeof n||null===n)throw bd(t,n);return n[ed(e,Object.keys(n),this._localization,i)].replace(Od,e.toString())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(td))},t.\u0275pipe=je({name:"i18nPlural",type:t,pure:!0}),t}(),Rd=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"transform",value:function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw bd(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"i18nSelect",type:t,pure:!0}),t}(),Md=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"transform",value:function(t){return JSON.stringify(t,null,2)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"json",type:t,pure:!1}),t}();function Pd(t,e){return{key:t,value:e}}var Fd=function(){var t=function(){function t(e){y(this,t),this.differs=e,this.keyValues=[]}return b(t,[{key:"transform",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ld;if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());var i=this.differ.diff(t);return i&&(this.keyValues=[],i.forEachItem((function(t){e.keyValues.push(Pd(t.key,t.currentValue))})),this.keyValues.sort(n)),this.keyValues}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Bu))},t.\u0275pipe=je({name:"keyvalue",type:t,pure:!1}),t}();function Ld(t,e){var n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n1&&void 0!==arguments[1]?arguments[1]:"USD";y(this,t),this._locale=e,this._defaultCurrencyCode=n}return b(t,[{key:"transform",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;if(jd(e))return null;a=a||this._locale,"boolean"==typeof i&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),i=i?"symbol":"code");var o=n||this._defaultCurrencyCode;"code"!==i&&(o="symbol"===i||"symbol-narrow"===i?xh(o,"symbol"===i?"wide":"narrow",a):i);try{var s=zd(e);return Kh(s,a,o,n,r)}catch(u){throw bd(t,u.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Ql),rs(Jl))},t.\u0275pipe=je({name:"currency",type:t,pure:!0}),t}();function jd(t){return null==t||""===t||t!=t}function zd(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error("".concat(t," is not a number"));return t}var Hd,Ud=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"transform",value:function(e,n,i){if(null==e)return e;if(!this.supports(e))throw bd(t,e);return e.slice(n,i)}},{key:"supports",value:function(t){return"string"==typeof t||Array.isArray(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"slice",type:t,pure:!1}),t}(),Wd=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[{provide:td,useClass:nd}]}),t}(),qd=function(){var t=function t(){y(this,t)};return t.\u0275prov=It({token:t,providedIn:"root",factory:function(){return new Gd(fe(Wc),window,fe(Hi))}}),t}(),Gd=function(){function t(e,n,i){y(this,t),this.document=e,this.window=n,this.errorHandler=i,this.offset=function(){return[0,0]}}return b(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var e=this.document.querySelector("#".concat(t));if(e)return void this.scrollToElement(e);var n=this.document.querySelector("[name='".concat(t,"']"));if(n)return void this.scrollToElement(n)}catch(i){this.errorHandler.handleError(i)}}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}]),t}(),Yd=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"getProperty",value:function(t,e){return t[e]}},{key:"log",value:function(t){window.console&&window.console.log&&window.console.log(t)}},{key:"logGroup",value:function(t){window.console&&window.console.group&&window.console.group(t)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){return t.parentNode&&t.parentNode.removeChild(t),t}},{key:"getValue",value:function(t){return t.value}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(t){var e,n=Kd||(Kd=document.querySelector("base"))?Kd.getAttribute("href"):null;return null==n?null:(e=n,Hd||(Hd=document.createElement("a")),Hd.setAttribute("href",e),"/"===Hd.pathname.charAt(0)?Hd.pathname:"/"+Hd.pathname)}},{key:"resetBaseElement",value:function(){Kd=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(t){return id(document.cookie,t)}}],[{key:"makeCurrent",value:function(){var t;t=new n,zc||(zc=t)}}]),n}(function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.call(this)}return b(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(Uc)),Kd=null,Zd=new re("TRANSITION_ID"),$d=[{provide:Ul,useFactory:function(t,e,n){return function(){n.get(Wl).donePromise.then((function(){var n=Hc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter((function(e){return e.getAttribute("ng-transition")===t})).forEach((function(t){return n.remove(t)}))}))}},deps:[Zd,Wc,Uo],multi:!0}],Xd=function(){function t(){y(this,t)}return b(t,[{key:"addToWindow",value:function(t){$t.getAngularTestability=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},$t.getAllAngularTestabilities=function(){return t.getAllTestabilities()},$t.getAllAngularRootElements=function(){return t.getAllRootElements()},$t.frameworkStabilizers||($t.frameworkStabilizers=[]),$t.frameworkStabilizers.push((function(t){var e=$t.getAllAngularTestabilities(),n=e.length,i=!1,r=function(e){i=i||e,0==--n&&t(i)};e.forEach((function(t){t.whenStable(r)}))}))}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?Hc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,kc=e}}]),t}(),Qd=new re("EventManagerPlugins"),Jd=function(){var t=function(){function t(e,n){var i=this;y(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach((function(t){return t.manager=i})),this._plugins=e.slice().reverse()}return b(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,i=0;i-1&&(e.splice(n,1),a+=t+".")})),a+=r,0!=e.length||0===r.length)return null;var o={};return o.domEventName=i,o.fullKey=a,o}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&gf.hasOwnProperty(e)&&(e=gf[e]))}return vf[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),mf.forEach((function(i){i!=n&&(0,yf[i])(t)&&(e+=i+".")})),e+=n}},{key:"eventCallback",value:function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded((function(){return e(r)}))}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(tf);return t.\u0275fac=function(e){return new(e||t)(fe(Wc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),bf=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return fe(kf)},token:t,providedIn:"root"}),t}(),kf=function(){var t=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this))._doc=t,i}return b(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case xr.NONE:return e;case xr.HTML:return $i(e,"HTML")?Zi(e):wr(this._doc,String(e));case xr.STYLE:return $i(e,"Style")?Zi(e):e;case xr.SCRIPT:if($i(e,"Script"))return Zi(e);throw new Error("unsafe value used in a script context");case xr.URL:return Xi(e),$i(e,"URL")?Zi(e):ar(String(e));case xr.RESOURCE_URL:if($i(e,"ResourceURL"))return Zi(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return new Wi(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return new qi(t)}},{key:"bypassSecurityTrustScript",value:function(t){return new Gi(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return new Yi(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return new Ki(t)}}]),n}(bf);return t.\u0275fac=function(e){return new(e||t)(fe(Wc))},t.\u0275prov=It({factory:function(){return t=fe(ae),new kf(t.get(Wc));var t},token:t,providedIn:"root"}),t}(),wf=Ec(Vc,"browser",[{provide:Zl,useValue:"browser"},{provide:Kl,useValue:function(){Yd.makeCurrent(),Xd.init()},multi:!0},{provide:Wc,useFactory:function(){return function(t){rn=t}(document),document},deps:[]}]),Cf=[[],{provide:Ao,useValue:"root"},{provide:Hi,useFactory:function(){return new Hi},deps:[]},{provide:Qd,useClass:pf,multi:!0,deps:[Wc,cc,Zl]},{provide:Qd,useClass:_f,multi:!0,deps:[Wc]},[],{provide:cf,useClass:cf,deps:[Jd,nf,ql]},{provide:ku,useExisting:cf},{provide:ef,useExisting:nf},{provide:nf,useClass:nf,deps:[Wc]},{provide:_c,useClass:_c,deps:[cc]},{provide:Jd,useClass:Jd,deps:[Qd,cc]},[]],xf=function(){var t=function(){function t(e){if(y(this,t),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 b(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:ql,useValue:e.appId},{provide:Zd,useExisting:ql},$d]}}}]),t}();return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)(fe(t,12))},providers:Cf,imports:[Wd,jc]}),t}();function Sf(){for(var t=arguments.length,e=new Array(t),n=0;n0){var i=t.slice(0,e),r=i.toLowerCase(),a=t.slice(e+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(a):n.headers.set(r,[a])}}))}:function(){n.headers=new Map,Object.keys(e).forEach((function(t){var i=e[t],r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(t,r))}))}:this.headers=new Map}return b(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{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(t){return e.applyUpdate(t)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))}))}},{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(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,l(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var a=this.headers.get(e);if(!a)return;0===(a=a.filter((function(t){return-1===r.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return t(e.normalizedNames.get(n),e.headers.get(n))}))}}]),t}(),Mf=function(){function t(){y(this,t)}return b(t,[{key:"encodeKey",value:function(t){return Ff(t)}},{key:"encodeValue",value:function(t){return Ff(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function Pf(t,e){var n=new Map;return t.length>0&&t.split("&").forEach((function(t){var i=t.indexOf("="),r=u(-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],2),a=r[0],o=r[1],s=n.get(a)||[];s.push(o),n.set(a,s)})),n}function Ff(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Lf=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(y(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Mf,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Pf(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach((function(t){var i=n.fromObject[t];e.map.set(t,Array.isArray(i)?i:[i])}))):this.map=null}return b(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map((function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return n+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).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 t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var i=t.map.get(e.param)||[],r=i.indexOf(e.value);-1!==r&&i.splice(r,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)}}]),t}();function Nf(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Vf(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Bf(t){return"undefined"!=typeof FormData&&t instanceof FormData}var jf=function(){function t(e,n,i,r){var a;if(y(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){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,a=r):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new Rf),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,i=e.url||this.url,r=e.responseType||this.responseType,a=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,u=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce((function(t,n){return t.set(n,e.setHeaders[n])}),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((function(t,n){return t.set(n,e.setParams[n])}),l)),new t(n,i,a,{params:l,headers:u,reportProgress:s,responseType:r,withCredentials:o})}}]),t}(),zf=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),Hf=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";y(this,t),this.headers=e.headers||new Rf,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},Uf=function(t){f(n,t);var e=g(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,n),(t=e.call(this,i)).type=zf.ResponseHeader,t}return b(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(Hf),Wf=function(t){f(n,t);var e=g(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,n),(t=e.call(this,i)).type=zf.Response,t.body=void 0!==i.body?i.body:null,t}return b(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(Hf),qf=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),i.error=t.error||null,i}return n}(Hf);function Gf(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Yf=function(){var t=function(){function t(e){y(this,t),this.handler=e}return b(t,[{key:"request",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof jf)n=t;else{var a=void 0;a=r.headers instanceof Rf?r.headers:new Rf(r.headers);var o=void 0;r.params&&(o=r.params instanceof Lf?r.params:new Lf({fromObject:r.params})),n=new jf(t,e,void 0!==r.body?r.body:null,{headers:a,params:o,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Sf(n).pipe(Ef((function(t){return i.handler.handle(t)})));if(t instanceof jf||"events"===r.observe)return s;var u=s.pipe(Df((function(t){return t instanceof Wf})));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(G((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return u.pipe(G((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return u.pipe(G((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return u.pipe(G((function(t){return t.body})))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new Lf).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,Gf(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,Gf(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,Gf(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Of))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),Kf=function(){function t(e,n){y(this,t),this.next=e,this.interceptor=n}return b(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),Zf=new re("HTTP_INTERCEPTORS"),$f=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),Xf=/^\)\]\}',?\n/,Qf=function t(){y(this,t)},Jf=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),tp=function(){var t=function(){function t(e){y(this,t),this.xhrFactory=e}return b(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new V((function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((function(t,e){return i.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(t.responseType){var a=t.responseType.toLowerCase();i.responseType="json"!==a?a:"text"}var o=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Rf(i.getAllResponseHeaders()),a=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new Uf({headers:r,status:e,statusText:n,url:a})},l=function(){var e=u(),r=e.headers,a=e.status,o=e.statusText,s=e.url,l=null;204!==a&&(l=void 0===i.response?i.responseText:i.response),0===a&&(a=l?200:0);var c=a>=200&&a<300;if("json"===t.responseType&&"string"==typeof l){var h=l;l=l.replace(Xf,"");try{l=""!==l?JSON.parse(l):null}catch(d){l=h,c&&(c=!1,l={error:d,text:l})}}c?(n.next(new Wf({body:l,headers:r,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new qf({error:l,headers:r,status:a,statusText:o,url:s||void 0}))},c=function(t){var e=u(),r=new qf({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e.url||void 0});n.error(r)},h=!1,d=function(e){h||(n.next(u()),h=!0);var r={type:zf.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(t){var e={type:zf.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",l),i.addEventListener("error",c),t.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),n.next({type:zf.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("load",l),t.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),ep=new re("XSRF_COOKIE_NAME"),np=new re("XSRF_HEADER_NAME"),ip=function t(){y(this,t)},rp=function(){var t=function(){function t(e,n,i){y(this,t),this.doc=e,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return b(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=id(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Wc),fe(Zl),fe(ep))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),ap=function(){var t=function(){function t(e,n){y(this,t),this.tokenService=e,this.headerName=n}return b(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(ip),fe(np))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),op=function(){var t=function(){function t(e,n){y(this,t),this.backend=e,this.injector=n,this.chain=null}return b(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(Zf,[]);this.chain=e.reduceRight((function(t,e){return new Kf(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Tf),fe(Uo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),sp=function(){var t=function(){function t(){y(this,t)}return b(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:ap,useClass:$f}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:ep,useValue:e.cookieName}:[],e.headerName?{provide:np,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[ap,{provide:Zf,useExisting:ap,multi:!0},{provide:ip,useClass:rp},{provide:ep,useValue:"XSRF-TOKEN"},{provide:np,useValue:"X-XSRF-TOKEN"}]}),t}(),up=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[Yf,{provide:Of,useClass:op},tp,{provide:Tf,useExisting:tp},Jf,{provide:Qf,useExisting:Jf}],imports:[[sp.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),lp=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this))._value=t,i}return b(n,[{key:"_subscribe",value:function(t){var e=r(i(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new j;return this._value}},{key:"next",value:function(t){r(i(n.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),n}(U),cp=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),hp=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"notifyNext",value:function(t,e,n,i,r){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(M),dp=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this)).parent=t,a.outerValue=i,a.outerIndex=r,a.index=0,a}return b(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(M);function fp(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new dp(t,n,i);if(!r.closed)return e instanceof V?e.subscribe(r):tt(e)(r)}var pp={};function mp(){for(var t=arguments.length,e=new Array(t),n=0;n0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:Ip;return function(e){return e.lift(new Dp(t))}}var Dp=function(){function t(e){y(this,t),this.errorFactory=e}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Ap(t,this.errorFactory))}}]),t}(),Ap=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).errorFactory=i,r.hasValue=!1,r}return b(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(M);function Ip(){return new cp}function Op(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new Tp(t))}}var Tp=function(){function t(e){y(this,t),this.defaultValue=e}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Rp(t,this.defaultValue))}}]),t}(),Rp=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).defaultValue=i,r.isEmpty=!0,r}return b(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(M);function Mp(t){return function(e){var n=new Pp(t),i=e.lift(n);return n.caught=i}}var Pp=function(){function t(e){y(this,t),this.selector=e}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Fp(t,this.selector,this.caught))}}]),t}(),Fp=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t)).selector=i,a.caught=r,a}return b(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void r(i(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var a=new it(this);this.add(a);var o=at(e,a);o!==a&&this.add(o)}}}]),n}(rt);function Lp(t){return function(e){return 0===t?_p():e.lift(new Np(t))}}var Np=function(){function t(e){if(y(this,t),this.total=e,this.total<0)throw new wp}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Vp(t,this.total))}}]),t}(),Vp=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).total=i,r.count=0,r}return b(n,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}]),n}(M);function Bp(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Df((function(e,n){return t(e,n,i)})):L,Lp(1),n?Op(e):Ep((function(){return new cp})))}}function jp(){}function zp(t,e,n){return function(i){return i.lift(new Hp(t,e,n))}}var Hp=function(){function t(e,n,i){y(this,t),this.nextOrObserver=e,this.error=n,this.complete=i}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Up(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),Up=function(t){f(n,t);var e=g(n);function n(t,i,r,o){var s;return y(this,n),(s=e.call(this,t))._tapNext=jp,s._tapError=jp,s._tapComplete=jp,s._tapError=r||jp,s._tapComplete=o||jp,x(i)?(s._context=a(s),s._tapNext=i):i&&(s._context=i,s._tapNext=i.next||jp,s._tapError=i.error||jp,s._tapComplete=i.complete||jp),s}return b(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(M),Wp=function(){function t(e,n,i){y(this,t),this.predicate=e,this.thisArg=n,this.source=i}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new qp(t,this.predicate,this.thisArg,this.source))}}]),t}(),qp=function(t){f(n,t);var e=g(n);function n(t,i,r,o){var s;return y(this,n),(s=e.call(this,t)).predicate=i,s.thisArg=r,s.source=o,s.index=0,s.thisArg=r||a(s),s}return b(n,[{key:"notifyComplete",value:function(t){this.destination.next(t),this.destination.complete()}},{key:"_next",value:function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(M);function Gp(t,e){return"function"==typeof e?function(n){return n.pipe(Gp((function(n,i){return nt(t(n,i)).pipe(G((function(t,r){return e(n,t,i,r)})))})))}:function(e){return e.lift(new Yp(t))}}var Yp=function(){function t(e){y(this,t),this.project=e}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Kp(t,this.project))}}]),t}(),Kp=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).project=i,r.index=0,r}return b(n,[{key:"_next",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}},{key:"_innerSub",value:function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new it(this),i=this.destination;i.add(n),this.innerSubscription=at(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||r(i(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&r(i(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t){this.destination.next(t)}}]),n}(rt);function Zp(){return kp()(Sf.apply(void 0,arguments))}function $p(){for(var t=arguments.length,e=new Array(t),n=0;n2&&void 0!==arguments[2]&&arguments[2];y(this,t),this.accumulator=e,this.seed=n,this.hasSeed=i}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Qp(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),Qp=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t)).accumulator=i,o._seed=r,o.hasSeed=a,o.index=0,o}return b(n,[{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=e,this.destination.next(e)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),n}(M),Jp=function(){function t(e){y(this,t),this.callback=e}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new tm(t,this.callback))}}]),t}(),tm=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).add(new E(i)),r}return n}(M),em=function t(e,n){y(this,t),this.id=e,this.url=n},nm=function(t){f(n,t);var e=g(n);function n(t,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return y(this,n),(r=e.call(this,t,i)).navigationTrigger=a,r.restoredState=o,r}return b(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(em),im=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a}return b(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(em),rm=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t,i)).reason=r,a}return b(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(em),am=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t,i)).error=r,a}return b(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(em),om=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return b(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(em),sm=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return b(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(em),um=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o){var s;return y(this,n),(s=e.call(this,t,i)).urlAfterRedirects=r,s.state=a,s.shouldActivate=o,s}return b(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(em),lm=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return b(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(em),cm=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return b(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(em),hm=function(){function t(e){y(this,t),this.route=e}return b(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),dm=function(){function t(e){y(this,t),this.route=e}return b(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),fm=function(){function t(e){y(this,t),this.snapshot=e}return b(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),pm=function(){function t(e){y(this,t),this.snapshot=e}return b(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),mm=function(){function t(e){y(this,t),this.snapshot=e}return b(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),vm=function(){function t(e){y(this,t),this.snapshot=e}return b(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),gm=function(){function t(e,n,i){y(this,t),this.routerEvent=e,this.position=n,this.anchor=i}return b(t,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),t}(),ym=function(){function t(e){y(this,t),this.params=e||{}}return b(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function _m(t){return new ym(t)}function bm(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function km(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length-1})):t===e}function xm(t){return Array.prototype.concat.apply([],t)}function Sm(t){return t.length>0?t[t.length-1]:null}function Em(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Dm(t){return vs(t)?t:ms(t)?nt(Promise.resolve(t)):Sf(t)}function Am(t,e,n){return n?function(t,e){return wm(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Rm(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((function(n){return Cm(t[n],e[n])}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,r){if(n.segments.length>r.length)return!!Rm(n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!Rm(n.segments,r))return!1;for(var a in i.children){if(!n.children[a])return!1;if(!t(n.children[a],i.children[a]))return!1}return!0}var o=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!Rm(n.segments,o)&&!!n.children.primary&&e(n.children.primary,i,s)}(e,n,n.segments)}(t.root,e.root)}var Im=function(){function t(e,n,i){y(this,t),this.root=e,this.queryParams=n,this.fragment=i}return b(t,[{key:"toString",value:function(){return Lm.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=_m(this.queryParams)),this._queryParamMap}}]),t}(),Om=function(){function t(e,n){var i=this;y(this,t),this.segments=e,this.children=n,this.parent=null,Em(n,(function(t,e){return t.parent=i}))}return b(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Nm(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),Tm=function(){function t(e,n){y(this,t),this.path=e,this.parameters=n}return b(t,[{key:"toString",value:function(){return Um(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=_m(this.parameters)),this._parameterMap}}]),t}();function Rm(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function Mm(t,e){var n=[];return Em(t.children,(function(t,i){"primary"===i&&(n=n.concat(e(t,i)))})),Em(t.children,(function(t,i){"primary"!==i&&(n=n.concat(e(t,i)))})),n}var Pm=function t(){y(this,t)},Fm=function(){function t(){y(this,t)}return b(t,[{key:"parse",value:function(t){var e=new Km(t);return new Im(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,i="/".concat(function t(e,n){if(!e.hasChildren())return Nm(e);if(n){var i=e.children.primary?t(e.children.primary,!1):"",r=[];return Em(e.children,(function(e,n){"primary"!==n&&r.push("".concat(n,":").concat(t(e,!1)))})),r.length>0?"".concat(i,"(").concat(r.join("//"),")"):i}var a=Mm(e,(function(n,i){return"primary"===i?[t(e.children.primary,!1)]:["".concat(i,":").concat(t(n,!1))]}));return"".concat(Nm(e),"/(").concat(a.join("//"),")")}(t.root,!0)),r=(e=t.queryParams,(n=Object.keys(e).map((function(t){var n=e[t];return Array.isArray(n)?n.map((function(e){return"".concat(Bm(t),"=").concat(Bm(e))})).join("&"):"".concat(Bm(t),"=").concat(Bm(n))}))).length?"?".concat(n.join("&")):""),a="string"==typeof t.fragment?"#".concat(encodeURI(t.fragment)):"";return"".concat(i).concat(r).concat(a)}}]),t}(),Lm=new Fm;function Nm(t){return t.segments.map((function(t){return Um(t)})).join("/")}function Vm(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bm(t){return Vm(t).replace(/%3B/gi,";")}function jm(t){return Vm(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zm(t){return decodeURIComponent(t)}function Hm(t){return zm(t.replace(/\+/g,"%20"))}function Um(t){return"".concat(jm(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(jm(t),"=").concat(jm(e[t]))})).join("")));var e}var Wm=/^[^\/()?;=#]+/;function qm(t){var e=t.match(Wm);return e?e[0]:""}var Gm=/^[^=?&#]+/,Ym=/^[^?&#]+/,Km=function(){function t(e){y(this,t),this.url=e,this.remaining=e}return b(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Om([],{}):new Om([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Om(t,e)),n}},{key:"parseSegment",value:function(){var t=qm(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Tm(zm(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=qm(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=qm(this.remaining);i&&this.capture(n=i)}t[zm(e)]=zm(n)}}},{key:"parseQueryParam",value:function(t){var e,n=(e=this.remaining.match(Gm))?e[0]:"";if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(Ym);return e?e[0]:""}(this.remaining);r&&this.capture(i=r)}var a=Hm(n),o=Hm(i);if(t.hasOwnProperty(a)){var s=t[a];Array.isArray(s)||(t[a]=s=[s]),s.push(o)}else t[a]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=qm(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var a=this.parseChildren();e[r]=1===Object.keys(a).length?a.primary:new Om([],a),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Zm=function(){function t(e){y(this,t),this._root=e}return b(t,[{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=$m(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=$m(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Xm(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))}},{key:"pathFromRoot",value:function(t){return Xm(t,this._root).map((function(t){return t.value}))}},{key:"root",get:function(){return this._root.value}}]),t}();function $m(t,e){if(t===e.value)return e;var n,i=h(e.children);try{for(i.s();!(n=i.n()).done;){var r=$m(t,n.value);if(r)return r}}catch(a){i.e(a)}finally{i.f()}return null}function Xm(t,e){if(t===e.value)return[e];var n,i=h(e.children);try{for(i.s();!(n=i.n()).done;){var r=Xm(t,n.value);if(r.length)return r.unshift(e),r}}catch(a){i.e(a)}finally{i.f()}return[]}var Qm=function(){function t(e,n){y(this,t),this.value=e,this.children=n}return b(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function Jm(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var tv=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).snapshot=i,sv(a(r),t),r}return b(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Zm);function ev(t,e){var n=function(t,e){var n=new av([],{},{},"",{},"primary",e,null,t.root,-1,{});return new ov("",new Qm(n,[]))}(t,e),i=new lp([new Tm("",{})]),r=new lp({}),a=new lp({}),o=new lp({}),s=new lp(""),u=new nv(i,r,o,s,a,"primary",e,n.root);return u.snapshot=n.root,new tv(new Qm(u,[]),n)}var nv=function(){function t(e,n,i,r,a,o,s,u){y(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=u}return b(t,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(G((function(t){return _m(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(G((function(t){return _m(t)})))),this._queryParamMap}}]),t}();function iv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var r=n[i],a=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return rv(n.slice(i))}function rv(t){return t.reduce((function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}var av=function(){function t(e,n,i,r,a,o,s,u,l,c,h){y(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return b(t,[{key:"toString",value:function(){var t=this.url.map((function(t){return t.toString()})).join("/"),e=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(e,"')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=_m(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=_m(this.queryParams)),this._queryParamMap}}]),t}(),ov=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,i)).url=t,sv(a(r),i),r}return b(n,[{key:"toString",value:function(){return uv(this._root)}}]),n}(Zm);function sv(t,e){e.value._routerState=t,e.children.forEach((function(e){return sv(t,e)}))}function uv(t){var e=t.children.length>0?" { ".concat(t.children.map(uv).join(", ")," } "):"";return"".concat(t.value).concat(e)}function lv(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,wm(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),wm(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;nr;){if(a-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new mv(i,!1,r-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(a,e,t),s=o.processChildren?yv(o.segmentGroup,o.index,a.commands):gv(o.segmentGroup,o.index,a.commands);return fv(o.segmentGroup,s,e,i,r)}function dv(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function fv(t,e,n,i,r){var a={};return i&&Em(i,(function(t,e){a[e]=Array.isArray(t)?t.map((function(t){return"".concat(t)})):"".concat(t)})),new Im(n.root===t?e:function t(e,n,i){var r={};return Em(e.children,(function(e,a){r[a]=e===n?i:t(e,n,i)})),new Om(e.segments,r)}(n.root,t,e),a,r)}var pv=function(){function t(e,n,i){if(y(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=i,e&&i.length>0&&dv(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(r&&r!==Sm(i))throw new Error("{outlets:{}} has to be the last command")}return b(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),mv=function t(e,n,i){y(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i};function vv(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:"".concat(t)}function gv(t,e,n){if(t||(t=new Om([],{})),0===t.segments.length&&t.hasChildren())return yv(t,e,n);var i=function(t,e,n){for(var i=0,r=e,a={match:!1,pathIndex:0,commandIndex:0};r=n.length)return a;var o=t.segments[r],s=vv(n[i]),u=i0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!wv(s,u,o))return a;i+=2}else{if(!wv(s,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex0?new Om([],c({},"primary",t)):t;return new Im(i,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(G((function(t){return new Om([],t)}))):this.expandSegment(t,n,e,n.segments,i,!0)}},{key:"expandChildren",value:function(t,e,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return Sf({});var a=[],o=[],s={};return Em(n,(function(n,r){var u,l,c=(u=r,l=n,i.expandSegmentGroup(t,e,l,u)).pipe(G((function(t){return s[r]=t})));"primary"===r?a.push(c):o.push(c)})),Sf.apply(null,a.concat(o)).pipe(kp(),function(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Df((function(e,n){return t(e,n,i)})):L,Cp(1),n?Op(e):Ep((function(){return new cp})))}}(),G((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(t,e,n,i,r,a){var o=this;return Sf.apply(void 0,l(n)).pipe(G((function(s){return o.expandSegmentAgainstRoute(t,e,n,s,i,r,a).pipe(Mp((function(t){if(t instanceof Av)return Sf(null);throw t})))})),kp(),Bp((function(t){return!!t})),Mp((function(t,n){if(t instanceof cp||"EmptyError"===t.name){if(o.noLeftoversInUrl(e,i,r))return Sf(new Om([],{}));throw new Av(e)}throw t})))}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,i,r,a,o){return Nv(i)!==a?Ov(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a):Ov(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,i){var r=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Tv(a):this.lineralizeSegments(n,a).pipe(ot((function(n){var a=new Om(n,{});return r.expandSegment(t,a,e,n,i,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,a){var o=this,s=Pv(e,i,r),u=s.consumedSegments,l=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return Ov(e);var h=this.applyRedirectCommands(u,i.redirectTo,c);return i.redirectTo.startsWith("/")?Tv(h):this.lineralizeSegments(i,h).pipe(ot((function(i){return o.expandSegment(t,e,n,i.concat(r.slice(l)),a,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,i){var r=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(G((function(t){return n._loadedConfig=t,new Om(i,{})}))):Sf(new Om(i,{}));var a=Pv(e,n,i),o=a.consumedSegments,s=a.lastChild;if(!a.matched)return Ov(e);var u=i.slice(s);return this.getChildConfig(t,n,i).pipe(ot((function(t){var n=t.module,i=t.routes,a=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some((function(n){return Lv(t,e,n)&&"primary"!==Nv(n)}))}(t,n,i)?{segmentGroup:Fv(new Om(e,function(t,e){var n={};n.primary=e;var i,r=h(t);try{for(r.s();!(i=r.n()).done;){var a=i.value;""===a.path&&"primary"!==Nv(a)&&(n[Nv(a)]=new Om([],{}))}}catch(o){r.e(o)}finally{r.f()}return n}(i,new Om(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return Lv(t,e,n)}))}(t,n,i)?{segmentGroup:Fv(new Om(t.segments,function(t,e,n,i){var r,a={},o=h(n);try{for(o.s();!(r=o.n()).done;){var s=r.value;Lv(t,e,s)&&!i[Nv(s)]&&(a[Nv(s)]=new Om([],{}))}}catch(u){o.e(u)}finally{o.f()}return Object.assign(Object.assign({},i),a)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,u,i),s=a.segmentGroup,l=a.slicedSegments;return 0===l.length&&s.hasChildren()?r.expandChildren(n,i,s).pipe(G((function(t){return new Om(o,t)}))):0===i.length&&0===l.length?Sf(new Om(o,{})):r.expandSegment(n,s,i,l,"primary",!0).pipe(G((function(t){return new Om(o.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?Sf(new Sv(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Sf(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(ot((function(n){return n?i.configLoader.load(t.injector,e).pipe(G((function(t){return e._loadedConfig=t,t}))):function(t){return new V((function(e){return e.error(bm("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):Sf(new Sv([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var i,r=this,a=e.canLoad;return a&&0!==a.length?nt(a).pipe(G((function(i){var r,a=t.get(i);if(function(t){return t&&Ev(t.canLoad)}(a))r=a.canLoad(e,n);else{if(!Ev(a))throw new Error("Invalid CanLoad guard");r=a(e,n)}return Dm(r)}))).pipe(kp(),zp((function(t){if(Dv(t)){var e=bm('Redirecting to "'.concat(r.urlSerializer.serialize(t),'"'));throw e.url=t,e}})),(i=function(t){return!0===t},function(t){return t.lift(new Wp(i,void 0,t))})):Sf(!0)}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Sf(n);if(i.numberOfChildren>1||!i.children.primary)return Rv(t.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new Im(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return Em(t,(function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t})),n}},{key:"createSegmentGroup",value:function(t,e,n,i){var r=this,a=this.createSegments(t,e.segments,n,i),o={};return Em(e.children,(function(e,a){o[a]=r.createSegmentGroup(t,e,n,i)})),new Om(a,o)}},{key:"createSegments",value:function(t,e,n,i){var r=this;return e.map((function(e){return e.path.startsWith(":")?r.findPosParam(t,e,i):r.findOrReturn(e,n)}))}},{key:"findPosParam",value:function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return i}},{key:"findOrReturn",value:function(t,e){var n,i=0,r=h(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.path===t.path)return e.splice(i),a;i++}}catch(o){r.e(o)}finally{r.f()}return t}}]),t}();function Pv(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(e.matcher||km)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Fv(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Om(t.segments.concat(e.segments),e.children)}return t}function Lv(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Nv(t){return t.outlet||"primary"}var Vv=function t(e){y(this,t),this.path=e,this.route=this.path[this.path.length-1]},Bv=function t(e,n){y(this,t),this.component=e,this.route=n};function jv(t,e,n){var i=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function zv(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Jm(e);return t.children.forEach((function(t){Hv(t,a[t.value.outlet],n,i.concat([t.value]),r),delete a[t.value.outlet]})),Em(a,(function(t,e){return Wv(t,n.getContext(e),r)})),r}function Hv(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,o=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var u=Uv(o,a,a.routeConfig.runGuardsAndResolvers);if(u?r.canActivateChecks.push(new Vv(i)):(a.data=o.data,a._resolvedData=o._resolvedData),zv(t,e,a.component?s?s.children:null:n,i,r),u){var l=s&&s.outlet&&s.outlet.component||null;r.canDeactivateChecks.push(new Bv(l,o))}}else o&&Wv(e,s,r),r.canActivateChecks.push(new Vv(i)),zv(t,null,a.component?s?s.children:null:n,i,r);return r}function Uv(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Rm(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Rm(t.url,e.url)||!wm(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cv(t,e)||!wm(t.queryParams,e.queryParams);case"paramsChange":default:return!cv(t,e)}}function Wv(t,e,n){var i=Jm(t),r=t.value;Em(i,(function(t,i){Wv(t,r.component?e?e.children.getContext(i):null:e,n)})),n.canDeactivateChecks.push(new Bv(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var qv=Symbol("INITIAL_VALUE");function Gv(){return Gp((function(t){return mp.apply(void 0,l(t.map((function(t){return t.pipe(Lp(1),$p(qv))})))).pipe(function(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Xp(t,e,n))}}((function(t,e){var n=!1;return e.reduce((function(t,i,r){if(t!==qv)return t;if(i===qv&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||Dv(i))return i}return t}),t)}),qv),Df((function(t){return t!==qv})),G((function(t){return Dv(t)?t:!0===t})),Lp(1))}))}function Yv(t,e){return null!==t&&e&&e(new mm(t)),Sf(!0)}function Kv(t,e){return null!==t&&e&&e(new fm(t)),Sf(!0)}function Zv(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Sf(i.map((function(i){return bp((function(){var r,a=jv(i,e,n);if(function(t){return t&&Ev(t.canActivate)}(a))r=Dm(a.canActivate(e,t));else{if(!Ev(a))throw new Error("Invalid CanActivate guard");r=Dm(a(e,t))}return r.pipe(Bp())}))}))).pipe(Gv()):Sf(!0)}function $v(t,e,n){var i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return bp((function(){return Sf(e.guards.map((function(r){var a,o=jv(r,e.node,n);if(function(t){return t&&Ev(t.canActivateChild)}(o))a=Dm(o.canActivateChild(i,t));else{if(!Ev(o))throw new Error("Invalid CanActivateChild guard");a=Dm(o(i,t))}return a.pipe(Bp())}))).pipe(Gv())}))}));return Sf(r).pipe(Gv())}var Xv=function t(){y(this,t)},Qv=function(){function t(e,n,i,r,a,o){y(this,t),this.rootComponentType=e,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return b(t,[{key:"recognize",value:function(){try{var t=eg(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new av([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Qm(n,e),r=new ov(this.url,i);return this.inheritParamsAndData(r._root),Sf(r)}catch(a){return new V((function(t){return t.error(a)}))}}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,i=iv(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){var n,i=this,r=Mm(e,(function(e,n){return i.processSegmentGroup(t,e,n)}));return n={},r.forEach((function(t){var e=n[t.value.outlet];if(e){var i=e.url.map((function(t){return t.toString()})).join("/"),r=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(i,"' and '").concat(r,"'."))}n[t.value.outlet]=t.value})),function(t){t.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)}))}(r),r}},{key:"processSegment",value:function(t,e,n,i){var r,a=h(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;try{return this.processSegmentAgainstRoute(o,e,n,i)}catch(s){if(!(s instanceof Xv))throw s}}}catch(u){a.e(u)}finally{a.f()}if(this.noLeftoversInUrl(e,n,i))return[];throw new Xv}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"processSegmentAgainstRoute",value:function(t,e,n,i){if(t.redirectTo)throw new Xv;if((t.outlet||"primary")!==i)throw new Xv;var r,a=[],o=[];if("**"===t.path){var s=n.length>0?Sm(n).parameters:{};r=new av(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rg(t),i,t.component,t,Jv(e),tg(e)+n.length,ag(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Xv;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||km)(n,t,e);if(!i)throw new Xv;var r={};Em(i.posParams,(function(t,e){r[e]=t.path}));var a=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a}}(e,t,n);a=u.consumedSegments,o=n.slice(u.lastChild),r=new av(a,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rg(t),i,t.component,t,Jv(e),tg(e)+a.length,ag(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),c=eg(e,a,o,l,this.relativeLinkResolution),h=c.segmentGroup,d=c.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(l,h);return[new Qm(r,f)]}if(0===l.length&&0===d.length)return[new Qm(r,[])];var p=this.processSegment(l,h,d,"primary");return[new Qm(r,p)]}}]),t}();function Jv(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function tg(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function eg(t,e,n,i,r){if(n.length>0&&function(t,e,n){return n.some((function(n){return ng(t,e,n)&&"primary"!==ig(n)}))}(t,n,i)){var a=new Om(e,function(t,e,n,i){var r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var a,o=h(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(""===s.path&&"primary"!==ig(s)){var u=new Om([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,r[ig(s)]=u}}}catch(l){o.e(l)}finally{o.f()}return r}(t,e,i,new Om(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return ng(t,e,n)}))}(t,n,i)){var o=new Om(t.segments,function(t,e,n,i,r,a){var o,s={},u=h(i);try{for(u.s();!(o=u.n()).done;){var l=o.value;if(ng(t,n,l)&&!r[ig(l)]){var c=new Om([],{});c._sourceSegment=t,c._segmentIndexShift="legacy"===a?t.segments.length:e.length,s[ig(l)]=c}}}catch(d){u.e(d)}finally{u.f()}return Object.assign(Object.assign({},r),s)}(t,e,n,i,t.children,r));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new Om(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function ng(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ig(t){return t.outlet||"primary"}function rg(t){return t.data||{}}function ag(t){return t.resolve||{}}function og(t){return function(e){return e.pipe(Gp((function(e){var n=t(e);return n?nt(n).pipe(G((function(){return e}))):nt([e])})))}}var sg=function(){function t(){y(this,t)}return b(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}(),ug=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&cs(0,"router-outlet")},directives:function(){return[Dg]},encapsulation:2}),t}();function lg(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Qv(t,e,n,i,r,a).recognize()}(t,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,e.serializeUrl(o)),r,a).pipe(G((function(t){return Object.assign(Object.assign({},i),{targetSnapshot:t})})));var o})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),zp((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),zp((function(t){var i=new om(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)})));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.extractedUrl,l=t.source,c=t.restoredState,h=t.extras,d=new nm(t.id,e.serializeUrl(u),l,c);n.next(d);var f=ev(u,e.rootComponentType).snapshot;return Sf(Object.assign(Object.assign({},t),{targetSnapshot:f,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),yp})),og((function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),zp((function(t){var n=new sm(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),G((function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,r=e.rootContexts,a=n._root,zv(a,i?i._root:null,r,[a.value]))});var n,i,r,a})),function(t,e){return function(n){return n.pipe(ot((function(n){var i=n.targetSnapshot,r=n.currentSnapshot,a=n.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?Sf(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return nt(t).pipe(ot((function(t){return function(t,e,n,i,r){var a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return a&&0!==a.length?Sf(a.map((function(a){var o,s=jv(a,e,r);if(function(t){return t&&Ev(t.canDeactivate)}(s))o=Dm(s.canDeactivate(t,e,n,i));else{if(!Ev(s))throw new Error("Invalid CanDeactivate guard");o=Dm(s(t,e,n,i))}return o.pipe(Bp())}))).pipe(Gv()):Sf(!0)}(t.component,t.route,n,e,i)})),Bp((function(t){return!0!==t}),!0))}(s,i,r,t).pipe(ot((function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return nt(e).pipe(Ef((function(e){return nt([Kv(e.route.parent,i),Yv(e.route,i),$v(t,e.path,n),Zv(t,e.route,n)]).pipe(kp(),Bp((function(t){return!0!==t}),!0))})),Bp((function(t){return!0!==t}),!0))}(i,o,t,e):Sf(n)})),G((function(t){return Object.assign(Object.assign({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),zp((function(t){if(Dv(t.guardsResult)){var n=bm('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}})),zp((function(t){var n=new um(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),Df((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var i=new rm(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0})),og((function(t){if(t.guards.canActivateChecks.length)return Sf(t).pipe(zp((function(t){var n=new lm(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),Gp((function(t){var i,r,a=!1;return Sf(t).pipe((i=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(ot((function(t){var e=t.targetSnapshot,n=t.guards.canActivateChecks;if(!n.length)return Sf(t);var a=0;return nt(n).pipe(Ef((function(t){return function(t,e,n,i){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return Sf({});var a={};return nt(r).pipe(ot((function(r){return function(t,e,n,i){var r=jv(t,e,i);return Dm(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(zp((function(t){a[r]=t})))})),Cp(1),ot((function(){return Object.keys(a).length===r.length?Sf(a):yp})))}(t._resolve,t,e,i).pipe(G((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),iv(t,n).resolve),null})))}(t.route,e,i,r)})),zp((function(){return a++})),Cp(1),ot((function(e){return a===n.length?Sf(t):yp})))})))}),zp({next:function(){return a=!0},complete:function(){if(!a){var i=new rm(t.id,e.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),t.resolve(!1)}}}))})),zp((function(t){var n=new cm(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})))})),og((function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),G((function(t){var n,i,r,a=(r=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){var r=i.value;r._futureSnapshot=n.value;var a=function(e,n,i){return n.children.map((function(n){var r,a=h(i.children);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(e.shouldReuseRoute(o.value.snapshot,n.value))return t(e,n,o)}}catch(s){a.e(s)}finally{a.f()}return t(e,n)}))}(e,n,i);return new Qm(r,a)}var o=e.retrieve(n.value);if(o){var s=o.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,r=e.fragment,a=e.preserveQueryParams,o=e.queryParamsHandling,s=e.preserveFragment;tr()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,l=s?this.currentUrlTree.fragment:r,c=null;if(o)switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}else c=a?this.currentUrlTree.queryParams:i||null;return null!==c&&(c=this.removeEmptyProps(c)),hv(u,this.currentUrlTree,t,c,l)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};tr()&&this.isNgZoneEnabled&&!cc.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Dv(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return wg(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){if(Dv(t))return Am(this.currentUrlTree,t,e);var n=this.parseUrl(t);return Am(this.currentUrlTree,n,e)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce((function(e,n){var i=t[n];return null!=i&&(e[n]=i),e}),{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new im(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)}),(function(e){t.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(t,e,n,i,r){var a,o,s,u=this.getTransition();if(u&&"imperative"!==e&&"imperative"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(u&&"hashchange"==e&&"popstate"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(u&&"popstate"==e&&"hashchange"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);r?(a=r.resolve,o=r.reject,s=r.promise):s=new Promise((function(t,e){a=t,o=e}));var l=++this.navigationId;return this.setTransition({id:l,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:a,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(t){return Promise.reject(t)}))}},{key:"setBrowserUrl",value:function(t,e,n,i){var r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Do),fe(Pm),fe(vg),fe(ah),fe(Uo),fe(Mc),fe(sc),fe(void 0))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}();function wg(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};y(this,t),this.router=e,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return b(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof nm?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof im&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof gm&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new gm(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(kg),fe(qd),fe(void 0))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),Pg=new re("ROUTER_CONFIGURATION"),Fg=new re("ROUTER_FORROOT_GUARD"),Lg=[ah,{provide:Pm,useClass:Fm},{provide:kg,useFactory:function(t,e,n,i,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new kg(null,t,e,n,i,r,a,xm(o));if(u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),s.errorHandler&&(c.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(c.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=Hc();c.events.subscribe((function(t){h.logGroup("Router Event: ".concat(t.constructor.name)),h.log(t.toString()),h.log(t),h.logGroupEnd()}))}return s.onSameUrlNavigation&&(c.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(c.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(c.relativeLinkResolution=s.relativeLinkResolution),c},deps:[Pm,vg,ah,Uo,Mc,sc,fg,Pg,[function t(){y(this,t)},new Ct],[function t(){y(this,t)},new Ct]]},vg,{provide:nv,useFactory:function(t){return t.routerState.root},deps:[kg]},{provide:Mc,useClass:Lc},Rg,Tg,Og,{provide:Pg,useValue:{enableTracing:!1}}];function Ng(){return new xc("Router",kg)}var Vg=function(){var t=function(){function t(e,n){y(this,t)}return b(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Lg,Hg(e),{provide:Fg,useFactory:zg,deps:[[kg,new Ct,new St]]},{provide:Pg,useValue:n||{}},{provide:th,useFactory:jg,deps:[qc,[new wt(nh),new Ct],Pg]},{provide:Mg,useFactory:Bg,deps:[kg,qd,Pg]},{provide:Ig,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Tg},{provide:xc,multi:!0,useFactory:Ng},[Ug,{provide:Ul,multi:!0,useFactory:Wg,deps:[Ug]},{provide:Gg,useFactory:qg,deps:[Ug]},{provide:$l,multi:!0,useExisting:Gg}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Hg(e)]}}}]),t}();return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)(fe(Fg,8),fe(kg,8))}}),t}();function Bg(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Mg(t,e,n)}function jg(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new rh(t,e):new ih(t,e)}function zg(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Hg(t){return[{provide:Wo,multi:!0,useValue:t},{provide:fg,multi:!0,useValue:t}]}var Ug=function(){var t=function(){function t(e){y(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new U}return b(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(Yc,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),i=t.injector.get(kg),r=t.injector.get(Pg);if(t.isLegacyDisabled(r)||t.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)i.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(r.initialNavigation,"'"));i.hooks.afterPreactivation=function(){return t.initNavigation?Sf(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Pg),n=this.injector.get(Rg),i=this.injector.get(Mg),r=this.injector.get(kg),a=this.injector.get(Tc);t===a.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),r.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}},{key:"isLegacyDisabled",value:function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Uo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}();function Wg(t){return t.appInitializer.bind(t)}function qg(t){return t.bootstrapListener.bind(t)}var Gg=new re("Router Initializer"),Yg=function(){function t(t){this.user=t.user,this.role=t.role,this.admin=t.admin}return Object.defineProperty(t.prototype,"isStaff",{get:function(){return"staff"===this.role||"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAdmin",{get:function(){return"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogged",{get:function(){return null!=this.user},enumerable:!1,configurable:!0}),t}();function Kg(t){return null!=t&&"false"!=="".concat(t)}function Zg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return $g(t)?Number(t):e}function $g(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Xg(t){return Array.isArray(t)?t:[t]}function Qg(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function Jg(t){return t instanceof _u?t.nativeElement:t}function ty(t,e,n,i){return x(n)&&(i=n,n=void 0),i?ty(t,e,n).pipe(G((function(t){return w(t)?i.apply(void 0,l(t)):i(t)}))):new V((function(i){!function t(e,n,i,r,a){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,i,a),o=function(){return s.removeEventListener(n,i,a)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,i),o=function(){return u.off(n,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var l=e;e.addListener(n,i),o=function(){return l.removeListener(n,i)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c1?Array.prototype.slice.call(arguments):t)}),i,n)}))}var ey=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r.pending=!1,r}return b(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),n}(function(t){f(n,t);var e=g(n);function n(t,i){return y(this,n),e.call(this)}return b(n,[{key:"schedule",value:function(t){return this}}]),n}(E)),ny=function(){var t=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;y(this,t),this.SchedulerAction=e,this.now=n}return b(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),iy=function(t){f(n,t);var e=g(n);function n(t){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ny.now;return y(this,n),(i=e.call(this,t,(function(){return n.delegate&&n.delegate!==a(i)?n.delegate.now():r()}))).actions=[],i.active=!1,i.scheduled=void 0,i}return b(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,a):r(i(n.prototype),"schedule",this).call(this,t,e,a)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}}]),n}(ny),ry=1,ay=function(){return Promise.resolve()}(),oy={};function sy(t){return t in oy&&(delete oy[t],!0)}var uy=function(t){var e=ry++;return oy[e]=!0,ay.then((function(){return sy(e)&&t()})),e},ly=function(t){sy(t)},cy=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r}return b(n,[{key:"requestAsyncId",value:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==a&&a>0?r(i(n.prototype),"requestAsyncId",this).call(this,t,e,a):(t.actions.push(this),t.scheduled||(t.scheduled=uy(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==a&&a>0||null===a&&this.delay>0)return r(i(n.prototype),"recycleAsyncId",this).call(this,t,e,a);0===t.actions.length&&(ly(e),t.scheduled=void 0)}}]),n}(ey),hy=new(function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i=0}function by(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return _y(e)?i=Number(e)<1?1:Number(e):q(e)&&(n=e),q(n)||(n=my),new V((function(e){var r=_y(t)?t:+t-n.now();return n.schedule(ky,r,{index:0,period:i,subscriber:e})}))}function ky(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function wy(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:my;return vy((function(){return by(t,e)}))}function Cy(t){return function(e){return e.lift(new xy(t))}}var xy=function(){function t(e){y(this,t),this.notifier=e}return b(t,[{key:"call",value:function(t,e){var n=new Sy(t),i=at(this.notifier,new it(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}]),t}(),Sy=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this,t)).seenValue=!1,i}return b(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(rt);function Ey(t,e){return new V(e?function(n){return e.schedule(Dy,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function Dy(t){t.subscriber.error(t.error)}var Ay,Iy=function(){var t=function(){function t(e,n,i){y(this,t),this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}return b(t,[{key:"observe",value:function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}},{key:"do",value:function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Sf(this.value);case"E":return Ey(this.error);case"C":return _p()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();try{Ay="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(MH){Ay=!1}var Oy,Ty,Ry,My,Py=function(){var t=function t(e){y(this,t),this._platformId=e,this.isBrowser=this._platformId?"browser"===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&&!Ay)&&"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)(fe(Zl))},t.\u0275prov=It({factory:function(){return new t(fe(Zl))},token:t,providedIn:"root"}),t}(),Fy=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),Ly=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ny(){if(Oy)return Oy;if("object"!=typeof document||!document)return Oy=new Set(Ly);var t=document.createElement("input");return Oy=new Set(Ly.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function Vy(t){return function(){if(null==Ty&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Ty=!0}}))}finally{Ty=Ty||!1}return Ty}()?t:!!t.capture}function By(){if("object"!=typeof document||!document)return 0;if(null==Ry){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),Ry=0,0===t.scrollLeft&&(t.scrollLeft=1,Ry=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return Ry}function jy(t){if(function(){if(null==My){var t="undefined"!=typeof document?document.head:null;My=!(!t||!t.createShadowRoot&&!t.attachShadow)}return My}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}var zy=new re("cdk-dir-doc",{providedIn:"root",factory:function(){return pe(Wc)}}),Hy=function(){var t=function(){function t(e){if(y(this,t),this.value="ltr",this.change=new bl,e){var n=(e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return b(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(zy,8))},t.\u0275prov=It({factory:function(){return new t(fe(zy,8))},token:t,providedIn:"root"}),t}(),Uy=function(){var t=function(){function t(){y(this,t),this._dir="ltr",this._isInitialized=!1,this.change=new bl}return b(t,[{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}},{key:"dir",get:function(){return this._dir},set:function(t){var e=this._dir,n=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===n||"rtl"===n?n:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&ts("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[pu([{provide:Hy,useExisting:t}])]}),t}(),Wy=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),qy=function t(){y(this,t)};function Gy(t){return t&&"function"==typeof t.connect}var Yy=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];y(this,t),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new U,i&&i.length&&(n?i.forEach((function(t){return e._markSelected(t)})):this._markSelected(i[0]),this._selectedToEmit.length=0)}return b(t,[{key:"select",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),t}(),Ky=function(){var t=function(){function t(){y(this,t),this._listeners=[]}return b(t,[{key:"notify",value:function(t,e){var n,i=h(this._listeners);try{for(i.s();!(n=i.n()).done;)(0,n.value)(t,e)}catch(r){i.e(r)}finally{i.f()}}},{key:"listen",value:function(t){var e=this;return this._listeners.push(t),function(){e._listeners=e._listeners.filter((function(e){return t!==e}))}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Zy=function(){var t=function(){function t(e,n,i){y(this,t),this._ngZone=e,this._platform=n,this._scrolled=new U,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return b(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe((function(){return e._scrolled.next(t)})))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new V((function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(wy(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):Sf()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,n){return t.deregister(n)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Df((function(t){return!t||n.indexOf(t)>-1})))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach((function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)})),n}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return ty(t._getWindow().document,"scroll").subscribe((function(){return t._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(cc),fe(Py),fe(Wc,8))},t.\u0275prov=It({factory:function(){return new t(fe(cc),fe(Py),fe(Wc,8))},token:t,providedIn:"root"}),t}(),$y=function(){var t=function(){function t(e,n,i,r){var a=this;y(this,t),this.elementRef=e,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new U,this._elementScrolled=new V((function(t){return a.ngZone.runOutsideAngular((function(){return ty(a.elementRef.nativeElement,"scroll").pipe(Cy(a._destroyed)).subscribe(t)}))}))}return b(t,[{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(t){var e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=By()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==By()?t.left=t.right:1==By()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==By()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==By()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Zy),rs(cc),rs(Hy,8))},t.\u0275dir=Be({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t}(),Xy=function(){var t=function(){function t(e,n,i){var r=this;y(this,t),this._platform=e,this._change=new U,this._changeListener=function(t){r._change.next(t)},this._document=i,n.runOutsideAngular((function(){if(e.isBrowser){var t=r._getWindow();t.addEventListener("resize",r._changeListener),t.addEventListener("orientationchange",r._changeListener)}r.change().subscribe((function(){return r._updateViewportSize()}))}))}return b(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(wy(t)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Py),fe(cc),fe(Wc,8))},t.\u0275prov=It({factory:function(){return new t(fe(Py),fe(cc),fe(Wc,8))},token:t,providedIn:"root"}),t}(),Qy=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),Jy=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Wy,Fy,Qy],Wy,Qy]}),t}();function t_(){throw Error("Host already has a portal attached")}var e_=function(){function t(){y(this,t)}return b(t,[{key:"attach",value:function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&t_(),this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),t}(),n_=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this)).component=t,o.viewContainerRef=i,o.injector=r,o.componentFactoryResolver=a,o}return n}(e_),i_=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this)).templateRef=t,a.viewContainerRef=i,a.context=r,a}return b(n,[{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,r(i(n.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,r(i(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(e_),r_=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this)).element=t instanceof _u?t.nativeElement:t,i}return n}(e_),a_=function(){function t(){y(this,t),this._isDisposed=!1,this.attachDomPortal=null}return b(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&t_(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof n_?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof i_?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof r_?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}},{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(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),o_=function(t){f(n,t);var e=g(n);function n(t,o,s,u,l){var c,h;return y(this,n),(h=e.call(this)).outletElement=t,h._componentFactoryResolver=o,h._appRef=s,h._defaultInjector=u,h.attachDomPortal=function(t){if(!h._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");var o=h._document.createComment("dom-portal");e.parentNode.insertBefore(o,e),h.outletElement.appendChild(e),r((c=a(h),i(n.prototype)),"setDisposeFn",c).call(c,(function(){o.parentNode&&o.parentNode.replaceChild(e,o)}))},h._document=l,h}return b(n,[{key:"attachComponentPortal",value:function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn((function(){return e.destroy()}))):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn((function(){n._appRef.detachView(e.hostView),e.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(e)),e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),i.detectChanges(),this.setDisposeFn((function(){var t=n.indexOf(i);-1!==t&&n.remove(t)})),i}},{key:"dispose",value:function(){r(i(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(a_),s_=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){return y(this,n),e.call(this,t,i)}return n}(i_);return t.\u0275fac=function(e){return new(e||t)(rs(Uu),rs(qu))},t.\u0275dir=Be({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[eu]}),t}(),u_=function(){var t=function(t){f(n,t);var e=g(n);function n(t,o,s){var u,l;return y(this,n),(l=e.call(this))._componentFactoryResolver=t,l._viewContainerRef=o,l._isInitialized=!1,l.attached=new bl,l.attachDomPortal=function(t){if(!l._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");var o=l._document.createComment("dom-portal");t.setAttachedHost(a(l)),e.parentNode.insertBefore(o,e),l._getRootNode().appendChild(e),r((u=a(l),i(n.prototype)),"setDisposeFn",u).call(u,(function(){o.parentNode&&o.parentNode.replaceChild(e,o)}))},l._document=s,l}return b(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,a=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),o=e.createComponent(a,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),r(i(n.prototype),"setDisposeFn",this).call(this,(function(){return o.destroy()})),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var a=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return r(i(n.prototype),"setDisposeFn",this).call(this,(function(){return e._viewContainerRef.clear()})),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&r(i(n.prototype),"detach",this).call(this),t&&r(i(n.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(a_);return t.\u0275fac=function(e){return new(e||t)(rs(yu),rs(qu),rs(Wc))},t.\u0275dir=Be({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[eu]}),t}(),l_=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(u_);return t.\u0275fac=function(e){return c_(e||t)},t.\u0275dir=Be({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[pu([{provide:u_,useExisting:t}]),eu]}),t}(),c_=Vi(l_),h_=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),d_=function(){function t(e,n){y(this,t),this._parentInjector=e,this._customTokens=n}return b(t,[{key:"get",value:function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}]),t}(),f_=function(){function t(e,n){y(this,t),this.predicate=e,this.inclusive=n}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new p_(t,this.predicate,this.inclusive))}}]),t}(),p_=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t)).predicate=i,a.inclusive=r,a.index=0,a}return b(n,[{key:"_next",value:function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(t,e)}},{key:"nextOrComplete",value:function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}]),n}(M);function m_(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;ie.height||t.scrollWidth>e.width}}]),t}();function g_(){return Error("Scroll strategy has already been attached.")}var y_=function(){function t(e,n,i,r){var a=this;y(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run((function(){return a._overlayRef.detach()}))}}return b(t,[{key:"attach",value:function(t){if(this._overlayRef)throw g_();this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.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}(),__=function(){function t(){y(this,t)}return b(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function b_(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function k_(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var w_=function(){function t(e,n,i,r){y(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return b(t,[{key:"attach",value:function(t){if(this._overlayRef)throw g_();this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;b_(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),C_=function(){var t=function t(e,n,i,r){var a=this;y(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new __},this.close=function(t){return new y_(a._scrollDispatcher,a._ngZone,a._viewportRuler,t)},this.block=function(){return new v_(a._viewportRuler,a._document)},this.reposition=function(t){return new w_(a._scrollDispatcher,a._viewportRuler,a._ngZone,t)},this._document=r};return t.\u0275fac=function(e){return new(e||t)(fe(Zy),fe(Xy),fe(cc),fe(Wc))},t.\u0275prov=It({factory:function(){return new t(fe(Zy),fe(Xy),fe(cc),fe(Wc))},token:t,providedIn:"root"}),t}(),x_=function t(e){if(y(this,t),this.scrollStrategy=new __,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,this.excludeFromOutsideClick=[],e)for(var n=0,i=Object.keys(e);n-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Wc))},t.\u0275prov=It({factory:function(){return new t(fe(Wc))},token:t,providedIn:"root"}),t}(),O_=function(){var t=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this,t))._keydownListener=function(t){for(var e=i._attachedOverlays,n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}},i}return b(n,[{key:"add",value:function(t){r(i(n.prototype),"add",this).call(this,t),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}(I_);return t.\u0275fac=function(e){return new(e||t)(fe(Wc))},t.\u0275prov=It({factory:function(){return new t(fe(Wc))},token:t,providedIn:"root"}),t}(),T_=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,n=r._attachedOverlays,i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)){var o=a.getConfig();if([].concat(l(o.excludeFromOutsideClick),[a.overlayElement]).some((function(t){return t.contains(e)})))break;a._outsidePointerEvents.next(t)}}},r}return b(n,[{key:"add",value:function(t){r(i(n.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(I_);return t.\u0275fac=function(e){return new(e||t)(fe(Wc),fe(Py))},t.\u0275prov=It({factory:function(){return new t(fe(Wc),fe(Py))},token:t,providedIn:"root"}),t}(),R_=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),M_=function(){var t=function(){function t(e,n){y(this,t),this._platform=n,this._document=e}return b(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||R_)for(var e=this._document.querySelectorAll(".".concat("cdk-overlay-container",'[platform="server"], ')+".".concat("cdk-overlay-container",'[platform="test"]')),n=0;np&&(p=g,f=v)}}catch(y){m.e(y)}finally{m.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&N_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),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();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,n){var i;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+i,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}}},{key:"_getOverlayFit",value:function(t,e,n,i){var r=t.x,a=t.y,o=this._getOffset(i,"x"),s=this._getOffset(i,"y");o&&(r+=o),s&&(a+=s);var u=0-a,l=a+e.height-n.height,c=this._subtractOverflows(e.width,0-r,r+e.width-n.width),h=this._subtractOverflows(e.height,u,l),d=c*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:c==e.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,a=V_(this._overlayRef.getConfig().minHeight),o=V_(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=a&&a<=i)&&(t.fitsInViewportHorizontally||null!=o&&o<=r)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,r,a=this._viewportRect,o=Math.max(t.x+e.width-a.right,0),s=Math.max(t.y+e.height-a.bottom,0),u=Math.max(a.top-n.top-t.y,0),l=Math.max(a.left-n.left-t.x,0);return this._previousPushAmount={x:i=e.width<=a.width?l||-o:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}if("end"===e.overlayX&&!l||"start"===e.overlayX&&l)s=u.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!l||"end"===e.overlayX&&l)o=t.x,a=u.right-t.x;else{var d=Math.min(u.right-t.x+u.left,t.x),f=this._lastBoundingBoxSize.width;o=t.x-d,(a=2*d)>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.x-f/2)}return{top:i,left:o,bottom:r,right:s,width:a,height:n}}},{key:"_setBoundingBoxStyles",value:function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=Qg(n.height),i.top=Qg(n.top),i.bottom=Qg(n.bottom),i.width=Qg(n.width),i.left=Qg(n.left),i.right=Qg(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Qg(r)),a&&(i.maxWidth=Qg(a))}this._lastBoundingBoxSize=n,N_(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){N_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){N_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();N_(n,this._getExactOverlayY(e,t,o)),N_(n,this._getExactOverlayX(e,t,o))}else n.position="static";var s="",u=this._getOffset(e,"x"),l=this._getOffset(e,"y");u&&(s+="translateX(".concat(u,"px) ")),l&&(s+="translateY(".concat(l,"px)")),n.transform=s.trim(),a.maxHeight&&(i?n.maxHeight=Qg(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=Qg(a.maxWidth):r&&(n.maxWidth="")),N_(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=a,"bottom"===t.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=Qg(r.y),i}},{key:"_getExactOverlayX",value:function(t,e,n){var i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=Qg(r.x),i}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:k_(t,n),isOriginOutsideView:b_(t,n),isOverlayClipped:k_(e,n),isOverlayOutsideView:b_(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,a=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),u=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=u?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),z_=function(){var t=function(){function t(e,n,i,r){y(this,t),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r}return b(t,[{key:"global",value:function(){return new j_}},{key:"connectedTo",value:function(t,e,n){return new B_(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new L_(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Xy),fe(Wc),fe(Py),fe(M_))},t.\u0275prov=It({factory:function(){return new t(fe(Xy),fe(Wc),fe(Py),fe(M_))},token:t,providedIn:"root"}),t}(),H_=0,U_=function(){var t=function(){function t(e,n,i,r,a,o,s,u,l,c,h){y(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=o,this._ngZone=s,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}return b(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new x_(t);return r.direction=r.direction||this._directionality.value,new P_(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(H_++),e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(Tc)),new o_(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(C_),fe(M_),fe(yu),fe(z_),fe(O_),fe(Uo),fe(cc),fe(Wc),fe(Hy),fe(ah,8),fe(T_,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),W_=[{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"}],q_=new re("cdk-connected-overlay-scroll-strategy"),G_=function(){var t=function t(e){y(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),Y_=function(){var t=function(){function t(e,n,i,r,a){y(this,t),this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=E.EMPTY,this._attachSubscription=E.EMPTY,this._detachSubscription=E.EMPTY,this._positionSubscription=E.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new bl,this.positionChange=new bl,this.attach=new bl,this.detach=new bl,this.overlayKeydown=new bl,this.overlayOutsideClick=new bl,this._templatePortal=new i_(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return b(t,[{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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=W_);var e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe((function(){return t.attach.emit()})),this._detachSubscription=e.detachments().subscribe((function(){return t.detach.emit()})),e.keydownEvents().subscribe((function(e){t.overlayKeydown.next(e),27!==e.keyCode||m_(e)||(e.preventDefault(),t._detachOverlay())})),this._overlayRef.outsidePointerEvents().subscribe((function(e){t.overlayOutsideClick.next(e)}))}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new x_({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,n=this.positions.map((function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}}));return t.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}},{key:"_attachOverlay",value:function(){var t=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(e){t.backdropClick.emit(e)})):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new f_(t,e))}}((function(){return t.positionChange.observers.length>0}))).subscribe((function(e){t.positionChange.emit(e),0===t.positionChange.observers.length&&t._positionSubscription.unsubscribe()})))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Kg(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=Kg(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=Kg(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=Kg(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=Kg(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(U_),rs(Uu),rs(qu),rs(q_),rs(Hy,8))},t.\u0275dir=Be({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Qe]}),t}(),K_={provide:q_,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Z_=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[U_,K_],imports:[[Wy,h_,Jy],Jy]}),t}();function $_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:my;return function(n){return n.lift(new X_(t,e))}}var X_=function(){function t(e,n){y(this,t),this.dueTime=e,this.scheduler=n}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Q_(t,this.dueTime,this.scheduler))}}]),t}(),Q_=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return b(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(J_,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),n}(M);function J_(t){t.debouncedNext()}var tb=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return new t},token:t,providedIn:"root"}),t}(),eb=function(){var t=function(){function t(e){y(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return b(t,[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach((function(e,n){return t._cleanupObserver(n)}))}},{key:"observe",value:function(t){var e=this,n=Jg(t);return new V((function(t){var i=e._observeElement(n).subscribe(t);return function(){i.unsubscribe(),e._unobserveElement(n)}}))}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new U,n=this._mutationObserverFactory.create((function(t){return e.next(t)}));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}},{key:"_unobserveElement",value:function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}},{key:"_cleanupObserver",value:function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(tb))},t.\u0275prov=It({factory:function(){return new t(fe(tb))},token:t,providedIn:"root"}),t}(),nb=function(){var t=function(){function t(e,n,i){y(this,t),this._contentObserver=e,this._elementRef=n,this._ngZone=i,this.event=new bl,this._disabled=!1,this._currentSubscription=null}return b(t,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){t._currentSubscription=(t.debounce?e.pipe($_(t.debounce)):e).subscribe(t.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Kg(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=Zg(t),this._subscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(eb),rs(_u),rs(cc))},t.\u0275dir=Be({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t}(),ib=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[tb]}),t}();function rb(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var ab=0,ob=new Map,sb=null,ub=function(){var t=function(){function t(e,n){y(this,t),this._platform=n,this._document=e}return b(t,[{key:"describe",value:function(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),ob.set(e,{messageElement:e,referenceCount:0})):ob.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}},{key:"removeDescription",value:function(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){var n=ob.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e)}sb&&0===sb.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[".concat("cdk-describedby-host","]")),e=0;e-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}}))}return b(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;if(this._items.length&&this._items.some((function(t){return"function"!=typeof t.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zp((function(e){return t._pressedLetters.push(e)})),$_(e),Df((function(){return t._pressedLetters.length>0})),G((function(){return t._pressedLetters.join("")}))).subscribe((function(e){for(var n=t._getItemsArray(),i=1;i-1}));switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||m_(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{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(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof wl?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}(),cb=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(lb),hb=function(t){f(n,t);var e=g(n);function n(){var t;return y(this,n),(t=e.apply(this,arguments))._origin="program",t}return b(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(lb),db=function(){var t=function(){function t(e){y(this,t),this._platform=e}return b(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(MH){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){if(-1===pb(n))return!1;if(!this.isVisible(n))return!1}var i=t.nodeName.toLowerCase(),r=pb(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||fb(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Py))},t.\u0275prov=It({factory:function(){return new t(fe(Py))},token:t,providedIn:"root"}),t}();function fb(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function pb(t){if(!fb(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var mb=function(){function t(e,n,i,r){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];y(this,t),this._element=e,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return b(t,[{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.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(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),n=0;n=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var 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}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Lp(1)).subscribe(t)}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}}]),t}(),vb=function(){var t=function(){function t(e,n,i){y(this,t),this._checker=e,this._ngZone=n,this._document=i}return b(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new mb(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(db),fe(cc),fe(Wc))},t.\u0275prov=It({factory:function(){return new t(fe(db),fe(cc),fe(Wc))},token:t,providedIn:"root"}),t}(),gb=function(){var t=function(){function t(e,n,i){y(this,t),this._elementRef=e,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return b(t,[{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(t){var e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}},{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=Kg(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=Kg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(vb),rs(Wc))},t.\u0275dir=Be({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Qe]}),t}();"undefined"!=typeof Element&∈var yb=new re("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),_b=new re("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),bb=function(){var t=function(){function t(e,n,i,r){y(this,t),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=e||this._createLiveElement()}return b(t,[{key:"announce",value:function(t){for(var e,n,i=this,r=this._defaultOptions,a=arguments.length,o=new Array(a>1?a-1:0),s=1;s1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Sf(null);var n=Jg(t),i=jy(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject.asObservable();var a={checkChildren:e,subject:new U,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject.asObservable()}},{key:"stopMonitoring",value:function(t){var e=Jg(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var i=Jg(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach((function(e,n){return t.stopMonitoring(n)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular((function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout((function(){return e._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(t){var e=Eb(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===Eb(t))){var i=this._getFocusOrigin(t);this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run((function(){return t.next(e)}))}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,xb),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,xb)})),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,xb),t.addEventListener("mousedown",e._documentMousedownListener,xb),t.addEventListener("touchstart",e._documentTouchstartListener,xb),n.addEventListener("focus",e._windowFocusListener)}))}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,xb),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,xb),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,xb),i.removeEventListener("mousedown",this._documentMousedownListener,xb),i.removeEventListener("touchstart",this._documentTouchstartListener,xb),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(cc),fe(Py),fe(Wc,8),fe(Cb,8))},t.\u0275prov=It({factory:function(){return new t(fe(cc),fe(Py),fe(Wc,8),fe(Cb,8))},token:t,providedIn:"root"}),t}();function Eb(t){return t.composedPath?t.composedPath()[0]:t.target}var Db=function(){var t=function(){function t(e,n){y(this,t),this._elementRef=e,this._focusMonitor=n,this.cdkFocusChange=new bl}return b(t,[{key:"ngAfterViewInit",value:function(){var t=this;this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(e){return t.cdkFocusChange.emit(e)}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Sb))},t.\u0275dir=Be({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),Ab=function(){var t=function(){function t(e,n){y(this,t),this._platform=e,this._document=n}return b(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Py),fe(Wc))},t.\u0275prov=It({factory:function(){return new t(fe(Py),fe(Wc))},token:t,providedIn:"root"}),t}(),Ib=function(){var t=function t(e){y(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)(fe(Ab))},imports:[[Fy,ib]]}),t}(),Ob=new Eu("10.1.2"),Tb=function t(){y(this,t)},Rb=function t(){y(this,t)};function Mb(t,e){return{type:7,name:t,definitions:e,options:{}}}function Pb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function Fb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:t,options:e}}function Lb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function Nb(t){return{type:6,styles:t,offset:null}}function Vb(t,e,n){return{type:0,name:t,styles:e,options:n}}function Bb(t){return{type:5,steps:t}}function jb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function zb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function Hb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:n}}function Ub(t){Promise.resolve(null).then(t)}var Wb=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;y(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+n}return b(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{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 t=this;Ub((function(){return t._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(t){return t()})),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(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(t){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}(),qb=function(){function t(e){var n=this;y(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=e;var i=0,r=0,a=0,o=this.players.length;0==o?Ub((function(){return n._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++i==o&&n._onFinish()})),t.onDestroy((function(){++r==o&&n._onDestroy()})),t.onStart((function(){++a==o&&n._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return b(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(t){return t.init()}))}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(t){return t.play()}))}},{key:"pause",value:function(){this.players.forEach((function(t){return t.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(t){return t.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(t){return t.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(t){return t.destroy()})),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(t){return t.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach((function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)}))}},{key:"getPosition",value:function(){var t=0;return this.players.forEach((function(e){var n=e.getPosition();t=Math.min(n,t)})),t}},{key:"beforeDestroy",value:function(){this.players.forEach((function(t){t.beforeDestroy&&t.beforeDestroy()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}();function Gb(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Yb(t){switch(t.length){case 0:return new Wb;case 1:return t[0];default:return new qb(t)}}function Kb(t,e,n,i){var r=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(i.forEach((function(t){var n=t.offset,i=n==u,c=i&&l||{};Object.keys(t).forEach((function(n){var i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),s){case"!":s=r[n];break;case"*":s=a[n];break;default:s=e.normalizeStyleValue(n,i,s,o)}c[i]=s})),i||s.push(c),l=c,u=n})),o.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(o.join(c)))}return s}function Zb(t,e,n,i){switch(e){case"start":t.onStart((function(){return i(n&&$b(n,"start",t))}));break;case"done":t.onDone((function(){return i(n&&$b(n,"done",t))}));break;case"destroy":t.onDestroy((function(){return i(n&&$b(n,"destroy",t))}))}}function $b(t,e,n){var i=n.totalTime,r=Xb(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),a=t._data;return null!=a&&(r._data=a),r}function Xb(t,e,n,i){var r=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:e,fromState:n,toState:i,phaseName:r,totalTime:a,disabled:!!o}}function Qb(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function Jb(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var tk=function(t,e){return!1},ek=function(t,e){return!1},nk=function(t,e,n){return[]},ik=Gb();(ik||"undefined"!=typeof Element)&&(tk=function(t,e){return t.contains(e)},ek=function(){if(ik||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:ek}(),nk=function(t,e,n){var i=[];if(n)i.push.apply(i,l(t.querySelectorAll(e)));else{var r=t.querySelector(e);r&&i.push(r)}return i});var rk=null,ak=!1;function ok(t){rk||(rk=("undefined"!=typeof document?document.body:null)||{},ak=!!rk.style&&"WebkitAppearance"in rk.style);var e=!0;return rk.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in rk.style)&&ak&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in rk.style),e}var sk=ek,uk=tk,lk=nk;function ck(t){var e={};return Object.keys(t).forEach((function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]})),e}var hk=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"validateStyleProperty",value:function(t){return ok(t)}},{key:"matchesElement",value:function(t,e){return sk(t,e)}},{key:"containsElement",value:function(t,e){return uk(t,e)}},{key:"query",value:function(t,e,n){return lk(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return n||""}},{key:"animate",value:function(t,e,n,i,r){return new Wb(n,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),dk=function(){var t=function t(){y(this,t)};return t.NOOP=new hk,t}();function fk(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:pk(parseFloat(e[1]),e[2])}function pk(t,e){switch(e){case"s":return 1e3*t;default:return t}}function mk(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var i,r=0,a="";if("string"==typeof t){var o=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return e.push('The provided timing value "'.concat(t,'" is invalid.')),{duration:0,delay:0,easing:""};i=pk(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(r=pk(parseFloat(s),o[4]));var u=o[5];u&&(a=u)}else i=t;if(!n){var l=!1,c=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(c,0,'The provided timing value "'.concat(t,'" is invalid.'))}return{duration:i,delay:r,easing:a}}(t,e,n)}function vk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}function gk(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var i in t)n[i]=t[i];else vk(t,n);return n}function yk(t,e,n){return n?e+":"+n+";":""}function _k(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var a=r[1],o=r[2],s=r[3];e.push(Fk(a,s)),"<"!=o[0]||"*"==a&&"*"==s||e.push(Fk(s,a))}(t,r,i)})):r.push(n),r),animation:a,queryCount:e.queryCount,depCount:e.depCount,options:zk(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return Tk(n,t,e)})),options:zk(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,i=e.currentTime,r=0,a=t.steps.map((function(t){e.currentTime=i;var a=Tk(n,t,e);return r=Math.max(r,e.currentTime),a}));return e.currentTime=r,{type:3,steps:a,options:zk(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Hk(mk(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var r=Hk(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Hk((n=n||mk(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:Nb({});if(5==r.type)n=this.visitKeyframes(r,e);else{var a=t.styles,o=!1;if(!a){o=!0;var s={};i.easing&&(s.easing=i.easing),a=Nb(s)}e.currentTime+=i.duration+i.delay;var u=this.visitStyle(a,e);u.isEmptyStep=o,n=u}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?"*"==t?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)})):n.push(t.styles);var i=!1,r=null;return n.forEach((function(t){if(jk(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var a in e)if(e[a].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,a=e.currentTime;i&&a>0&&(a-=i.duration+i.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(i){if(n._driver.validateStyleProperty(i)){var o,s,u,l=e.collectedStyles[e.currentQuerySelector],c=l[i],h=!0;c&&(a!=r&&a>=c.startTime&&r<=c.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(c.startTime,'ms" and "').concat(c.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(r,'ms"')),h=!1),a=c.startTime),h&&(l[i]={startTime:a,endTime:r}),e.options&&(o=e.errors,s=e.options.params||{},(u=xk(t[i])).length&&u.forEach((function(t){s.hasOwnProperty(t)||o.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))})))}else e.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,a=[],o=!1,s=!1,u=0,l=t.steps.map((function(t){var i=n._makeStyleAst(t,e),l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(jk(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(jk(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,o=o||c0&&r0?r==d?1:h*r:a[r],s=o*m;e.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(t,e),t.offset=o,i.styles.push(t)})),i}},{key:"visitReference",value:function(t,e){return{type:8,animation:Tk(this,wk(t.animation),e),options:zk(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:zk(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:zk(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=u(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(Lk,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),a=r[0],o=r[1];e.currentQuerySelector=n.length?n+" "+a:a,Qb(e.collectedStyles,e.currentQuerySelector,{});var s=Tk(this,wk(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:zk(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:mk(t.timings,e.errors,!0);return{type:12,animation:Tk(this,wk(t.animation),e),timings:n,options:null}}}]),t}(),Bk=function t(e){y(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function jk(t){return!Array.isArray(t)&&"object"==typeof t}function zk(t){var e;return t?(t=vk(t)).params&&(t.params=(e=t.params)?vk(e):null):t={},t}function Hk(t,e,n){return{duration:t,delay:e,easing:n}}function Uk(t,e,n,i,r,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:e,preStyleProps:n,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var Wk=function(){function t(){y(this,t),this._map=new Map}return b(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,i=this._map.get(t);i||this._map.set(t,i=[]),(n=i).push.apply(n,l(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),qk=new RegExp(":enter","g"),Gk=new RegExp(":leave","g");function Yk(t,e,n,i,r){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 Kk).buildKeyframes(t,e,n,i,r,a,o,s,u,l)}var Kk=function(){function t(){y(this,t)}return b(t,[{key:"buildKeyframes",value:function(t,e,n,i,r,a,o,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new Wk;var c=new $k(t,e,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([a],null,c.errors,s),Tk(this,n,c);var h=c.timelines.filter((function(t){return t.containsAnimation()}));if(h.length&&Object.keys(o).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([o],null,c.errors,s)}return h.length?h.map((function(t){return t.buildKeyframes()})):[Uk(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?fk(n.duration):null,a=null!=n.delay?fk(n.delay):null;return 0!==r&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,r,a);i=Math.max(i,n.duration+n.delay)})),i}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Tk(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,i=e.subContextCount,r=e,a=t.options;if(a&&(a.params||a.delay)&&((r=e.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Zk);var o=fk(a.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach((function(t){return Tk(n,t,r)})),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,a=t.options&&t.options.delay?fk(t.options.delay):0;t.steps.forEach((function(o){var s=e.createSubContext(t.options);a&&s.delayNextStep(a),Tk(n,o,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(r),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return mk(e.params?Sk(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach((function(t){a.forwardTime((t.offset||0)*r),a.setStyles(t.styles,t.easing,e.errors,e.options),a.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},a=r.delay?fk(r.delay):0;a&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Zk);var o=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach((function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);a&&s.delayNextStep(a),i===e.element&&(u=s.currentTimeline),Tk(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,a=Math.abs(r.duration),o=a*(e.currentQueryTotal-1),s=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;Tk(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),t}(),Zk={},$k=function(){function t(e,n,i,r,a,o,s,u){y(this,t),this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Zk,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Xk(this._driver,n,0),s.push(this.currentTimeline)}return b(t,[{key:"updateOptions",value:function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=fk(i.duration)),null!=i.delay&&(r.delay=fk(i.delay));var a=i.params;if(a){var o=r.params;o||(o=this.options.params={}),Object.keys(a).forEach((function(t){e&&o.hasOwnProperty(t)||(o[t]=Sk(a[t],o,n.errors))}))}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach((function(t){n[t]=e[t]}))}}return t}},{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,r=n||this.element,a=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(e),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Zk,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new Qk(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,i,r,a){var o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(qk,"."+this._enterClassName)).replace(Gk,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),o.push.apply(o,l(s))}return r||0!=o.length||a.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),o}},{key:"params",get:function(){return this.options.params}}]),t}(),Xk=function(){function t(e,n,i,r){y(this,t),this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return b(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:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||"*",e._currentKeyframe[t]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var a=i&&i.params||{},o=function(t,e){var n,i={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){i[t]="*"})):gk(t,!1,i)})),i}(t,this._globalTimelineStyles);Object.keys(o).forEach((function(t){var e=Sk(o[t],a,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:"*"),r._updateStyle(t,e)}))}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){t._currentKeyframe[n]=e[n]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach((function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)}))}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach((function(a,o){var s=gk(a,!0);Object.keys(s).forEach((function(t){var i=s[t];"!"==i?e.add(t):"*"==i&&n.add(t)})),i||(s.offset=o/t.duration),r.push(s)}));var a=e.size?Ek(e.values()):[],o=n.size?Ek(n.values()):[];if(i){var s=r[0],u=vk(s);s.offset=0,u.offset=1,r=[s,u]}return Uk(this.element,r,a,o,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}}]),t}(),Qk=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return y(this,n),(u=e.call(this,t,i,s.delay)).element=i,u.keyframes=r,u.preStyleProps=a,u.postStyleProps=o,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return b(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=i+n,s=n/o,u=gk(t[0],!1);u.offset=0,a.push(u);var l=gk(t[0],!1);l.offset=Jk(s),a.push(l);for(var c=t.length-1,h=1;h<=c;h++){var d=gk(t[h],!1);d.offset=Jk((n+d.offset*i)/o),a.push(d)}i=o,n=0,r="",t=a}return Uk(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Xk);function Jk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var tw=function t(){y(this,t)},ew=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"normalizePropertyName",value:function(t,e){return Ak(t)}},{key:"normalizeStyleValue",value:function(t,e,n,i){var r="",a=n.toString().trim();if(nw[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return a+r}}]),n}(tw),nw=function(){return t="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(","),e={},t.forEach((function(t){return e[t]=!0})),e;var t,e}();function iw(t,e,n,i,r,a,o,s,u,l,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:a,toState:i,toStyles:o,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:d}}var rw={},aw=function(){function t(e,n,i){y(this,t),this._triggerName=e,this.ast=n,this._stateStyles=i}return b(t,[{key:"match",value:function(t,e,n,i){return function(t,e,n,i,r){return t.some((function(t){return t(e,n,i,r)}))}(this.ast.matchers,t,e,n,i)}},{key:"buildStyles",value:function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],a=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):a}},{key:"build",value:function(t,e,n,i,r,a,o,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||rw,d=this.buildStyles(n,o&&o.params||rw,c),f=s&&s.params||rw,p=this.buildStyles(i,f,c),m=new Set,v=new Map,g=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),f)},b=l?[]:Yk(t,e,this.ast.animation,r,a,d,p,_,u,c),k=0;if(b.forEach((function(t){k=Math.max(t.duration+t.delay,k)})),c.length)return iw(e,this._triggerName,n,i,y,d,p,[],[],v,g,k,c);b.forEach((function(t){var n=t.element,i=Qb(v,n,{});t.preStyleProps.forEach((function(t){return i[t]=!0}));var r=Qb(g,n,{});t.postStyleProps.forEach((function(t){return r[t]=!0})),n!==e&&m.add(n)}));var w=Ek(m.values());return iw(e,this._triggerName,n,i,y,d,p,b,w,v,g,k)}}]),t}(),ow=function(){function t(e,n){y(this,t),this.styles=e,this.defaultParams=n}return b(t,[{key:"buildStyles",value:function(t,e){var n={},i=vk(this.defaultParams);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&(i[e]=n)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach((function(t){var a=r[t];a.length>1&&(a=Sk(a,i,e)),n[t]=a}))}})),n}}]),t}(),sw=function(){function t(e,n){var i=this;y(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(t){i.states[t.name]=new ow(t.style,t.options&&t.options.params||{})})),uw(this.states,"true","1"),uw(this.states,"false","0"),n.transitions.forEach((function(t){i.transitionFactories.push(new aw(e,t,i.states))})),this.fallbackTransition=new aw(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return b(t,[{key:"matchTransition",value:function(t,e,n,i){return this.transitionFactories.find((function(r){return r.match(t,e,n,i)}))||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),t}();function uw(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var lw=new Wk,cw=function(){function t(e,n,i){y(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return b(t,[{key:"register",value:function(t,e){var n=[],i=Nk(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=i}},{key:"_buildPlayer",value:function(t,e,n){var i=t.element,r=Kb(this._driver,this._normalizer,i,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],o=this._animations[t],s=new Map;if(o?(n=Yk(this._driver,e,o,"ng-enter","ng-leave",{},{},r,lw,a)).forEach((function(t){var e=Qb(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));s.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=i._driver.computeStyle(e,n,"*")}))}));var u=n.map((function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)})),l=Yb(u);return this._playersById[t]=l,l.onDestroy((function(){return i.destroy(t)})),this.players.push(l),l}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,n,i){var r=Xb(e,"","","");return Zb(this._getPlayer(t),n,r,i),function(){}}},{key:"command",value:function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])}}]),t}(),hw=[],dw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},fw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},pw=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";y(this,t),this.namespaceId=n;var i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=_w(r),i){var a=vk(e);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return b(t,[{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach((function(t){null==n[t]&&(n[t]=e[t])}))}}},{key:"params",get:function(){return this.options.params}}]),t}(),mw=new pw("void"),vw=function(){function t(e,n,i){y(this,t),this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,xw(n,this._hostClassName)}return b(t,[{key:"listen",value:function(t,e,n,i){var r,a=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var o=Qb(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);var u=Qb(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(xw(t,"ng-trigger"),xw(t,"ng-trigger-"+e),u[e]=mw),function(){a._engine.afterFlush((function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),a._triggers[e]||delete u[e]}))}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(e),o=new yw(this.id,e,t),s=this._engine.statesByElement.get(t);s||(xw(t,"ng-trigger"),xw(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],l=new pw(n,this.id),c=n&&n.hasOwnProperty("value");!c&&u&&l.absorbOptions(u.options),s[e]=l,u||(u=mw);var h="void"===l.value;if(h||u.value!==l.value){var d=Qb(this._engine.playersByElement,t,[]);d.forEach((function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()}));var f=a.matchTransition(u.value,l.value,t,l.params),p=!1;if(!f){if(!r)return;f=a.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:u,toState:l,player:o,isFallbackTransition:p}),p||(xw(t,"ng-animate-queued"),o.onStart((function(){Sw(t,"ng-animate-queued")}))),o.onDone((function(){var e=i.players.indexOf(o);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(o);r>=0&&n.splice(r,1)}})),this.players.push(o),d.push(o),o}if(!Dw(u.params,l.params)){var m=[],v=a.matchStyles(u.value,u.params,m),g=a.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush((function(){kk(t,v),bk(t,g)}))}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach((function(e,n){delete e[t]})),this._elementListeners.forEach((function(n,i){e._elementListeners.set(i,n.filter((function(e){return e.name!=t})))}))}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach((function(t){return t.destroy()})),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach((function(t){if(!t.__ng_removed){var i=n._engine.fetchNamespacesByElement(t);i.size?i.forEach((function(n){return n.triggerLeaveAnimation(t,e,!1,!0)})):n.clearElementCache(t)}})),this._engine.afterFlushAnimationsDone((function(){return i.forEach((function(t){return n.clearElementCache(t)}))}))}},{key:"triggerLeaveAnimation",value:function(t,e,n,i){var r=this,a=this._engine.statesByElement.get(t);if(a){var o=[];if(Object.keys(a).forEach((function(e){if(r._triggers[e]){var n=r.trigger(t,e,"void",i);n&&o.push(n)}})),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Yb(o).onDone((function(){return r._engine.processLeaveNode(t)})),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t);if(n){var i=new Set;n.forEach((function(n){var r=n.name;if(!i.has(r)){i.add(r);var a=e._triggers[r].fallbackTransition,o=e._engine.statesByElement.get(t)[r]||mw,s=new pw("void"),u=new yw(e.id,r,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:r,transition:a,fromState:o,toState:s,player:u,isFallbackTransition:!0})}}))}}},{key:"removeNode",value:function(t,e){var n=this,i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var r=!1;if(i.totalAnimations){var a=i.players.length?i.playersByQueriedElement.get(t):[];if(a&&a.length)r=!0;else for(var o=t;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{var s=t.__ng_removed;s&&s!==dw||(i.afterFlush((function(){return n.clearElementCache(t)})),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){xw(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach((function(i){var r=i.player;if(!r.destroyed){var a=i.element,o=e._elementListeners.get(a);o&&o.forEach((function(e){if(e.name==i.triggerName){var n=Xb(a,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Zb(i.player,e.phase,n,e.callback)}})),r.markedForDestroy?e._engine.afterFlush((function(){r.destroy()})):n.push(i)}})),this._queue=[],n.sort((function(t,n){var i=t.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:e._engine.driver.containsElement(t.element,n.element)?1:-1}))}},{key:"destroy",value:function(t){this.players.forEach((function(t){return t.destroy()})),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find((function(e){return e.element===t}))||e}}]),t}(),gw=function(){function t(e,n,i){y(this,t),this.bodyNode=e,this.driver=n,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=function(t,e){}}return b(t,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"createNamespace",value:function(t,e){var n=new vw(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush((function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return i.destroy(e)}))}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(a,1)}if(t){var o=this._fetchNamespace(t);o&&o.insertNode(e,n)}i&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),xw(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Sw(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,n,i){if(bw(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.removeNode(e,i)}}else this._onRemovalComplete(e,i)}},{key:"markElementAsRemoved",value:function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,i,r){return bw(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}}},{key:"_buildInstruction",value:function(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise((function(e){if(t.players.length)return Yb(t.players).onDone((function(){return e()}));e()}))}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=dw,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(e,n){return t._balanceNamespaceList(e,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;D--)this._namespaceList[D].drainQueuedTransitions(e).forEach((function(t){var e=t.player,a=t.element;if(S.push(e),n.collectedEnterElements.length){var l=a.__ng_removed;if(l&&l.setForMove)return void e.destroy()}var h=!d||!n.driver.containsElement(d,a),f=C.get(a),p=m.get(a),v=n._buildInstruction(t,i,p,f,h);if(v.errors&&v.errors.length)E.push(v);else{if(h)return e.onStart((function(){return kk(a,v.fromStyles)})),e.onDestroy((function(){return bk(a,v.toStyles)})),void r.push(e);if(t.isFallbackTransition)return e.onStart((function(){return kk(a,v.fromStyles)})),e.onDestroy((function(){return bk(a,v.toStyles)})),void r.push(e);v.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),i.append(a,v.timelines),o.push({instruction:v,player:e,element:a}),v.queriedElements.forEach((function(t){return Qb(s,t,[]).push(e)})),v.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var i=u.get(e);i||u.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}})),v.postStyleProps.forEach((function(t,e){var n=Object.keys(t),i=c.get(e);i||c.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}))}}));if(E.length){var A=[];E.forEach((function(t){A.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach((function(t){return A.push("- ".concat(t,"\n"))}))})),S.forEach((function(t){return t.destroy()})),this.reportError(A)}var I=new Map,O=new Map;o.forEach((function(t){var e=t.element;i.has(e)&&(O.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,I))})),r.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){Qb(I,e,[]).push(t),t.destroy()}))}));var T=g.filter((function(t){return Aw(t,u,c)})),R=new Map;ww(R,this.driver,_,c,"*").forEach((function(t){Aw(t,u,c)&&T.push(t)}));var M=new Map;p.forEach((function(t,e){ww(M,n.driver,new Set(t),u,"!")})),T.forEach((function(t){var e=R.get(t),n=M.get(t);R.set(t,Object.assign(Object.assign({},e),n))}));var P=[],F=[],L={};o.forEach((function(t){var e=t.element,o=t.player,s=t.instruction;if(i.has(e)){if(h.has(e))return o.onDestroy((function(){return bk(e,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var u=L;if(O.size>1){for(var l=e,c=[];l=l.parentNode;){var d=O.get(l);if(d){u=d;break}c.push(l)}c.forEach((function(t){return O.set(t,u)}))}var f=n._buildAnimation(o.namespaceId,s,I,a,M,R);if(o.setRealPlayer(f),u===L)P.push(o);else{var p=n.playersByElement.get(u);p&&p.length&&(o.parentPlayer=Yb(p)),r.push(o)}}else kk(e,s.fromStyles),o.onDestroy((function(){return bk(e,s.toStyles)})),F.push(o),h.has(e)&&r.push(o)})),F.forEach((function(t){var e=a.get(t.element);if(e&&e.length){var n=Yb(e);t.setRealPlayer(n)}})),r.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var N=0;N0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Wb(t.duration,t.delay)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach((function(e){e.players.forEach((function(e){e.queued&&t.push(e)}))})),t}}]),t}(),yw=function(){function t(e,n,i){y(this,t),this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new Wb,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return b(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(n){e._queuedCallbacks[n].forEach((function(e){return Zb(t,n,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart((function(){return n.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))}},{key:"_queueEvent",value:function(t,e){Qb(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{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(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function _w(t){return null!=t?t:null}function bw(t){return t&&1===t.nodeType}function kw(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function ww(t,e,n,i,r){var a=[];n.forEach((function(t){return a.push(kw(t))}));var o=[];i.forEach((function(n,i){var a={};n.forEach((function(t){var n=a[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=fw,o.push(i))})),t.set(i,a)}));var s=0;return n.forEach((function(t){return kw(t,a[s++])})),o}function Cw(t,e){var n=new Map;if(t.forEach((function(t){return n.set(t,[])})),0==e.length)return n;var i=new Set(e),r=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var a=r.get(e);if(a)return a;var o=e.parentNode;return a=n.has(o)?o:i.has(o)?1:t(o),r.set(e,a),a}(t);1!==e&&n.get(e).push(t)})),n}function xw(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Sw(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function Ew(t,e,n){Yb(n).onDone((function(){return t.processLeaveNode(e)}))}function Dw(t,e){var n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function Ow(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=Rw(e[0]),e.length>1&&(i=Rw(e[e.length-1]))):e&&(n=Rw(e)),n||i?new Tw(t,n,i):null}var Tw=function(){var t=function(){function t(e,n,i){y(this,t),this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return b(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&bk(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(bk(this._element,this._initialStyles),this._endStyles&&(bk(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(kk(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(kk(this._element,this._endStyles),this._endStyles=null),bk(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function Rw(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Vw(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(i=Nw(n=jw(t=this._element,"").split(","),e))>=0&&(n.splice(i,1),Bw(t,"",n.join(","))))}}]),t}();function Fw(t,e,n){Bw(t,"PlayState",n,Lw(t,e))}function Lw(t,e){var n=jw(t,"");return n.indexOf(",")>0?Nw(n.split(","),e):Nw([n],e)}function Nw(t,e){for(var n=0;n=0)return n;return-1}function Vw(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Bw(t,e,n,i){var r="animation"+e;if(null!=i){var a=t.style[r];if(a.length){var o=a.split(",");o[i]=n,n=o.join(",")}}t.style[r]=n}function jw(t,e){return t.style["animation"+e]}var zw=function(){function t(e,n,i,r,a,o,s,u){y(this,t),this.element=e,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=a,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+a,this._buildStyler()}return b(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new Pw(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:Rk(t.element,i))}))}this.currentSnapshot=e}}]),t}(),Hw=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=ck(i),r}return b(n,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(e){t._startingStyles[e]=t.element.style[e]})),r(i(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(e){return t.element.style.setProperty(e,t._styles[e])})),r(i(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)})),this._startingStyles=null,r(i(n.prototype),"destroy",this).call(this))}}]),n}(Wb),Uw=function(){function t(){y(this,t),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return b(t,[{key:"validateStyleProperty",value:function(t){return ok(t)}},{key:"matchesElement",value:function(t,e){return sk(t,e)}},{key:"containsElement",value:function(t,e){return uk(t,e)}},{key:"query",value:function(t,e,n){return lk(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map((function(t){return ck(t)}));var i="@keyframes ".concat(e," {\n"),r="";n.forEach((function(t){r=" ";var e=parseFloat(t.offset);i+="".concat(r).concat(100*e,"% {\n"),r+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(e,": ").concat(n,";\n"))}})),i+="".concat(r,"}\n")})),i+="}\n";var a=document.createElement("style");return a.innerHTML=i,a}},{key:"animate",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;o&&this._notifyFaultyScrubber();var s=a.filter((function(t){return t instanceof zw})),u={};Ik(n,i)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}));var l=Ww(e=Ok(t,e,u));if(0==n)return new Hw(t,l);var c="".concat("gen_css_kf_").concat(this._count++),h=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(h);var d=Ow(t,e),f=new zw(t,e,c,n,i,r,l,d);return f.onDestroy((function(){return qw(h)})),f}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),t}();function Ww(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}function qw(t){t.parentNode.removeChild(t)}var Gw=function(){function t(e,n,i,r){y(this,t),this.element=e,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return b(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Rk(t.element,n))})),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),t}(),Yw=function(){function t(){y(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Kw().toString()),this._cssKeyframesDriver=new Uw}return b(t,[{key:"validateStyleProperty",value:function(t){return ok(t)}},{key:"matchesElement",value:function(t,e){return sk(t,e)}},{key:"containsElement",value:function(t,e){return uk(t,e)}},{key:"query",value:function(t,e,n){return lk(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0,s=!o&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(t,e,n,i,r,a);var u=0==i?"both":"forwards",l={duration:n,delay:i,fill:u};r&&(l.easing=r);var c={},h=a.filter((function(t){return t instanceof Gw}));Ik(n,i)&&h.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var d=Ow(t,e=Ok(t,e=e.map((function(t){return gk(t,!1)})),c));return new Gw(t,e,l,d)}}]),t}();function Kw(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Zw=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Ie.None,styles:[],data:{animation:[]}}),r}return b(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Lb(t):t;return Qw(this._renderer,null,e,"register",[n]),new $w(e,this._renderer)}}]),n}(Tb);return t.\u0275fac=function(e){return new(e||t)(fe(ku),fe(Wc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),$w=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this))._id=t,r._renderer=i,r}return b(n,[{key:"create",value:function(t,e){return new Xw(this._id,t,e||{},this._renderer)}}]),n}(Rb),Xw=function(){function t(e,n,i,r){y(this,t),this.id=e,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return b(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0&&t1&&void 0!==arguments[1]?arguments[1]:0;return function(t){f(i,t);var n=g(i);function i(){var t;y(this,i);for(var r=arguments.length,a=new Array(r),o=0;o0?n:t}},{key:"localeChanges",get:function(){return this._localeChanges}}]),t}(),SC=new re("mat-date-formats");try{wC="undefined"!=typeof Intl}catch(MH){wC=!1}var EC={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},DC=OC(31,(function(t){return String(t+1)})),AC={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},IC=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function OC(t,e){for(var n=Array(t),i=0;i11)throw Error('Invalid month index "'.concat(e,'". Month index has to be between 0 and 11.'));if(n<1)throw Error('Invalid date "'.concat(n,'". Date has to be greater than 0.'));var i=this._createDateWithOverflow(t,e,n);if(i.getMonth()!=e)throw Error('Invalid date "'.concat(n,'" for month with index "').concat(e,'".'));return i}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}},{key:"format",value:function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(wC){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value:function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(IC.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return r(i(n.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,n){var i=new Date(t,e,n);return t>=0&&t<100&&i.setFullYear(this.getYear(i)-1900),i}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)}}]),n}(xC);return t.\u0275fac=function(e){return new(e||t)(fe(CC,8),fe(Py))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),RC=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[{provide:xC,useClass:TC}],imports:[[Fy]]}),t}(),MC={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},PC=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[{provide:SC,useValue:MC}],imports:[[RC]]}),t}(),FC=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return new t},token:t,providedIn:"root"}),t}(),LC=function(){function t(e,n,i){y(this,t),this._renderer=e,this.element=n,this.config=i,this.state=3}return b(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),NC={enterDuration:450,exitDuration:400},VC=Vy({passive:!0}),BC=["mousedown","touchstart"],jC=["mouseup","mouseleave","touchend","touchcancel"],zC=function(){function t(e,n,i,r){y(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Jg(i))}return b(t,[{key:"fadeInRipple",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},NC),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var o=i.radius||UC(t,e,r),s=t-r.left,u=e-r.top,l=a.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left="".concat(s-o,"px"),c.style.top="".concat(u-o,"px"),c.style.height="".concat(2*o,"px"),c.style.width="".concat(2*o,"px"),null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(c),HC(c),c.style.transform="scale(1)";var h=new LC(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var t=h===n._mostRecentTransientRipple;h.state=1,i.persistent||t&&n._isPointerDown||h.fadeOut()}),l),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},NC),t.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone((function(){t.state=3,n.parentNode.removeChild(n)}),i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(t){return t.fadeOut()}))}},{key:"setupTriggerEvents",value:function(t){var e=Jg(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(BC))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(jC),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=wb(t),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(t,e)}))}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular((function(){t.forEach((function(t){e._triggerElement.addEventListener(t,e,VC)}))}))}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(BC.forEach((function(e){t._triggerElement.removeEventListener(e,t,VC)})),this._pointerUpEventsRegistered&&jC.forEach((function(e){t._triggerElement.removeEventListener(e,t,VC)})))}}]),t}();function HC(t){window.getComputedStyle(t).getPropertyValue("opacity")}function UC(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}var WC=new re("mat-ripple-global-options"),qC=function(){var t=function(){function t(e,n,i,r,a){y(this,t),this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new zC(this,n,e,i)}return b(t,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{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}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(cc),rs(Py),rs(WC,8),rs(iC,8))},t.\u0275dir=Be({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Ns("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t}(),GC=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[mC,Fy],mC]}),t}(),YC=function(){var t=function t(e){y(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1};return t.\u0275fac=function(e){return new(e||t)(rs(iC,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&Ns("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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}(),KC=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),ZC=vC((function t(){y(this,t)})),$C=0,XC=function(){var t=function(t){f(n,t);var e=g(n);function n(){var t;return y(this,n),(t=e.apply(this,arguments))._labelId="mat-optgroup-label-".concat($C++),t}return n}(ZC);return t.\u0275fac=function(e){return QC(e||t)},t.\u0275dir=Be({type:t,inputs:{label:"label"},features:[eu]}),t}(),QC=Vi(XC),JC=new re("MatOptgroup"),tx=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(XC);return t.\u0275fac=function(e){return ex(e||t)},t.\u0275cmp=Me({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(ts("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),Ns("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[pu([{provide:JC,useExisting:t}]),eu],ngContentSelectors:uC,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(Ss(sC),us(0,"label",0),Ks(1),Es(2),ls(),Es(3,1)),2&t&&(os("id",e._labelId),Yr(1),$s("",e.label," "))},styles:[".mat-optgroup-label{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%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t}(),ex=Vi(tx),nx=0,ix=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y(this,t),this.source=e,this.isUserInput=n},rx=new re("MAT_OPTION_PARENT_COMPONENT"),ax=function(){var t=function(){function t(e,n,i,r){y(this,t),this._element=e,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(nx++),this.onSelectionChange=new bl,this._stateChanges=new U}return b(t,[{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(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{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(t){13!==t.keyCode&&32!==t.keyCode||m_(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new ix(this,t))}},{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(t){this._disabled=Kg(t)}},{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()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(void 0),rs(XC))},t.\u0275dir=Be({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),ox=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a){return y(this,n),e.call(this,t,i,r,a)}return n}(ax);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(rx,8),rs(JC,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&gs("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(Qs("id",e.id),ts("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),Ns("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[eu],ngContentSelectors:cC,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(Ss(),ns(0,lC,1,2,"mat-pseudo-checkbox",0),us(1,"span",1),Es(2),ls(),cs(3,"div",2)),2&t&&(os("ngIf",e.multiple),Yr(3),os("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[ld,qC,YC],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;-ms-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}.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}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.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 sx(t,e,n){if(n.length){for(var i=e.toArray(),r=n.toArray(),a=0,o=0;on+i?Math.max(0,r-i+e):n}var lx=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[GC,Wd,KC]]}),t}(),cx=new re("mat-label-global-options");function hx(t,e){}var dx=function t(){y(this,t),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},fx={dialogContainer:Mb("dialogContainer",[Vb("void, exit",Nb({opacity:0,transform:"scale(0.7)"})),Vb("enter",Nb({transform:"none"})),jb("* => enter",Pb("150ms cubic-bezier(0, 0, 0.2, 1)",Nb({transform:"none",opacity:1}))),jb("* => void, * => exit",Pb("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Nb({opacity:0})))])};function px(){throw Error("Attempting to attach dialog content after content is already attached")}var mx=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s){var u;return y(this,n),(u=e.call(this))._elementRef=t,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=o,u._focusMonitor=s,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u._state="enter",u._animationStateChanged=new bl,u.attachDomPortal=function(t){return u._portalOutlet.hasAttached()&&px(),u._setupFocusTrap(),u._portalOutlet.attachDomPortal(t)},u._ariaLabelledBy=o.ariaLabelledBy||null,u._document=a,u}return b(n,[{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached()&&px(),this._setupFocusTrap(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached()&&px(),this._setupFocusTrap(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){var t=this;this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return t._elementRef.nativeElement.focus()})))}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}},{key:"_onAnimationDone",value:function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}},{key:"_onAnimationStart",value:function(t){this._animationStateChanged.emit(t)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(a_);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(vb),rs(So),rs(Wc,8),rs(dx),rs(Sb))},t.\u0275cmp=Me({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&Rl(u_,!0),2&t&&Tl(n=Vl())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&ys("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(ts("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),Js("@dialogContainer",e._state))},features:[eu],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&ns(0,hx,0,0,"ng-template",0)},directives:[u_],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[fx.dialogContainer]}}),t}(),vx=0,gx=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(vx++);y(this,t),this._overlayRef=e,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new U,this._afterClosed=new U,this._beforeClosed=new U,this._state=0,n._id=r,n._animationStateChanged.pipe(Df((function(t){return"done"===t.phaseName&&"enter"===t.toState})),Lp(1)).subscribe((function(){i._afterOpened.next(),i._afterOpened.complete()})),n._animationStateChanged.pipe(Df((function(t){return"done"===t.phaseName&&"exit"===t.toState})),Lp(1)).subscribe((function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()})),e.detachments().subscribe((function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()})),e.keydownEvents().pipe(Df((function(t){return 27===t.keyCode&&!i.disableClose&&!m_(t)}))).subscribe((function(t){t.preventDefault(),yx(i,"keyboard")})),e.backdropClick().subscribe((function(){i.disableClose?i._containerInstance._recaptureFocus():yx(i,"mouse")}))}return b(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Df((function(t){return"start"===t.phaseName})),Lp(1)).subscribe((function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout((function(){return e._finishDialogClose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function yx(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}var _x=new re("MatDialogData"),bx=new re("mat-dialog-default-options"),kx=new re("mat-dialog-scroll-strategy"),wx={provide:kx,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},Cx=function(){var t=function(){function t(e,n,i,r,a,o,s){var u=this;y(this,t),this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U,this._afterOpenedAtThisLevel=new U,this._ariaHiddenElements=new Map,this.afterAllClosed=bp((function(){return u.openDialogs.length?u._getAfterAllClosed():u._getAfterAllClosed().pipe($p(void 0))})),this._scrollStrategy=a}return b(t,[{key:"_getAfterAllClosed",value:function(){var t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(t,e){var n=this;if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new dx)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'.concat(e.id,'" exists already. The dialog id must be unique.'));var i=this._createOverlay(e),r=this._attachDialogContainer(i,e),a=this._attachDialogContent(t,r,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe((function(){return n._removeOpenDialog(a)})),this.afterOpened.next(a),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find((function(e){return e.id===t}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new x_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}},{key:"_attachDialogContainer",value:function(t,e){var n=Uo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:dx,useValue:e}]}),i=new n_(mx,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}},{key:"_attachDialogContent",value:function(t,e,n,i){var r=new gx(n,e,i.id);if(t instanceof Uu)e.attachTemplatePortal(new i_(t,null,{$implicit:i.data,dialogRef:r}));else{var a=this._createInjector(i,r,e),o=e.attachComponentPortal(new n_(t,i.viewContainerRef,a));r.componentInstance=o.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:mx,useValue:n},{provide:_x,useValue:t.data},{provide:gx,useValue:e}];return!t.direction||i&&i.get(Hy,null)||r.push({provide:Hy,useValue:{value:t.direction,change:Sf()}}),Uo.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(U_),fe(Uo),fe(ah,8),fe(bx,8),fe(kx),fe(t,12),fe(M_))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),xx=0,Sx=function(){var t=function(){function t(e,n,i){y(this,t),this.dialogRef=e,this._elementRef=n,this._dialog=i,this.type="button"}return b(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=Ix(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}},{key:"_onButtonClick",value:function(t){yx(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(gx,8),rs(_u),rs(Cx))},t.\u0275dir=Be({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&gs("click",(function(t){return e._onButtonClick(t)})),2&t&&ts("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Qe]}),t}(),Ex=function(){var t=function(){function t(e,n,i){y(this,t),this._dialogRef=e,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(xx++)}return b(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=Ix(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(gx,8),rs(_u),rs(Cx))},t.\u0275dir=Be({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&Qs("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),Dx=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),Ax=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}();function Ix(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find((function(t){return t.id===n.id})):null}var Ox=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[Cx,wx],imports:[[Z_,h_,mC],mC]}),t}();function Tx(t){var e=t.subscriber,n=t.counter,i=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var Rx=["mat-button",""],Mx=["*"],Px=".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;-ms-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;-ms-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;-ms-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;-ms-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}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.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:block;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}\n",Fx=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Lx=gC(vC(yC((function t(e){y(this,t),this._elementRef=e})))),Nx=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;y(this,n),(a=e.call(this,t))._focusMonitor=i,a._animationMode=r,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var o,s=h(Fx);try{for(s.s();!(o=s.n()).done;){var u=o.value;a._hasHostAttributes(u)&&a._getHostElement().classList.add(u)}}catch(l){s.e(l)}finally{s.f()}return t.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return b(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),t,e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i0&&(this.dialogRef.afterClosed().subscribe((function(e){t.closed()})),this.setExtra(this.data.autoclose),this.subscription=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:my;return(!_y(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=my),new V((function(n){return n.add(e.schedule(Tx,t,{subscriber:n,counter:0,period:t})),n}))}(1e3).subscribe((function(e){var n=t.data.autoclose-1e3*(e+1);t.setExtra(n),n<=0&&t.close()})))},t.prototype.initYesNo=function(){},t.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===qx.yesno?this.initYesNo():this.initAlert()},t.\u0275fac=function(e){return new(e||t)(rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(t,e){1&t&&(cs(0,"h4",0),ml(1,"safeHtml"),cs(2,"mat-dialog-content",1),ml(3,"safeHtml"),us(4,"mat-dialog-actions"),ns(5,Hx,4,1,"button",2),ns(6,Ux,3,1,"button",3),ns(7,Wx,3,1,"button",3),ls()),2&t&&(os("innerHtml",vl(1,5,e.data.title),Sr),Yr(2),os("innerHTML",vl(3,7,e.data.body),Sr),Yr(3),os("ngIf",0==e.data.type),Yr(1),os("ngIf",1==e.data.type),Yr(1),os("ngIf",1==e.data.type))},directives:[Ex,Dx,Ax,ld,Nx,Sx,jx],pipes:[zx],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),Yx=function(t){return t.TEXT="text",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t}({}),Kx=function(){function t(){}return t.locateChoice=function(t,e){var n=e.gui.values.find((function(e){return e.id===t}));if(void 0===n)try{n=e.gui.values[0]}catch(i){n={id:"",img:"",text:""}}return n},t}();function Zx(t,e){return new V((function(n){var i=t.length;if(0!==i)for(var r=new Array(i),a=0,o=0,s=function(s){var u=nt(t[s]),l=!1;n.add(u.subscribe({next:function(t){l||(l=!0,o++),r[s]=t},error:function(t){return n.error(t)},complete:function(){++a!==i&&l||(o===i&&n.next(e?e.reduce((function(t,e,n){return t[e]=r[n],t}),{}):r),n.complete())}}))},u=0;u0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}},{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}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t}),t}(),iS=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(nS);return t.\u0275fac=function(e){return rS(e||t)},t.\u0275dir=Be({type:t,features:[eu]}),t}(),rS=Vi(iS);function aS(){throw new Error("unimplemented")}var oS=function(t){f(n,t);var e=g(n);function n(){var t;return y(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return b(n,[{key:"validator",get:function(){return aS()}},{key:"asyncValidator",get:function(){return aS()}}]),n}(nS),sS=function(){function t(e){y(this,t),this._cd=e}return b(t,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),t}(),uS=function(){var t=function(t){f(n,t);var e=g(n);function n(t){return y(this,n),e.call(this,t)}return n}(sS);return t.\u0275fac=function(e){return new(e||t)(rs(oS,2))},t.\u0275dir=Be({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Ns("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[eu]}),t}(),lS=function(){var t=function(t){f(n,t);var e=g(n);function n(t){return y(this,n),e.call(this,t)}return n}(sS);return t.\u0275fac=function(e){return new(e||t)(rs(iS,2))},t.\u0275dir=Be({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&Ns("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[eu]}),t}();function cS(t){return null==t||0===t.length}function hS(t){return null!=t&&"number"==typeof t.length}var dS=new re("NgValidators"),fS=new re("NgAsyncValidators"),pS=/^(?=.{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])?)*$/,mS=function(){function t(){y(this,t)}return b(t,null,[{key:"min",value:function(t){return function(e){if(cS(e.value)||cS(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return cS(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return cS(t.value)||pS.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){return cS(e.value)||!hS(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(cS(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}):t.nullValidator;var n,i}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(vS);return 0==e.length?null:function(t){return yS(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(vS);return 0==e.length?null:function(t){return function(){for(var t=arguments.length,e=new Array(t),n=0;n=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),SS=function(){var t=function(){function t(e,n,i,r){y(this,t),this._renderer=e,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return b(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(oS),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Cu),rs(_u),rs(xS),rs(Uo))},t.\u0275dir=Be({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&gs("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[pu([CS])]}),t}(),ES={provide:$x,useExisting:Ht((function(){return DS})),multi:!0},DS=function(){var t=function(){function t(e,n){y(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return b(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Cu),rs(_u))},t.\u0275dir=Be({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&gs("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[pu([ES])]}),t}(),AS='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',IS='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',OS='\n
\n
\n \n
\n
',TS=function(){function t(){y(this,t)}return b(t,null,[{key:"controlParentException",value:function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(AS))}},{key:"ngModelGroupException",value:function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '.concat(IS,"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(OS))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ".concat(AS))}},{key:"groupParentException",value:function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(IS))}},{key:"arrayParentException",value:function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat('\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });'))}},{key:"disabledAttrWarning",value:function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n\n Example:\n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}},{key:"ngModelWarning",value:function(t){console.warn("\n It looks like you're using ngModel on the same form field as ".concat(t,".\n Support for using the ngModel input property and ngModelChange event with\n reactive form directives has been deprecated in Angular v6 and will be removed\n in a future version of Angular.\n\n For more information on this, see our API docs here:\n https://angular.io/api/forms/").concat("formControl"===t?"FormControlDirective":"FormControlName","#use-with-ngmodel\n "))}}]),t}(),RS={provide:$x,useExisting:Ht((function(){return PS})),multi:!0};function MS(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var PS=function(){var t=function(){function t(e,n){y(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Object.is}return b(t,[{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=MS(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,a=0;a1?"path: '".concat(t.path.join(" -> "),"'"):t.path[0]?"name: '".concat(t.path,"'"):"unspecified name attribute",new Error("".concat(e," ").concat(n))}function GS(t){return null!=t?mS.compose(t.map(_S)):null}function YS(t){return null!=t?mS.composeAsync(t.map(bS)):null}function KS(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}var ZS=[Qx,DS,wS,PS,VS,SS];function $S(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function XS(t,e){if(!e)return null;Array.isArray(e)||qS(t,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,r=void 0;return e.forEach((function(e){var a;e.constructor===eS?n=e:(a=e,ZS.some((function(t){return a.constructor===t}))?(i&&qS(t,"More than one built-in value accessor matches form control with"),i=e):(r&&qS(t,"More than one custom value accessor matches form control with"),r=e))})),r||i||n||(qS(t,"No valid value accessor for form control with"),null)}function QS(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function JS(t,e,n,i){tr()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(TS.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function tE(t){var e=nE(t)?t.validators:t;return Array.isArray(e)?GS(e):e||null}function eE(t,e){var n=nE(e)?e.asyncValidators:t;return Array.isArray(n)?YS(n):n||null}function nE(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var iE=function(){function t(e,n){y(this,t),this.validator=e,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return b(t,[{key:"setValidators",value:function(t){this.validator=tE(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=eE(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=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(),"VALID"!==this.status&&"PENDING"!==this.status||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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=gS(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return e.setErrors(n,{emitEvent:t})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var i=t;return e.forEach((function(t){i=i instanceof aE?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof oE&&i.at(t)||null})),i}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new bl,this.statusChanges=new bl}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls((function(e){return e.status===t}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(t){return t.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(t){return t.touched}))}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){nE(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{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:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}}]),t}(),rE=function(t){f(n,t);var e=g(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return y(this,n),(t=e.call(this,tE(r),eE(a,r)))._onChange=[],t._applyFormState(i),t._setUpdateStrategy(r),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return b(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(t){return t(e.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_forEachChild",value:function(t){}},{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(t){this._isBoxedValue(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}}]),n}(iE),aE=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,tE(i),eE(r,i))).controls=t,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return b(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach((function(i){e._throwIfControlMissing(i),e.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(i){e.controls[i]&&e.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof rE?e.value:e.getRawValue(),t}))}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(iE),oE=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,tE(i),eE(r,i))).controls=t,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return b(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach((function(t,i){e._throwIfControlMissing(i),e.at(i).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t,i){e.at(i)&&e.at(i).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map((function(t){return t instanceof rE?t.value:t.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach((function(e,n){t(e,n)}))}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))}},{key:"_anyControls",value:function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var t,e=h(this.controls);try{for(e.s();!(t=e.n()).done;)if(t.value.enabled)return!1}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(iE),sE={provide:iS,useExisting:Ht((function(){return lE}))},uE=function(){return Promise.resolve(null)}(),lE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new bl,r.form=new aE({},GS(t),YS(i)),r}return b(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;uE.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),zS(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;uE.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),QS(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;uE.then((function(){var n=e._findContainer(t.path),i=new aE({});US(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;uE.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;uE.then((function(){n.form.get(t.path).setValue(e)}))}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,$S(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}},{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}}]),n}(iS);return t.\u0275fac=function(e){return new(e||t)(rs(dS,10),rs(fS,10))},t.\u0275dir=Be({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&gs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pu([sE]),eu]}),t}(),cE=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return jS(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return GS(this._validators)}},{key:"asyncValidator",get:function(){return YS(this._asyncValidators)}}]),n}(iS);return t.\u0275fac=function(e){return hE(e||t)},t.\u0275dir=Be({type:t,features:[eu]}),t}(),hE=Vi(cE),dE=function(){function t(){y(this,t)}return b(t,null,[{key:"modelParentException",value:function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '.concat(AS,"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n ").concat('\n
\n \n \n
\n '))}},{key:"formGroupNameException",value:function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ".concat(IS,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(OS))}},{key:"missingNameException",value:function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}},{key:"modelGroupParentException",value:function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ".concat(IS,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(OS))}}]),t}(),fE={provide:iS,useExisting:Ht((function(){return pE}))},pE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this))._parent=t,a._validators=i,a._asyncValidators=r,a}return b(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof lE||dE.modelGroupParentException()}}]),n}(cE);return t.\u0275fac=function(e){return new(e||t)(rs(iS,5),rs(dS,10),rs(fS,10))},t.\u0275dir=Be({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[pu([fE]),eu]}),t}(),mE={provide:oS,useExisting:Ht((function(){return gE}))},vE=function(){return Promise.resolve(null)}(),gE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o){var s;return y(this,n),(s=e.call(this)).control=new rE,s._registered=!1,s.update=new bl,s._parent=t,s._rawValidators=i||[],s._rawAsyncValidators=r||[],s.valueAccessor=XS(a(s),o),s}return b(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),KS(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{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(){zS(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof pE)&&this._parent instanceof cE?dE.formGroupNameException():this._parent instanceof pE||this._parent instanceof lE||dE.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||dE.missingNameException()}},{key:"_updateValue",value:function(t){var e=this;vE.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;vE.then((function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()}))}},{key:"path",get:function(){return this._parent?jS(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return GS(this._rawValidators)}},{key:"asyncValidator",get:function(){return YS(this._rawAsyncValidators)}}]),n}(oS);return t.\u0275fac=function(e){return new(e||t)(rs(iS,9),rs(dS,10),rs(fS,10),rs($x,10))},t.\u0275dir=Be({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:[pu([mE]),eu,Qe]}),t}(),yE=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),_E=new re("NgModelWithFormControlWarning"),bE={provide:oS,useExisting:Ht((function(){return kE}))},kE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o){var s;return y(this,n),(s=e.call(this))._ngModelWarningConfig=o,s.update=new bl,s._ngModelWarningSent=!1,s._rawValidators=t||[],s._rawAsyncValidators=i||[],s.valueAccessor=XS(a(s),r),s}return b(n,[{key:"ngOnChanges",value:function(t){this._isControlChanged(t)&&(zS(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),KS(t,this.viewModel)&&(JS("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}},{key:"isDisabled",set:function(t){TS.disabledAttrWarning()}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return GS(this._rawValidators)}},{key:"asyncValidator",get:function(){return YS(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),n}(oS);return t.\u0275fac=function(e){return new(e||t)(rs(dS,10),rs(fS,10),rs($x,10),rs(_E,8))},t.\u0275dir=Be({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[pu([bE]),eu,Qe]}),t._ngModelWarningSentOnce=!1,t}(),wE={provide:iS,useExisting:Ht((function(){return CE}))},CE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this))._validators=t,r._asyncValidators=i,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new bl,r}return b(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return zS(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){QS(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);US(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(t){}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){var e=this.form.get(t.path);US(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(t){}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,$S(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return WS(e)})),e.valueAccessor.registerOnTouched((function(){return WS(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&zS(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var t=GS(this._validators);this.form.validator=mS.compose([this.form.validator,t]);var e=YS(this._asyncValidators);this.form.asyncValidator=mS.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){this.form||TS.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(iS);return t.\u0275fac=function(e){return new(e||t)(rs(dS,10),rs(fS,10))},t.\u0275dir=Be({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&gs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pu([wE]),eu,Qe]}),t}(),xE={provide:iS,useExisting:Ht((function(){return SE}))},SE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this))._parent=t,a._validators=i,a._asyncValidators=r,a}return b(n,[{key:"_checkParentType",value:function(){AE(this._parent)&&TS.groupParentException()}}]),n}(cE);return t.\u0275fac=function(e){return new(e||t)(rs(iS,13),rs(dS,10),rs(fS,10))},t.\u0275dir=Be({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[pu([xE]),eu]}),t}(),EE={provide:iS,useExisting:Ht((function(){return DE}))},DE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this))._parent=t,a._validators=i,a._asyncValidators=r,a}return b(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){AE(this._parent)&&TS.arrayParentException()}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return jS(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return GS(this._validators)}},{key:"asyncValidator",get:function(){return YS(this._asyncValidators)}}]),n}(iS);return t.\u0275fac=function(e){return new(e||t)(rs(iS,13),rs(dS,10),rs(fS,10))},t.\u0275dir=Be({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[pu([EE]),eu]}),t}();function AE(t){return!(t instanceof SE||t instanceof CE||t instanceof DE)}var IE={provide:oS,useExisting:Ht((function(){return OE}))},OE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o,s){var u;return y(this,n),(u=e.call(this))._ngModelWarningConfig=s,u._added=!1,u.update=new bl,u._ngModelWarningSent=!1,u._parent=t,u._rawValidators=i||[],u._rawAsyncValidators=r||[],u.valueAccessor=XS(a(u),o),u}return b(n,[{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),KS(t,this.viewModel)&&(JS("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_checkParentType",value:function(){!(this._parent instanceof SE)&&this._parent instanceof cE?TS.ngModelGroupException():this._parent instanceof SE||this._parent instanceof CE||this._parent instanceof DE||TS.controlParentException()}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(t){TS.disabledAttrWarning()}},{key:"path",get:function(){return jS(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return GS(this._rawValidators)}},{key:"asyncValidator",get:function(){return YS(this._rawAsyncValidators)}}]),n}(oS);return t.\u0275fac=function(e){return new(e||t)(rs(iS,13),rs(dS,10),rs(fS,10),rs($x,10),rs(_E,8))},t.\u0275dir=Be({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[pu([IE]),eu,Qe]}),t._ngModelWarningSentOnce=!1,t}(),TE={provide:dS,useExisting:Ht((function(){return ME})),multi:!0},RE={provide:dS,useExisting:Ht((function(){return PE})),multi:!0},ME=function(){var t=function(){function t(){y(this,t),this._required=!1}return b(t,[{key:"validate",value:function(t){return this.required?mS.required(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&ts("required",e.required?"":null)},inputs:{required:"required"},features:[pu([TE])]}),t}(),PE=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"validate",value:function(t){return this.required?mS.requiredTrue(t):null}}]),n}(ME);return t.\u0275fac=function(e){return FE(e||t)},t.\u0275dir=Be({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&ts("required",e.required?"":null)},features:[pu([RE]),eu]}),t}(),FE=Vi(PE),LE={provide:dS,useExisting:Ht((function(){return NE})),multi:!0},NE=function(){var t=function(){function t(){y(this,t),this._enabled=!1}return b(t,[{key:"validate",value:function(t){return this._enabled?mS.email(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"email",set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[pu([LE])]}),t}(),VE={provide:dS,useExisting:Ht((function(){return BE})),multi:!0},BE=function(){var t=function(){function t(){y(this,t),this._validator=mS.nullValidator}return b(t,[{key:"ngOnChanges",value:function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null==this.minlength?null:this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=mS.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&ts("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[pu([VE]),Qe]}),t}(),jE={provide:dS,useExisting:Ht((function(){return zE})),multi:!0},zE=function(){var t=function(){function t(){y(this,t),this._validator=mS.nullValidator}return b(t,[{key:"ngOnChanges",value:function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null!=this.maxlength?this._validator(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=mS.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&ts("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[pu([jE]),Qe]}),t}(),HE={provide:dS,useExisting:Ht((function(){return UE})),multi:!0},UE=function(){var t=function(){function t(){y(this,t),this._validator=mS.nullValidator}return b(t,[{key:"ngOnChanges",value:function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=mS.pattern(this.pattern)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&ts("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[pu([HE]),Qe]}),t}(),WE=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}();function qE(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}var GE=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),i=null,r=null,a=void 0;return null!=e&&(qE(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,a=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new aE(n,{asyncValidators:r,updateOn:a,validators:i})}},{key:"control",value:function(t,e,n){return new rE(t,e,n)}},{key:"array",value:function(t,e,n){var i=this,r=t.map((function(t){return i._createControl(t)}));return new oE(r,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach((function(i){n[i]=e._createControl(t[i])})),n}},{key:"_createControl",value:function(t){return t instanceof rE||t instanceof aE||t instanceof oE?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),YE=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[xS],imports:[WE]}),t}(),KE=function(){var t=function(){function t(){y(this,t)}return b(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:_E,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[GE,xS],imports:[WE]}),t}();function ZE(t,e){1&t&&Es(0)}var $E=["*"];function XE(t,e){}var QE=function(t){return{animationDuration:t}},JE=function(t,e){return{value:t,params:e}},tD=["tabBodyWrapper"],eD=["tabHeader"];function nD(t,e){}function iD(t,e){1&t&&ns(0,nD,0,0,"ng-template",9),2&t&&os("cdkPortalOutlet",Cs().$implicit.templateLabel)}function rD(t,e){1&t&&Ks(0),2&t&&Zs(Cs().$implicit.textLabel)}function aD(t,e){if(1&t){var n=ps();us(0,"div",6),gs("click",(function(){xn(n);var t=e.$implicit,i=e.index,r=Cs(),a=is(1);return r._handleClick(t,a,i)})),us(1,"div",7),ns(2,iD,1,1,"ng-template",8),ns(3,rD,1,1,"ng-template",8),ls(),ls()}if(2&t){var i=e.$implicit,r=e.index,a=Cs();Ns("mat-tab-label-active",a.selectedIndex==r),os("id",a._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||a.disableRipple),ts("tabIndex",a._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(r))("aria-selected",a.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),Yr(2),os("ngIf",i.templateLabel),Yr(1),os("ngIf",!i.templateLabel)}}function oD(t,e){if(1&t){var n=ps();us(0,"mat-tab-body",10),gs("_onCentered",(function(){return xn(n),Cs()._removeTabBodyWrapperHeight()}))("_onCentering",(function(t){return xn(n),Cs()._setTabBodyWrapperHeight(t)})),ls()}if(2&t){var i=e.$implicit,r=e.index,a=Cs();Ns("mat-tab-body-active",a.selectedIndex==r),os("id",a._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",a.animationDuration),ts("aria-labelledby",a._getTabLabelId(r))}}var sD=["tabListContainer"],uD=["tabList"],lD=["nextPaginator"],cD=["previousPaginator"],hD=["mat-tab-nav-bar",""],dD=new re("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),fD=function(){var t=function(){function t(e,n,i,r){y(this,t),this._elementRef=e,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return b(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e._setStyles(t)}))})):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(cc),rs(dD),rs(iC,8))},t.\u0275dir=Be({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&Ns("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),pD=new re("MatTabContent"),mD=function(){var t=function t(e){y(this,t),this.template=e};return t.\u0275fac=function(e){return new(e||t)(rs(Uu))},t.\u0275dir=Be({type:t,selectors:[["","matTabContent",""]],features:[pu([{provide:pD,useExisting:t}])]}),t}(),vD=new re("MatTabLabel"),gD=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(s_);return t.\u0275fac=function(e){return yD(e||t)},t.\u0275dir=Be({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[pu([{provide:vD,useExisting:t}]),eu]}),t}(),yD=Vi(gD),_D=vC((function t(){y(this,t)})),bD=new re("MAT_TAB_GROUP"),kD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this))._viewContainerRef=t,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new U,r.position=null,r.origin=null,r.isActive=!1,r}return b(n,[{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new i_(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){t&&(this._templateLabel=t)}},{key:"content",get:function(){return this._contentPortal}}]),n}(_D);return t.\u0275fac=function(e){return new(e||t)(rs(qu),rs(bD,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(Fl(n,vD,!0),Ll(n,pD,!0,Uu)),2&t&&(Tl(i=Vl())&&(e.templateLabel=i.first),Tl(i=Vl())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&Rl(Uu,!0),2&t&&Tl(n=Vl())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[eu,Qe],ngContentSelectors:$E,decls:1,vars:0,template:function(t,e){1&t&&(Ss(),ns(0,ZE,1,0,"ng-template"))},encapsulation:2}),t}(),wD={translateTab:Mb("translateTab",[Vb("center, void, left-origin-center, right-origin-center",Nb({transform:"none"})),Vb("left",Nb({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Vb("right",Nb({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),jb("* => left, * => right, left => center, right => center",Pb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),jb("void => left-origin-center",[Nb({transform:"translate3d(-100%, 0, 0)"}),Pb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),jb("void => right-origin-center",[Nb({transform:"translate3d(100%, 0, 0)"}),Pb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},CD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t,i,a))._host=r,o._centeringSub=E.EMPTY,o._leavingSub=E.EMPTY,o}return b(n,[{key:"ngOnInit",value:function(){var t=this;r(i(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe($p(this._host._isCenterPosition(this._host._position))).subscribe((function(e){e&&!t.hasAttached()&&t.attach(t._host._content)})),this._leavingSub=this._host._afterLeavingCenter.subscribe((function(){t.detach()}))}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(u_);return t.\u0275fac=function(e){return new(e||t)(rs(yu),rs(qu),rs(Ht((function(){return SD}))),rs(Wc))},t.\u0275dir=Be({type:t,selectors:[["","matTabBodyHost",""]],features:[eu]}),t}(),xD=function(){var t=function(){function t(e,n,i){var r=this;y(this,t),this._elementRef=e,this._dir=n,this._dirChangeSubscription=E.EMPTY,this._translateTabComplete=new U,this._onCentering=new bl,this._beforeCentering=new bl,this._afterLeavingCenter=new bl,this._onCentered=new bl(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe((function(t){r._computePositionAnimationState(t),i.markForCheck()}))),this._translateTabComplete.pipe(dy((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()}))}return b(t,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Hy,8),rs(So))},t.\u0275dir=Be({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),SD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){return y(this,n),e.call(this,t,i,r)}return n}(xD);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Hy,8),rs(So))},t.\u0275cmp=Me({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&Ml(l_,!0),2&t&&Tl(n=Vl())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[eu],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(us(0,"div",0,1),gs("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),ns(2,XE,0,0,"ng-template",2),ls()),2&t&&os("@translateTab",hl(3,JE,e._position,cl(1,QE,e.animationDuration)))},directives:[CD],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[wD.translateTab]}}),t}(),ED=new re("MAT_TABS_CONFIG"),DD=0,AD=function t(){y(this,t)},ID=gC(yC((function t(e){y(this,t),this._elementRef=e})),"primary"),OD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t))._changeDetectorRef=i,o._animationMode=a,o._tabs=new wl,o._indexToSelect=0,o._tabBodyWrapperHeight=0,o._tabsSubscription=E.EMPTY,o._tabLabelSubscription=E.EMPTY,o._dynamicHeight=!1,o._selectedIndex=null,o.headerPosition="above",o.selectedIndexChange=new bl,o.focusChange=new bl,o.animationDone=new bl,o.selectedTabChange=new bl(!0),o._groupId=DD++,o.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",o.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,o}return b(n,[{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(e)),Promise.resolve().then((function(){t._tabs.forEach((function(t,n){return t.isActive=n===e})),n||t.selectedIndexChange.emit(e)}))}this._tabs.forEach((function(n,i){n.position=i-e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)})),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t}(),RD=vC((function t(){y(this,t)})),MD=function(){var t=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this)).elementRef=t,i}return b(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(RD);return t.\u0275fac=function(e){return new(e||t)(rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(ts("aria-disabled",!!e.disabled),Ns("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[eu]}),t}(),PD=Vy({passive:!0}),FD=function(){var t=function(){function t(e,n,i,r,a,o,s){var u=this;y(this,t),this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=a,this._platform=o,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new U,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new U,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new bl,this.indexFocused=new bl,a.runOutsideAngular((function(){ty(e.nativeElement,"mouseleave").pipe(Cy(u._destroyed)).subscribe((function(){u._stopInterval()}))}))}return b(t,[{key:"ngAfterViewInit",value:function(){var t=this;ty(this._previousPaginator.nativeElement,"touchstart",PD).pipe(Cy(this._destroyed)).subscribe((function(){t._handlePaginatorPress("before")})),ty(this._nextPaginator.nativeElement,"touchstart",PD).pipe(Cy(this._destroyed)).subscribe((function(){t._handlePaginatorPress("after")}))}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Sf(null),n=this._viewportRuler.change(150),i=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new hb(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),ht(e,n,this._items.changes).pipe(Cy(this._destroyed)).subscribe((function(){Promise.resolve().then(i),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())})),this._keyManager.change.pipe(Cy(this._destroyed)).subscribe((function(e){t.indexFocused.emit(e),t._setTabFocus(e)}))}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!m_(t))switch(t.keyCode){case 36:this._keyManager.setFirstItemActive(),t.preventDefault();break;case 35:this._keyManager.setLastItemActive(),t.preventDefault();break;case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run((function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()})))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e=this._platform,n="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(n),"px)"),e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,a=e.elementRef.nativeElement,o=a.offsetLeft,s=a.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=o)+s:n=(i=this._tabList.nativeElement.offsetWidth-o)-s;var u=this.scrollDistance,l=this.scrollDistance+r;nl&&(this.scrollDistance+=i-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var n=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),by(650,100).pipe(Cy(ht(this._stopScrolling,this._destroyed))).subscribe((function(){var e=n._scrollHeader(t),i=e.distance;(0===i||i>=e.maxScrollDistance)&&n._stopInterval()})))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=Zg(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(Xy),rs(Hy,8),rs(cc),rs(Py),rs(iC,8))},t.\u0275dir=Be({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),LD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u){var l;return y(this,n),(l=e.call(this,t,i,r,a,o,s,u))._disableRipple=!1,l}return b(n,[{key:"_itemSelected",value:function(t){t.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=Kg(t)}}]),n}(FD);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(Xy),rs(Hy,8),rs(cc),rs(Py),rs(iC,8))},t.\u0275dir=Be({type:t,inputs:{disableRipple:"disableRipple"},features:[eu]}),t}(),ND=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u){return y(this,n),e.call(this,t,i,r,a,o,s,u)}return n}(LD);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(Xy),rs(Hy,8),rs(cc),rs(Py),rs(iC,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,MD,!1),2&t&&Tl(i=Vl())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(Rl(fD,!0),Rl(sD,!0),Rl(uD,!0),Ml(lD,!0),Ml(cD,!0)),2&t&&(Tl(n=Vl())&&(e._inkBar=n.first),Tl(n=Vl())&&(e._tabListContainer=n.first),Tl(n=Vl())&&(e._tabList=n.first),Tl(n=Vl())&&(e._nextPaginator=n.first),Tl(n=Vl())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&Ns("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[eu],ngContentSelectors:$E,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(Ss(),us(0,"div",0,1),gs("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),cs(2,"div",2),ls(),us(3,"div",3,4),gs("keydown",(function(t){return e._handleKeydown(t)})),us(5,"div",5,6),gs("cdkObserveContent",(function(){return e._onContentChanges()})),us(7,"div",7),Es(8),ls(),cs(9,"mat-ink-bar"),ls(),ls(),us(10,"div",8,9),gs("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),cs(12,"div",2),ls()),2&t&&(Ns("mat-tab-header-pagination-disabled",e._disableScrollBefore),os("matRippleDisabled",e._disableScrollBefore||e.disableRipple),Yr(5),Ns("_mat-animation-noopable","NoopAnimations"===e._animationMode),Yr(5),Ns("mat-tab-header-pagination-disabled",e._disableScrollAfter),os("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[qC,nb,fD],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t}(),VD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u){var l;return y(this,n),(l=e.call(this,t,a,o,i,r,s,u))._disableRipple=!1,l.color="primary",l}return b(n,[{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var t=this;this._items.changes.pipe($p(null),Cy(this._destroyed)).subscribe((function(){t.updateActiveLink()})),r(i(n.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(t){if(this._items){for(var e=this._items.toArray(),n=0;n.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t}(),jD=_C(yC(vC((function t(){y(this,t)})))),zD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s){var u;return y(this,n),(u=e.call(this))._tabNavBar=t,u.elementRef=i,u._focusMonitor=o,u._isActive=!1,u.rippleConfig=r||{},u.tabIndex=parseInt(a)||0,"NoopAnimations"===s&&(u.rippleConfig.animation={enterDuration:0,exitDuration:0}),u}return b(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this.elementRef)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}},{key:"active",get:function(){return this._isActive},set:function(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}]),n}(jD);return t.\u0275fac=function(e){return new(e||t)(rs(VD),rs(_u),rs(WC,8),as("tabindex"),rs(Sb),rs(iC,8))},t.\u0275dir=Be({type:t,inputs:{active:"active"},features:[eu]}),t}(),HD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o,s,u,l,c){var h;return y(this,n),(h=e.call(this,t,i,s,u,l,c))._tabLinkRipple=new zC(a(h),r,i,o),h._tabLinkRipple.setupTriggerEvents(i.nativeElement),h}return b(n,[{key:"ngOnDestroy",value:function(){r(i(n.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),n}(zD);return t.\u0275fac=function(e){return new(e||t)(rs(BD),rs(_u),rs(cc),rs(Py),rs(WC,8),as("tabindex"),rs(Sb),rs(iC,8))},t.\u0275dir=Be({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(ts("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),Ns("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[eu]}),t}(),UD=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Wd,mC,h_,GC,ib,Ib],mC]}),t}();function WD(t,e){if(1&t){var n=ps();us(0,"uds-field-text",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function qD(t,e){if(1&t){var n=ps();us(0,"uds-field-textbox",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function GD(t,e){if(1&t){var n=ps();us(0,"uds-field-numeric",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function YD(t,e){if(1&t){var n=ps();us(0,"uds-field-password",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function KD(t,e){if(1&t){var n=ps();us(0,"uds-field-hidden",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function ZD(t,e){if(1&t){var n=ps();us(0,"uds-field-choice",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function $D(t,e){if(1&t){var n=ps();us(0,"uds-field-multichoice",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function XD(t,e){if(1&t){var n=ps();us(0,"uds-field-editlist",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function QD(t,e){if(1&t){var n=ps();us(0,"uds-field-checkbox",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function JD(t,e){if(1&t){var n=ps();us(0,"uds-field-imgchoice",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function tA(t,e){if(1&t){var n=ps();us(0,"uds-field-date",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function eA(t,e){if(1&t){var n=ps();us(0,"uds-field-tags",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}var nA=function(){function t(){this.UDSGuiFieldType=Yx,this.changed=new bl}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:13,vars:14,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(t,e){1&t&&(us(0,"div",0),ns(1,WD,1,1,"uds-field-text",1),ns(2,qD,1,1,"uds-field-textbox",1),ns(3,GD,1,1,"uds-field-numeric",1),ns(4,YD,1,1,"uds-field-password",1),ns(5,KD,1,1,"uds-field-hidden",1),ns(6,ZD,1,1,"uds-field-choice",1),ns(7,$D,1,1,"uds-field-multichoice",1),ns(8,XD,1,1,"uds-field-editlist",1),ns(9,QD,1,1,"uds-field-checkbox",1),ns(10,JD,1,1,"uds-field-imgchoice",1),ns(11,tA,1,1,"uds-field-date",1),ns(12,eA,1,1,"uds-field-tags",1),ls()),2&t&&(os("ngSwitch",e.field.gui.type)("matTooltip",e.field.gui.tooltip),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.TEXT),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.TEXTBOX),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.NUMERIC),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.PASSWORD),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.HIDDEN),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.CHOICE),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.MULTI_CHOICE),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.EDITLIST),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.CHECKBOX),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.IMAGECHOICE),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.DATE),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),t}();function iA(t,e){1&t&&Ks(0),2&t&&$s(" ",Cs().$implicit," ")}function rA(t,e){if(1&t){var n=ps();us(0,"uds-field",7),gs("changed",(function(t){return xn(n),Cs(3).changed.emit(t)})),ls()}2&t&&os("field",e.$implicit)}function aA(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,iA,1,1,"ng-template",4),us(2,"div",5),ns(3,rA,1,1,"uds-field",6),ls(),ls()),2&t){var n=e.$implicit,i=Cs(2);Yr(3),os("ngForOf",i.fieldsByTab[n])}}function oA(t,e){if(1&t&&(us(0,"mat-tab-group",2),ns(1,aA,4,1,"mat-tab",3),ls()),2&t){var n=Cs();os("disableRipple",!0)("@.disabled",!0),Yr(1),os("ngForOf",n.tabs)}}function sA(t,e){if(1&t&&(us(0,"div"),cs(1,"uds-field",8),ls()),2&t){var n=e.$implicit;Yr(1),os("field",n)}}function uA(t,e){1&t&&ns(0,sA,2,1,"div",3),2&t&&os("ngForOf",Cs().fields)}var lA=django.gettext("Main"),cA=function(){function t(){this.changed=new bl}return t.prototype.ngOnInit=function(){var t=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach((function(e){var n=void 0===e.gui.tab?lA:e.gui.tab;t.tabs.includes(n)||(t.tabs.push(n),t.fieldsByTab[n]=new Array),t.fieldsByTab[n].push(e)}))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[[3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],[3,"disableRipple"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"],[3,"field"]],template:function(t,e){if(1&t&&(ns(0,oA,2,3,"mat-tab-group",0),ns(1,uA,1,1,"ng-template",null,1,Hl)),2&t){var n=is(2);os("ngIf",e.tabs.length>1)("ngIfElse",n)}},directives:[ld,TD,sd,kD,gD,nA],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap} .mat-form-field-wrapper{padding-bottom:1em} .mat-tab-label{height:32px!important}"]}),t}();function hA(t,e){if(1&t){var n=ps();us(0,"button",10),gs("click",(function(){return xn(n),Cs().customButtonClicked()})),Ks(1),ls()}if(2&t){var i=Cs();Yr(1),Zs(i.data.customButton)}}var dA,fA=function(){function t(t,e){this.dialogRef=t,this.data=e,this.onEvent=new bl(!0),this.saving=!1}return t.prototype.ngOnInit=function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})},t.prototype.changed=function(t){this.onEvent.emit({type:"changed",data:t,dialog:this.dialogRef})},t.prototype.getFields=function(){var t={},e=[];return this.data.guiFields.forEach((function(n){var i=void 0!==n.values?n.values:n.value;n.gui.required&&0!==i&&(!i||i instanceof Array&&0===i.length)&&e.push(n.gui.label),"number"==typeof i&&(i=i.toString()),t[n.name]=i})),{data:t,errors:e}},t.prototype.save=function(){var t=this.getFields();t.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+t.errors.join(", ")):this.onEvent.emit({data:t.data,type:"save",dialog:this.dialogRef})},t.prototype.customButtonClicked=function(){var t=this.getFields();this.onEvent.emit({data:t.data,type:this.data.customButton,errors:t.errors,dialog:this.dialogRef})},t.\u0275fac=function(e){return new(e||t)(rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(t,e){1&t&&(cs(0,"h4",0),ml(1,"safeHtml"),us(2,"mat-dialog-content",null,1),us(4,"form",2),us(5,"uds-form",3),gs("changed",(function(t){return e.changed(t)})),ls(),ls(),ls(),us(6,"mat-dialog-actions"),us(7,"div",4),us(8,"div",5),ns(9,hA,2,1,"button",6),ls(),us(10,"div",7),us(11,"button",8),gs("click",(function(){return e.dialogRef.close()})),us(12,"uds-translate"),Ks(13,"Discard & close"),ls(),ls(),us(14,"button",9),gs("click",(function(){return e.save()})),us(15,"uds-translate"),Ks(16,"Save"),ls(),ls(),ls(),ls(),ls()),2&t&&(os("innerHtml",vl(1,5,e.data.title),Sr),Yr(5),os("fields",e.data.guiFields),Yr(4),os("ngIf",null!=e.data.customButton),Yr(2),os("disabled",e.saving),Yr(3),os("disabled",e.saving))},directives:[Ex,Dx,yE,lS,lE,cA,Ax,ld,Nx,jx,rd],pipes:[zx],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}"]}),t}(),pA=function(){function t(t){this.gui=t}return t.prototype.executeCallback=function(t,e,n,i){var r=this;void 0===i&&(i={});var a=new Array;e.gui.fills.parameters.forEach((function(t){a.push(t+"="+encodeURIComponent(n[t].value))})),t.table.rest.callback(e.gui.fills.callbackName,a.join("&")).subscribe((function(e){var a=new Array;e.forEach((function(t){var e=n[t.name];void 0!==e&&(void 0!==e.gui.fills&&a.push(e),e.gui.values.length=0,t.values.forEach((function(t){return e.gui.values.push(t)})),e.value||(e.value=t.values.length>0?t.values[0].id:""))})),a.forEach((function(e){void 0===i[e.name]&&(i[e.name]=!0,r.executeCallback(t,e,n,i))}))}))},t.prototype.modalForm=function(t,e,n,i){void 0===n&&(n=null),e.sort((function(t,e){return t.gui.order>e.gui.order?1:-1}));var r=null!=n;n=r?n:{},e.forEach((function(t){!1!==r&&void 0!==t.gui.rdonly||(t.gui.rdonly=!1),t.gui.type===Yx.TEXT&&t.gui.multiline&&(t.gui.type=Yx.TEXTBOX);var e=n[t.name];void 0!==e&&(e instanceof Array?(t.values=new Array,e.forEach((function(e){return t.values.push(e)}))):t.value=e)}));var a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(fA,{position:{top:"64px"},width:a,data:{title:t,guiFields:e,customButton:i,gui:this.gui},disableClose:!0}).componentInstance.onEvent},t.prototype.typedForm=function(t,e,n,i,r,a,o){var s=this;o=o||{};var u=new bl,l=n?"test":void 0,c={},h={},d=function(e){h.hasOwnProperty(e.name)&&""!==e.value&&void 0!==e.value&&s.executeCallback(t,e,c)};return o.snack||(o.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),t.table.rest.gui(a).subscribe((function(n){o.snack.dismiss(),void 0!==i&&i.forEach((function(t){n.push(t)})),n.forEach((function(t){c[t.name]=t,void 0!==t.gui.fills&&(h[t.name]=t.gui.fills)})),s.modalForm(e,n,r,l).subscribe((function(e){switch(e.data&&(e.data.data_type=a),e.type){case l:if(e.errors.length>0)return void s.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));s.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),t.table.rest.test(a,e.data).subscribe((function(t){"ok"!==t?s.gui.snackbar.open(django.gettext("Test failed:")+" "+t,django.gettext("dismiss")):s.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})}));break;case"changed":case"init":if(null===e.data)for(var i=0,h=n;i"+i.join(", ")+"";this.gui.yesno(e,a,!0).subscribe((function(e){if(e){var i=r.length,a=function(){n.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()};r.forEach((function(e){t.table.rest.delete(e).subscribe((function(t){0==--i&&a()}),(function(t){0==--i&&a()}))}))}}))},t}(),mA=function(){function t(t,e){this.dialog=t,this.snackbar=e,this.forms=new pA(this)}return t.prototype.alert=function(t,e,n,i){void 0===n&&(n=0);var r=i||(window.innerWidth<800?"80%":"40%");return this.dialog.open(Gx,{width:r,data:{title:t,body:e,autoclose:n,type:qx.alert},disableClose:!0}).componentInstance.yesno},t.prototype.yesno=function(t,e,n){void 0===n&&(n=!1);var i=window.innerWidth<800?"80%":"40%";return this.dialog.open(Gx,{width:i,data:{title:t,body:e,type:qx.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},t.prototype.icon=function(t,e){return void 0===e&&(e="24px"),''},t}(),vA=function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="iconType",t.CALLBACK="callback",t.DICTIONARY="dict",t.IMAGE="image",t}({}),gA=function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t}({}),yA={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},_A=function(){function t(t){this.router=t}return t.getGotoButton=function(t,e,n){return{id:t,html:'link'+django.gettext("Go to")+" "+yA[t]+"",type:gA.ACCELERATOR,acceleratorProperties:[e,n]}},t.prototype.gotoProvider=function(t){this.router.navigate(void 0!==t?["providers",t]:["providers"])},t.prototype.gotoService=function(t,e){this.router.navigate(void 0!==e?["providers",t,"detail",e]:["providers",t,"detail"])},t.prototype.gotoServicePool=function(t){this.router.navigate(["pools","service-pools",t])},t.prototype.gotoServicePoolDetail=function(t){this.router.navigate(["pools","service-pools",t,"detail"])},t.prototype.gotoMetapool=function(t){this.router.navigate(["pools","meta-pools",t])},t.prototype.gotoMetapoolDetail=function(t){this.router.navigate(["pools","meta-pools",t,"detail"])},t.prototype.gotoCalendar=function(t){this.router.navigate(["pools","calendars",t])},t.prototype.gotoCalendarDetail=function(t){this.router.navigate(["pools","calendars",t,"detail"])},t.prototype.gotoAccount=function(t){this.router.navigate(["pools","accounts",t])},t.prototype.gotoAccountDetail=function(t){this.router.navigate(["pools","accounts",t,"detail"])},t.prototype.gotoPoolGroup=function(t){this.router.navigate(["pools","pool-groups",t=t||""])},t.prototype.gotoAuthenticator=function(t){this.router.navigate(["authenticators",t])},t.prototype.gotoAuthenticatorDetail=function(t){this.router.navigate(["authenticators",t,"detail"])},t.prototype.gotoUser=function(t,e){this.router.navigate(["authenticators",t,"detail","users",e])},t.prototype.gotoGroup=function(t,e){this.router.navigate(["authenticators",t,"detail","groups",e])},t.prototype.gotoTransport=function(t){this.router.navigate(["transports",t])},t.prototype.gotoOSManager=function(t){this.router.navigate(["osmanagers",t])},t.prototype.goto=function(t,e,n){var i=function(t){var i=e;if(n[t].split(".").forEach((function(t){return i=i[t]})),!i)throw new Error("not going :)");return i};try{switch(t){case"provider":this.gotoProvider(i(0));break;case"service":this.gotoService(i(0),i(1));break;case"pool":this.gotoServicePool(i(0));break;case"authenticator":this.gotoAuthenticator(i(0));break;case"user":this.gotoUser(i(0),i(1));break;case"group":this.gotoGroup(i(0),i(1));break;case"transport":this.gotoTransport(i(0));break;case"osmanager":this.gotoOSManager(i(0));break;case"calendar":this.gotoCalendar(i(0));break;case"poolgroup":this.gotoPoolGroup(i(0))}}catch(r){}},t}(),bA=function(){function t(e){y(this,t),this.total=e}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new kA(t,this.total))}}]),t}(),kA=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).total=i,r.count=0,r}return b(n,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),n}(M),wA=new Set,CA=function(){var t=function(){function t(e){y(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):xA}return b(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!wA.has(t))try{dA||((dA=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(dA)),dA.sheet&&(dA.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),wA.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Py))},t.\u0275prov=It({factory:function(){return new t(fe(Py))},token:t,providedIn:"root"}),t}();function xA(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var SA=function(){var t=function(){function t(e,n){y(this,t),this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new U}return b(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return EA(Xg(t)).some((function(t){return e._registerQuery(t).mql.matches}))}},{key:"observe",value:function(t){var e=this,n=mp(EA(Xg(t)).map((function(t){return e._registerQuery(t).observable})));return(n=Zp(n.pipe(Lp(1)),n.pipe((function(t){return t.lift(new bA(1))}),$_(0)))).pipe(G((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new V((function(t){var i=function(n){return e._zone.run((function(){return t.next(n)}))};return n.addListener(i),function(){n.removeListener(i)}})).pipe($p(n),G((function(e){return{query:t,matches:e.matches}})),Cy(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(CA),fe(cc))},t.\u0275prov=It({factory:function(){return new t(fe(CA),fe(cc))},token:t,providedIn:"root"}),t}();function EA(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}function DA(t,e){if(1&t){var n=ps();us(0,"div",1),us(1,"button",2),gs("click",(function(){return xn(n),Cs().action()})),Ks(2),ls(),ls()}if(2&t){var i=Cs();Yr(2),Zs(i.data.action)}}function AA(t,e){}var IA=new re("MatSnackBarData"),OA=function t(){y(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},TA=Math.pow(2,31)-1,RA=function(){function t(e,n){var i=this;y(this,t),this._overlayRef=n,this._afterDismissed=new U,this._afterOpened=new U,this._onAction=new U,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe((function(){return i.dismiss()})),e._onExit.subscribe((function(){return i._finishDismiss()}))}return b(t,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var e=this;this._durationTimeoutId=setTimeout((function(){return e.dismiss()}),Math.min(t,TA))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed.asObservable()}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction.asObservable()}}]),t}(),MA=function(){var t=function(){function t(e,n){y(this,t),this.snackBarRef=e,this.data=n}return b(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(RA),rs(IA))},t.\u0275cmp=Me({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(us(0,"span"),Ks(1),ls(),ns(2,DA,3,1,"div",0)),2&t&&(Yr(1),Zs(e.data.message),Yr(1),os("ngIf",e.hasAction))},directives:[ld,Nx],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t}(),PA={snackBarState:Mb("state",[Vb("void, hidden",Nb({transform:"scale(0.8)",opacity:0})),Vb("visible",Nb({transform:"scale(1)",opacity:1})),jb("* => visible",Pb("150ms cubic-bezier(0, 0, 0.2, 1)")),jb("* => void, * => hidden",Pb("75ms cubic-bezier(0.4, 0.0, 1, 1)",Nb({opacity:0})))])},FA=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this))._ngZone=t,o._elementRef=i,o._changeDetectorRef=r,o.snackBarConfig=a,o._destroyed=!1,o._onExit=new U,o._onEnter=new U,o._animationState="void",o.attachDomPortal=function(t){return o._assertNotAttached(),o._applySnackBarClasses(),o._portalOutlet.attachDomPortal(t)},o._role="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?null:"status":"alert",o}return b(n,[{key:"attachComponentPortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}},{key:"onAnimationEnd",value:function(t){var e=t.toState;if(("void"===e&&"void"!==t.fromState||"hidden"===e)&&this._completeExit(),"visible"===e){var n=this._onEnter;this._ngZone.run((function(){n.next(),n.complete()}))}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(Lp(1)).subscribe((function(){t._onExit.next(),t._onExit.complete()}))}},{key:"_applySnackBarClasses",value:function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach((function(e){return t.classList.add(e)})):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}]),n}(a_);return t.\u0275fac=function(e){return new(e||t)(rs(cc),rs(_u),rs(So),rs(OA))},t.\u0275cmp=Me({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&Rl(u_,!0),2&t&&Tl(n=Vl())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&ys("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(ts("role",e._role),Js("@state",e._animationState))},features:[eu],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&ns(0,AA,0,0,"ng-template",0)},directives:[u_],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[PA.snackBarState]}}),t}(),LA=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Z_,h_,Wd,Bx,mC],mC]}),t}(),NA=new re("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new OA}}),VA=function(){var t=function(){function t(e,n,i,r,a,o){y(this,t),this._overlay=e,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=a,this._defaultConfig=o,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=MA,this.snackBarContainerComponent=FA,this.handsetCssClass="mat-snack-bar-handset"}return b(t,[{key:"openFromComponent",value:function(t,e){return this._attach(t,e)}},{key:"openFromTemplate",value:function(t,e){return this._attach(t,e)}},{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(t,e){var n=new d_(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[OA,e]])),i=new n_(this.snackBarContainerComponent,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}},{key:"_attach",value:function(t,e){var n=this,i=Object.assign(Object.assign(Object.assign({},new OA),this._defaultConfig),e),r=this._createOverlay(i),a=this._attachSnackBarContainer(r,i),o=new RA(a,r);if(t instanceof Uu){var s=new i_(t,null,{$implicit:i.data,snackBarRef:o});o.instance=a.attachTemplatePortal(s)}else{var u=this._createInjector(i,o),l=new n_(t,void 0,u),c=a.attachComponentPortal(l);o.instance=c.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(Cy(r.detachments())).subscribe((function(t){var e=r.overlayElement.classList;t.matches?e.add(n.handsetCssClass):e.remove(n.handsetCssClass)})),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(t,e){var n=this;t.afterDismissed().subscribe((function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){t.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe((function(){return t._dismissAfter(e.duration)})),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}},{key:"_createOverlay",value:function(t){var e=new x_;e.direction=t.direction;var n=this._overlay.position().global(),i="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,a=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):a?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}},{key:"_createInjector",value:function(t,e){return new d_(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[RA,e],[IA,t.data]]))}},{key:"_openedSnackBarRef",get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(U_),fe(bb),fe(Uo),fe(SA),fe(t,12),fe(NA))},t.\u0275prov=It({factory:function(){return new t(fe(U_),fe(bb),fe(ae),fe(SA),fe(t,12),fe(NA))},token:t,providedIn:LA}),t}(),BA=function(){function t(t,e,n,i,r,a){this.http=t,this.router=e,this.dialog=n,this.snackbar=i,this.sanitizer=r,this.dateAdapter=a,this.user=new Yg(udsData.profile),this.navigation=new _A(this.router),this.gui=new mA(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(t.prototype,"config",{get:function(){return udsData.config},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notices",{get:function(){return udsData.errors},enumerable:!1,configurable:!0}),t.prototype.restPath=function(t){return this.config.urls.rest+t},t.prototype.staticURL=function(t){return this.config.urls.static+t},t.prototype.logout=function(){window.location.href=this.config.urls.logout},t.prototype.gotoUser=function(){window.location.href=this.config.urls.user},t.prototype.putOnStorage=function(t,e){void 0!==typeof Storage&&sessionStorage.setItem(t,e)},t.prototype.getFromStorage=function(t){return void 0!==typeof Storage?sessionStorage.getItem(t):null},t.prototype.safeString=function(t){return this.sanitizer.bypassSecurityTrustHtml(t)},t.prototype.yesno=function(t){return t?django.gettext("yes"):django.gettext("no")},t.\u0275prov=It({token:t,factory:t.\u0275fac=function(e){return new(e||t)(fe(Yf),fe(kg),fe(Cx),fe(VA),fe(bf),fe(xC))},providedIn:"root"}),t}(),jA=function(){function t(t){this.api=t}return t.prototype.canActivate=function(t,e){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)},t.\u0275prov=It({token:t,factory:t.\u0275fac=function(e){return new(e||t)(fe(BA))},providedIn:"root"}),t}(),zA=function(t,e){return(zA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function HA(t,e){function n(){this.constructor=t}zA(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var UA=function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t}({}),WA=function(){function t(t,e,n){this.api=t,void 0===n&&(n={}),void 0===n.base&&(n.base=e);var i=function(t,e){return void 0===t?e:t};this.id=e,this.paths={base:n.base,get:i(n.get,n.base),log:i(n.log,n.base),put:i(n.put,n.base),test:i(n.test,n.base+"/test"),delete:i(n.delete,n.base),types:i(n.types,n.base+"/types"),gui:i(n.gui,n.base+"/gui"),tableInfo:i(n.tableInfo,n.base+"/tableinfo")},this.headers=(new Rf).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return t.prototype.handleError=function(t,e){var n;return void 0===e&&(e=!1),n=t.error instanceof ErrorEvent?t.error.message:e?django.gettext("Error saving: ")+t.error:"Error "+t.status+": "+t.error,this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),Ey(n)},t.prototype.getPath=function(t,e){return this.api.restPath(t+(void 0!==e?"/"+e:""))},t.prototype.doGet=function(t){var e=this;return this.api.http.get(t,{headers:this.headers}).pipe(Mp((function(t){return e.handleError(t)})))},t.prototype.get=function(t){return this.doGet(this.getPath(this.paths.get,t))},t.prototype.getLogs=function(t){return this.doGet(this.getPath(this.paths.log,t)+"/log")},t.prototype.overview=function(t){return this.get("overview"+(void 0!==t?"?filter="+t:""))},t.prototype.summary=function(t){return this.get("overview?summarize"+(void 0!==t?"&filter="+t:""))},t.prototype.put=function(t,e){var n=this;return this.api.http.put(this.getPath(this.paths.put,e),t,{headers:this.headers}).pipe(Mp((function(t){return n.handleError(t,!0)})))},t.prototype.create=function(t){return this.put(t)},t.prototype.save=function(t,e){return this.put(t,e=void 0!==e?e:t.id)},t.prototype.test=function(t,e){var n=this;return this.api.http.post(this.getPath(this.paths.test,t),e,{headers:this.headers}).pipe(Mp((function(t){return n.handleError(t)})))},t.prototype.delete=function(t){var e=this;return this.api.http.delete(this.getPath(this.paths.delete,t),{headers:this.headers}).pipe(Mp((function(t){return e.handleError(t)})))},t.prototype.permision=function(){return this.api.user.isAdmin?UA.ALL:UA.NONE},t.prototype.getPermissions=function(t){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+t))},t.prototype.addPermission=function(t,e,n,i){var r=this,a=this.getPath("permissions/"+this.paths.base+"/"+t+"/"+e+"/add/"+n);return this.api.http.put(a,{perm:i},{headers:this.headers}).pipe(Mp((function(t){return r.handleError(t)})))},t.prototype.revokePermission=function(t){var e=this,n=this.getPath("permissions/revoke");return this.api.http.put(n,{items:t},{headers:this.headers}).pipe(Mp((function(t){return e.handleError(t)})))},t.prototype.types=function(){return this.doGet(this.getPath(this.paths.types))},t.prototype.gui=function(t){var e=this.getPath(this.paths.gui+(void 0!==t?"/"+t:""));return this.doGet(e)},t.prototype.callback=function(t,e){var n=this.getPath("gui/callback/"+t+"?"+e);return this.doGet(n)},t.prototype.tableInfo=function(){return this.doGet(this.getPath(this.paths.tableInfo))},t.prototype.detail=function(t,e){return new qA(this,t,e)},t.prototype.invoke=function(t,e){var n=t;return e&&(n=n+"?"+e),this.get(n)},t}(),qA=function(t){function e(e,n,i,r){var a=t.call(this,e.api,[e.paths.base,n,i].join("/"))||this;return a.parentModel=e,a.parentId=n,a.model=i,a.perm=r,a}return HA(e,t),e.prototype.permision=function(){return this.perm||UA.ALL},e}(WA),GA=function(t){function e(e){var n=t.call(this,e,"providers")||this;return n.api=e,n}return HA(e,t),e.prototype.allServices=function(){return this.get("allservices")},e.prototype.service=function(t){return this.get("service/"+t)},e.prototype.maintenance=function(t){return this.get(t+"/maintenance")},e}(WA),YA=function(t){function e(e){var n=t.call(this,e,"authenticators")||this;return n.api=e,n}return HA(e,t),e.prototype.search=function(t,e,n,i){return void 0===i&&(i=12),this.get(t+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+i)},e}(WA),KA=function(t){function e(e){var n=t.call(this,e,"osmanagers")||this;return n.api=e,n}return HA(e,t),e}(WA),ZA=function(t){function e(e){var n=t.call(this,e,"transports")||this;return n.api=e,n}return HA(e,t),e}(WA),$A=function(t){function e(e){var n=t.call(this,e,"networks")||this;return n.api=e,n}return HA(e,t),e}(WA),XA=function(t){function e(e){var n=t.call(this,e,"servicespools")||this;return n.api=e,n}return HA(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e.prototype.actionsList=function(t){return this.get(t+"/actionsList")},e.prototype.listAssignables=function(t){return this.get(t+"/listAssignables")},e.prototype.createFromAssignable=function(t,e,n){return this.get(t+"/createFromAssignable?user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n))},e}(WA),QA=function(t){function e(e){var n=t.call(this,e,"metapools")||this;return n.api=e,n}return HA(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e}(WA),JA=function(t){function e(e){var n=t.call(this,e,"config")||this;return n.api=e,n}return HA(e,t),e}(WA),tI=function(t){function e(e){var n=t.call(this,e,"gallery/images")||this;return n.api=e,n}return HA(e,t),e}(WA),eI=function(t){function e(e){var n=t.call(this,e,"gallery/servicespoolgroups")||this;return n.api=e,n}return HA(e,t),e}(WA),nI=function(t){function e(e){var n=t.call(this,e,"system")||this;return n.api=e,n}return HA(e,t),e.prototype.information=function(){return this.get("overview")},e.prototype.stats=function(t){return this.get("stats/"+t)},e.prototype.flushCache=function(){return this.doGet(this.getPath("cache","flush"))},e}(WA),iI=function(t){function e(e){var n=t.call(this,e,"reports")||this;return n.api=e,n}return HA(e,t),e.prototype.types=function(){return Sf([])},e}(WA),rI=function(t){function e(e){var n=t.call(this,e,"calendars")||this;return n.api=e,n}return HA(e,t),e}(WA),aI=function(t){function e(e){var n=t.call(this,e,"accounts")||this;return n.api=e,n}return HA(e,t),e.prototype.timemark=function(t){return this.get(t+"/timemark")},e}(WA),oI=function(t){function e(e){var n=t.call(this,e,"proxies")||this;return n.api=e,n}return HA(e,t),e}(WA),sI=function(t){function e(e){var n=t.call(this,e,"actortokens")||this;return n.api=e,n}return HA(e,t),e}(WA),uI=function(){function t(t){this.api=t,this.providers=new GA(t),this.authenticators=new YA(t),this.osManagers=new KA(t),this.transports=new ZA(t),this.networks=new $A(t),this.servicesPools=new XA(t),this.metaPools=new QA(t),this.gallery=new tI(t),this.servicesPoolGroups=new eI(t),this.calendars=new rI(t),this.accounts=new aI(t),this.proxy=new oI(t),this.system=new nI(t),this.configuration=new JA(t),this.actorToken=new sI(t),this.reports=new iI(t)}return t.\u0275prov=It({token:t,factory:t.\u0275fac=function(e){return new(e||t)(fe(BA))},providedIn:"root"}),t}();function lI(t,e){if(1&t&&(us(0,"div",17),us(1,"div",11),cs(2,"img",3),us(3,"div",12),Ks(4),ls(),ls(),us(5,"div",13),us(6,"a",15),us(7,"uds-translate"),Ks(8,"View service pools"),ls(),ls(),ls(),ls()),2&t){var n=Cs(2);Yr(2),os("src",n.api.staticURL("admin/img/icons/logs.png"),Er),Yr(2),$s(" ",n.data.restrained," ")}}function cI(t,e){if(1&t&&(us(0,"div"),us(1,"div",8),us(2,"div",9),us(3,"div",10),us(4,"div",11),cs(5,"img",3),us(6,"div",12),Ks(7),ls(),ls(),us(8,"div",13),us(9,"a",14),us(10,"uds-translate"),Ks(11,"View authenticators"),ls(),ls(),ls(),ls(),us(12,"div",10),us(13,"div",11),cs(14,"img",3),us(15,"div",12),Ks(16),ls(),ls(),us(17,"div",13),us(18,"a",15),us(19,"uds-translate"),Ks(20,"View service pools"),ls(),ls(),ls(),ls(),us(21,"div",10),us(22,"div",11),cs(23,"img",3),us(24,"div",12),Ks(25),ls(),ls(),us(26,"div",13),us(27,"a",15),us(28,"uds-translate"),Ks(29,"View service pools"),ls(),ls(),ls(),ls(),ns(30,lI,9,2,"div",16),ls(),ls(),ls()),2&t){var n=Cs();Yr(5),os("src",n.api.staticURL("admin/img/icons/authenticators.png"),Er),Yr(2),$s(" ",n.data.users," "),Yr(7),os("src",n.api.staticURL("admin/img/icons/pools.png"),Er),Yr(2),$s(" ",n.data.pools," "),Yr(7),os("src",n.api.staticURL("admin/img/icons/services.png"),Er),Yr(2),$s(" ",n.data.user_services," "),Yr(5),os("ngIf",n.data.restrained)}}function hI(t,e){1&t&&(us(0,"div",18),us(1,"div",19),us(2,"div",20),us(3,"uds-translate"),Ks(4,"UDS Administration"),ls(),ls(),us(5,"div",21),us(6,"p"),us(7,"uds-translate"),Ks(8,"You are accessing UDS Administration as staff member."),ls(),ls(),us(9,"p"),us(10,"uds-translate"),Ks(11,"This means that you have restricted access to elements."),ls(),ls(),us(12,"p"),us(13,"uds-translate"),Ks(14,"In order to increase your access privileges, please contact your local UDS administrator. "),ls(),ls(),cs(15,"br"),us(16,"p"),us(17,"uds-translate"),Ks(18,"Thank you."),ls(),ls(),ls(),ls(),ls())}var dI=function(){function t(t,e){this.api=t,this.rest=e,this.data={}}return t.prototype.ngOnInit=function(){var t=this;this.api.user.isAdmin&&this.rest.system.information().subscribe((function(e){t.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",e.users).replace("#GRP_NUMBER#",e.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",e.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",e.user_services)},e.restrained_services_pools>0&&(t.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",e.restrained_services_pools))}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-summary"]],decls:11,vars:3,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-subtitle"],[1,"card-content"],[4,"ngIf","ngIfElse"],["noAdmin",""],[1,"admin"],[1,"information"],[1,"info-panel"],[1,"info-panel-data"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/authenticators"],["mat-button","","routerLink","/pools/service-pools"],["class","info-panel info-danger",4,"ngIf"],[1,"info-panel","info-danger"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(t,e){if(1&t&&(us(0,"div",0),us(1,"div",1),us(2,"div",2),cs(3,"img",3),us(4,"uds-translate"),Ks(5,"Dashboard"),ls(),ls(),cs(6,"div",4),ls(),us(7,"div",5),ns(8,cI,31,7,"div",6),ns(9,hI,19,0,"ng-template",null,7,Hl),ls(),ls()),2&t){var n=is(10);Yr(3),os("src",e.api.staticURL("admin/img/icons/dashboard-monitor.png"),Er),Yr(5),os("ngIf",e.api.user.isAdmin)("ngIfElse",n)}},directives:[jx,ld,Vx,xg],styles:[".card[_ngcontent-%COMP%]{height:80%}.staff-container[_ngcontent-%COMP%]{margin-top:2rem;display:flex;justify-content:center}.staff[_ngcontent-%COMP%]{border:#337ab7;border-width:1px;border-style:solid}.staff-header[_ngcontent-%COMP%]{display:flex;justify-content:center;background-color:#337ab7;color:#fff;font-weight:700}.staff-content[_ngcontent-%COMP%], .staff-header[_ngcontent-%COMP%]{padding:.5rem 1rem}.admin[_ngcontent-%COMP%]{display:flex;flex-direction:column}.information[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.info-panel[_ngcontent-%COMP%]{border-color:#333;background-image:linear-gradient(135deg,#fdfcfb,#e2d1c3);box-shadow:0 1px 4px 0 rgba(0,0,0,.14);box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%}.info-danger[_ngcontent-%COMP%]{background-image:linear-gradient(90deg,#f83600 0,#f9d423);color:#fff;font-weight:700;font-size:1.5em}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1rem}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1rem;width:5rem}.info-text[_ngcontent-%COMP%]{width:100%;text-align:center}.info-panel-link[_ngcontent-%COMP%]{background:#4682b4}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:#fff}"]}),t}(),fI=["underline"],pI=["connectionContainer"],mI=["inputContainer"],vI=["label"];function gI(t,e){1&t&&(hs(0),us(1,"div",14),cs(2,"div",15),cs(3,"div",16),cs(4,"div",17),ls(),us(5,"div",18),cs(6,"div",15),cs(7,"div",16),cs(8,"div",17),ls(),ds())}function yI(t,e){1&t&&(us(0,"div",19),Es(1,1),ls())}function _I(t,e){if(1&t&&(hs(0),Es(1,2),us(2,"span"),Ks(3),ls(),ds()),2&t){var n=Cs(2);Yr(3),Zs(n._control.placeholder)}}function bI(t,e){1&t&&Es(0,3,["*ngSwitchCase","true"])}function kI(t,e){1&t&&(us(0,"span",23),Ks(1," *"),ls())}function wI(t,e){if(1&t){var n=ps();us(0,"label",20,21),gs("cdkObserveContent",(function(){return xn(n),Cs().updateOutlineGap()})),ns(2,_I,4,1,"ng-container",12),ns(3,bI,1,0,"ng-content",12),ns(4,kI,2,0,"span",22),ls()}if(2&t){var i=Cs();Ns("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),os("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),ts("for",i._control.id)("aria-owns",i._control.id),Yr(2),os("ngSwitchCase",!1),Yr(1),os("ngSwitchCase",!0),Yr(1),os("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function CI(t,e){1&t&&(us(0,"div",24),Es(1,4),ls())}function xI(t,e){if(1&t&&(us(0,"div",25,26),cs(2,"span",27),ls()),2&t){var n=Cs();Yr(2),Ns("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function SI(t,e){1&t&&(us(0,"div"),Es(1,5),ls()),2&t&&os("@transitionMessages",Cs()._subscriptAnimationState)}function EI(t,e){if(1&t&&(us(0,"div",31),Ks(1),ls()),2&t){var n=Cs(2);os("id",n._hintLabelId),Yr(1),Zs(n.hintLabel)}}function DI(t,e){if(1&t&&(us(0,"div",28),ns(1,EI,2,2,"div",29),Es(2,6),cs(3,"div",30),Es(4,7),ls()),2&t){var n=Cs();os("@transitionMessages",n._subscriptAnimationState),Yr(1),os("ngIf",n.hintLabel)}}var AI=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],II=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],OI=0,TI=new re("MatError"),RI=function(){var t=function t(){y(this,t),this.id="mat-error-".concat(OI++)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&ts("id",e.id)},inputs:{id:"id"},features:[pu([{provide:TI,useExisting:t}])]}),t}(),MI={transitionMessages:Mb("transitionMessages",[Vb("enter",Nb({opacity:1,transform:"translateY(0%)"})),jb("void => enter",[Nb({opacity:0,transform:"translateY(-100%)"}),Pb("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},PI=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t}),t}();function FI(t){return Error("A hint was already declared for 'align=\"".concat(t,"\"'."))}var LI=0,NI=new re("MatHint"),VI=function(){var t=function t(){y(this,t),this.align="start",this.id="mat-hint-".concat(LI++)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(ts("id",e.id)("align",null),Ns("mat-right","end"==e.align))},inputs:{align:"align",id:"id"},features:[pu([{provide:NI,useExisting:t}])]}),t}(),BI=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-label"]]}),t}(),jI=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-placeholder"]]}),t}(),zI=new re("MatPrefix"),HI=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","matPrefix",""]],features:[pu([{provide:zI,useExisting:t}])]}),t}(),UI=new re("MatSuffix"),WI=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","matSuffix",""]],features:[pu([{provide:UI,useExisting:t}])]}),t}(),qI=0,GI=gC((function t(e){y(this,t),this._elementRef=e}),"primary"),YI=new re("MAT_FORM_FIELD_DEFAULT_OPTIONS"),KI=new re("MatFormField"),ZI=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u,l){var c;return y(this,n),(c=e.call(this,t))._elementRef=t,c._changeDetectorRef=i,c._dir=a,c._defaults=o,c._platform=s,c._ngZone=u,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new U,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-".concat(qI++),c._labelId="mat-form-field-label-".concat(qI++),c._labelOptions=r||{},c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==l,c.appearance=o&&o.appearance?o.appearance:"legacy",c._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,c}return b(n,[{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe($p(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Cy(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Cy(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),ht(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe($p(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe($p(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(Cy(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t.updateOutlineGap()}))})):t.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(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{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 t=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,ty(this._label.nativeElement,"transitionend").pipe(Lp(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach((function(i){if("start"===i.align){if(t||n.hintLabel)throw FI("start");t=i}else if("end"===i.align){if(e)throw FI("end");e=i}}))}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,n=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map((function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),a=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=i.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(o),u=t.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var d=0;d void",Hb("@transformPanel",[zb()],{optional:!0}))]),transformPanel:Mb("transformPanel",[Vb("void",Nb({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Vb("showing",Nb({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Vb("showing-multiple",Nb({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),jb("void => *",Pb("120ms cubic-bezier(0, 0, 0.2, 1)")),jb("* => void",Pb("100ms 25ms linear",Nb({opacity:0})))])},sO=0,uO=new re("mat-select-scroll-strategy"),lO=new re("MAT_SELECT_CONFIG"),cO={provide:uO,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},hO=function t(e,n){y(this,t),this.source=e,this.value=n},dO=yC(_C(vC(bC((function t(e,n,i,r,a){y(this,t),this._elementRef=e,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=a}))))),fO=new re("MatSelectTrigger"),pO=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-select-trigger"]],features:[pu([{provide:fO,useExisting:t}])]}),t}(),mO=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o,s,u,c,h,d,f,p,m,v,g){var _;return y(this,n),(_=e.call(this,s,o,c,h,f))._viewportRuler=t,_._changeDetectorRef=i,_._ngZone=r,_._dir=u,_._parentFormField=d,_.ngControl=f,_._liveAnnouncer=v,_._panelOpen=!1,_._required=!1,_._scrollTop=0,_._multiple=!1,_._compareWith=function(t,e){return t===e},_._uid="mat-select-".concat(sO++),_._destroy=new U,_._triggerFontSize=0,_._onChange=function(){},_._onTouched=function(){},_._optionIds="",_._transformOrigin="top",_._panelDoneAnimatingStream=new U,_._offsetY=0,_._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],_._disableOptionCentering=!1,_._focused=!1,_.controlType="mat-select",_.ariaLabel="",_.optionSelectionChanges=bp((function(){var t=_.options;return t?t.changes.pipe($p(t),Gp((function(){return ht.apply(void 0,l(t.map((function(t){return t.onSelectionChange}))))}))):_._ngZone.onStable.asObservable().pipe(Lp(1),Gp((function(){return _.optionSelectionChanges})))})),_.openedChange=new bl,_._openedStream=_.openedChange.pipe(Df((function(t){return t})),G((function(){}))),_._closedStream=_.openedChange.pipe(Df((function(t){return!t})),G((function(){}))),_.selectionChange=new bl,_.valueChange=new bl,_.ngControl&&(_.ngControl.valueAccessor=a(_)),_._scrollStrategyFactory=m,_._scrollStrategy=_._scrollStrategyFactory(),_.tabIndex=parseInt(p)||0,_.id=_.id,g&&(null!=g.disableOptionCentering&&(_.disableOptionCentering=g.disableOptionCentering),null!=g.typeaheadDebounceInterval&&(_.typeaheadDebounceInterval=g.typeaheadDebounceInterval)),_}return b(n,[{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new Yy(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(dy(),Cy(this._destroy)).subscribe((function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(Cy(this._destroy)).subscribe((function(){t._panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(Cy(this._destroy)).subscribe((function(t){t.added.forEach((function(t){return t.select()})),t.removed.forEach((function(t){return t.deselect()}))})),this.options.changes.pipe($p(null),Cy(this._destroy)).subscribe((function(){t._resetOptions(),t._initializeSelection()}))}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.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(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Lp(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))})))}},{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(t){this.value=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,n=40===e||38===e||37===e||39===e,i=13===e||32===e,r=this._keyManager;if(!r.isTyping()&&i&&!m_(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var a=this.selected;36===e||35===e?(36===e?r.setFirstItemActive():r.setLastItemActive(),t.preventDefault()):r.onKeydown(t);var o=this.selected;o&&a!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,n=t.keyCode,i=40===n||38===n,r=e.isTyping();if(36===n||35===n)t.preventDefault(),36===n?e.setFirstItemActive():e.setLastItemActive();else if(i&&t.altKey)t.preventDefault(),this.close();else if(r||13!==n&&32!==n||!e.activeItem||m_(t))if(!r&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();var a=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(a?t.select():t.deselect())}))}else{var o=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==o&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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 t=this;this.overlayDir.positionChange.pipe(Lp(1)).subscribe((function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then((function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()}))}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach((function(t){return e._selectValue(t)})),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,n=this.options.find((function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return tr()&&console.warn(i),!1}}));return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new cb(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Cy(this._destroy)).subscribe((function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())})),this._keyManager.change.pipe(Cy(this._destroy)).subscribe((function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var t=this,e=ht(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Cy(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),ht.apply(void 0,l(this.options.map((function(t){return t._stateChanges})))).pipe(Cy(e)).subscribe((function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})),this._setOptionIds()}},{key:"_onSelect",value:function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort((function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)})),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new hO(this,e)),this._changeDetectorRef.markForCheck()}},{key:"_setOptionIds",value:function(){this._optionIds=this.options.map((function(t){return t.id})).join(" ")}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var t=this._keyManager.activeItemIndex||0,e=sx(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=ux(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getOptionIndex",value:function(t){return this.options.reduce((function(e,n,i){return void 0!==e?e:t===n?i:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=sx(r,this.options,this.optionGroups);var a=n/2;this._scrollTop=this._calculateOverlayScroll(r,a,i),this._offsetY=this._calculateOverlayOffsetY(r,a,i),this._checkOverlayWithinViewport(i)}},{key:"_calculateOverlayScroll",value:function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}},{key:"_getAriaLabel",value:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}},{key:"_getAriaLabelledby",value:function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else{var a=this._selectionModel.selected[0]||this.options.first;t=a&&a.group?32:16}i||(t*=-1);var o=0-(e.left+t-(i?r:0)),s=e.right+t-n.width+(i?0:r);o>0?t+=o+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,n){var i,r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,o=Math.floor(256/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*i-a))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-a-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):a>i?this._adjustPanelDown(a,i,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,n){var i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2,n=Math.abs(this._offsetY)-e+t/2;return"50% ".concat(n,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=Kg(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Kg(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=Kg(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){t!==this._value&&(this.options&&this._setSelectionByValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=Zg(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map((function(t){return t.viewValue}));return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),n}(dO);return t.\u0275fac=function(e){return new(e||t)(rs(Xy),rs(So),rs(cc),rs(FC),rs(_u),rs(Hy,8),rs(lE,8),rs(CE,8),rs(KI,8),rs(oS,10),as("tabindex"),rs(uO),rs(bb),rs(lO,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(Fl(n,fO,!0),Fl(n,ox,!0),Fl(n,JC,!0)),2&t&&(Tl(i=Vl())&&(e.customTrigger=i.first),Tl(i=Vl())&&(e.options=i),Tl(i=Vl())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(Ml(XI,!0),Ml(QI,!0),Ml(Y_,!0)),2&t&&(Tl(n=Vl())&&(e.trigger=n.first),Tl(n=Vl())&&(e.panel=n.first),Tl(n=Vl())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&gs("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(ts("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),Ns("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[pu([{provide:PI,useExisting:t},{provide:rx,useExisting:t}]),eu,Qe],ngContentSelectors:aO,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",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,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(Ss(rO),us(0,"div",0,1),gs("click",(function(){return e.toggle()})),us(3,"div",2),ns(4,JI,2,1,"span",3),ns(5,nO,3,2,"span",4),ls(),us(6,"div",5),cs(7,"div",6),ls(),ls(),ns(8,iO,4,11,"ng-template",7),gs("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){var n=is(1);Yr(3),os("ngSwitch",e.empty),Yr(1),os("ngSwitchCase",!0),Yr(1),os("ngSwitchCase",!1),Yr(3),os("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[G_,fd,pd,Y_,md,rd],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;-ms-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}.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}\n"],encapsulation:2,data:{animation:[oO.transformPanelWrap,oO.transformPanel]},changeDetection:0}),t}(),vO=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[cO],imports:[[Wd,Z_,lx,mC],Qy,$I,lx,mC]}),t}(),gO={tooltipState:Mb("state",[Vb("initial, void, hidden",Nb({opacity:0,transform:"scale(0)"})),Vb("visible",Nb({transform:"scale(1)"})),jb("* => visible",Pb("200ms cubic-bezier(0, 0, 0.2, 1)",Bb([Nb({opacity:0,transform:"scale(0)",offset:0}),Nb({opacity:.5,transform:"scale(0.99)",offset:.5}),Nb({opacity:1,transform:"scale(1)",offset:1})]))),jb("* => hidden",Pb("100ms cubic-bezier(0, 0, 0.2, 1)",Nb({opacity:0})))])},yO=Vy({passive:!0});function _O(t){return Error('Tooltip position "'.concat(t,'" is invalid.'))}var bO=new re("mat-tooltip-scroll-strategy"),kO={provide:bO,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},wO=new re("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),CO=function(){var t=function(){function t(e,n,i,r,a,o,s,u,l,c,h){var d=this;y(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=a,this._platform=o,this._ariaDescriber=s,this._focusMonitor=u,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new U,this._handleKeydown=function(t){d._isTooltipVisible()&&27===t.keyCode&&!m_(t)&&(t.preventDefault(),t.stopPropagation(),d._ngZone.run((function(){return d.hide(0)})))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),a.runOutsideAngular((function(){n.nativeElement.addEventListener("keydown",d._handleKeydown)}))}return b(t,[{key:"ngAfterViewInit",value:function(){var t=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Cy(this._destroyed)).subscribe((function(e){e?"keyboard"===e&&t._ngZone.run((function(){return t.show()})):t._ngZone.run((function(){return t.hide(0)}))}))}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(e){var n=u(e,2);t.removeEventListener(n[0],n[1],yO)})),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=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 n=this._createOverlay();this._detach(),this._portal=this._portal||new n_(xO,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Cy(this._destroyed)).subscribe((function(){return t._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{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 t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return n.positionChanges.pipe(Cy(this._destroyed)).subscribe((function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run((function(){return t.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Cy(this._destroyed)).subscribe((function(){return t._detach()})),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n||"below"==n)t={originX:"center",originY:"above"==n?"top":"bottom"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={originX:"start",originY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw _O(n);t={originX:"end",originY:"center"}}var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n)t={overlayX:"center",overlayY:"bottom"};else if("below"==n)t={overlayX:"center",overlayY:"top"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw _O(n);t={overlayX:"start",overlayY:"center"}}var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Lp(1),Cy(this._destroyed)).subscribe((function(){t._tooltipInstance&&t._overlayRef.updatePosition()})))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var t=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){t._setupPointerExitEventsIfNeeded(),t.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){t._setupPointerExitEventsIfNeeded(),clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout((function(){return t.show()}),500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var t,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return e.hide()}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(t=this._passiveListeners).push.apply(t,n)}}},{key:"_addListeners",value:function(t){var e=this;t.forEach((function(t){var n=u(t,2);e._elementRef.nativeElement.addEventListener(n[0],n[1],yO)}))}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this.touchGestures;if("off"!==t){var e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}},{key:"position",get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Kg(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?"".concat(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(U_),rs(_u),rs(Zy),rs(qu),rs(cc),rs(Py),rs(ub),rs(Sb),rs(bO),rs(Hy,8),rs(wO,8))},t.\u0275dir=Be({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t}(),xO=function(){var t=function(){function t(e,n){y(this,t),this._changeDetectorRef=e,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new U,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return b(t,[{key:"show",value:function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()}),t)}},{key:"hide",value:function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()}),t)}},{key:"afterHidden",value:function(){return this._onHide.asObservable()}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(So),rs(SA))},t.\u0275cmp=Me({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&gs("click",(function(){return e._handleBodyInteraction()}),!1,yi),2&t&&Ls("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(us(0,"div",0),gs("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),ml(1,"async"),Ks(2),ls()),2&t&&(Ns("mat-tooltip-handset",null==(n=vl(1,5,e._isHandset))?null:n.matches),os("ngClass",e.tooltipClass)("@state",e._visibility),Yr(2),Zs(e.message))},directives:[rd],pipes:[xd],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:[gO.tooltipState]},changeDetection:0}),t}(),SO=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[kO],imports:[[Ib,Wd,Z_,mC],mC,Qy]}),t}();function EO(t,e){if(1&t&&(us(0,"mat-option",19),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n),Yr(1),$s(" ",n," ")}}function DO(t,e){if(1&t){var n=ps();us(0,"mat-form-field",16),us(1,"mat-select",17),gs("selectionChange",(function(t){return xn(n),Cs(2)._changePageSize(t.value)})),ns(2,EO,2,2,"mat-option",18),ls(),ls()}if(2&t){var i=Cs(2);os("color",i.color),Yr(1),os("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),Yr(1),os("ngForOf",i._displayedPageSizeOptions)}}function AO(t,e){if(1&t&&(us(0,"div",20),Ks(1),ls()),2&t){var n=Cs(2);Yr(1),Zs(n.pageSize)}}function IO(t,e){if(1&t&&(us(0,"div",12),us(1,"div",13),Ks(2),ls(),ns(3,DO,3,5,"mat-form-field",14),ns(4,AO,2,1,"div",15),ls()),2&t){var n=Cs();Yr(2),$s(" ",n._intl.itemsPerPageLabel," "),Yr(1),os("ngIf",n._displayedPageSizeOptions.length>1),Yr(1),os("ngIf",n._displayedPageSizeOptions.length<=1)}}function OO(t,e){if(1&t){var n=ps();us(0,"button",21),gs("click",(function(){return xn(n),Cs().firstPage()})),Xn(),us(1,"svg",7),cs(2,"path",22),ls(),ls()}if(2&t){var i=Cs();os("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),ts("aria-label",i._intl.firstPageLabel)}}function TO(t,e){if(1&t){var n=ps();Xn(),Qn(),us(0,"button",23),gs("click",(function(){return xn(n),Cs().lastPage()})),Xn(),us(1,"svg",7),cs(2,"path",24),ls(),ls()}if(2&t){var i=Cs();os("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),ts("aria-label",i._intl.lastPageLabel)}}var RO=function(){var t=function t(){y(this,t),this.changes=new U,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,n){if(0==n||0==e)return"0 of ".concat(n);var i=t*e,r=i<(n=Math.max(n,0))?Math.min(i+e,n):i+e;return"".concat(i+1," \u2013 ").concat(r," of ").concat(n)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return new t},token:t,providedIn:"root"}),t}(),MO={provide:RO,deps:[[new Ct,new St,RO]],useFactory:function(t){return t||new RO}},PO=new re("MAT_PAGINATOR_DEFAULT_OPTIONS"),FO=vC(kC((function t(){y(this,t)}))),LO=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;if(y(this,n),(a=e.call(this))._intl=t,a._changeDetectorRef=i,a._pageIndex=0,a._length=0,a._pageSizeOptions=[],a._hidePageSize=!1,a._showFirstLastButtons=!1,a.page=new bl,a._intlChanges=t.changes.subscribe((function(){return a._changeDetectorRef.markForCheck()})),r){var o=r.pageSize,s=r.pageSizeOptions,u=r.hidePageSize,l=r.showFirstLastButtons;null!=o&&(a._pageSize=o),null!=s&&(a._pageSizeOptions=s),null!=u&&(a._hidePageSize=u),null!=l&&(a._showFirstLastButtons=l)}return a}return b(n,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex=i.length&&(r=0),i[r]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(t){if(tr()&&t&&"asc"!==t&&"desc"!==t)throw function(t){return Error("".concat(t," is not a valid sort direction ('asc' or 'desc')."))}(t);this._direction=t}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=Kg(t)}}]),n}(zO);return t.\u0275fac=function(e){return UO(e||t)},t.\u0275dir=Be({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[eu,Qe]}),t}(),UO=Vi(HO),WO=dC.ENTERING+" "+hC.STANDARD_CURVE,qO={indicator:Mb("indicator",[Vb("active-asc, asc",Nb({transform:"translateY(0px)"})),Vb("active-desc, desc",Nb({transform:"translateY(10px)"})),jb("active-asc <=> active-desc",Pb(WO))]),leftPointer:Mb("leftPointer",[Vb("active-asc, asc",Nb({transform:"rotate(-45deg)"})),Vb("active-desc, desc",Nb({transform:"rotate(45deg)"})),jb("active-asc <=> active-desc",Pb(WO))]),rightPointer:Mb("rightPointer",[Vb("active-asc, asc",Nb({transform:"rotate(45deg)"})),Vb("active-desc, desc",Nb({transform:"rotate(-45deg)"})),jb("active-asc <=> active-desc",Pb(WO))]),arrowOpacity:Mb("arrowOpacity",[Vb("desc-to-active, asc-to-active, active",Nb({opacity:1})),Vb("desc-to-hint, asc-to-hint, hint",Nb({opacity:.54})),Vb("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Nb({opacity:0})),jb("* => asc, * => desc, * => active, * => hint, * => void",Pb("0ms")),jb("* <=> *",Pb(WO))]),arrowPosition:Mb("arrowPosition",[jb("* => desc-to-hint, * => desc-to-active",Pb(WO,Bb([Nb({transform:"translateY(-25%)"}),Nb({transform:"translateY(0)"})]))),jb("* => hint-to-desc, * => active-to-desc",Pb(WO,Bb([Nb({transform:"translateY(0)"}),Nb({transform:"translateY(25%)"})]))),jb("* => asc-to-hint, * => asc-to-active",Pb(WO,Bb([Nb({transform:"translateY(25%)"}),Nb({transform:"translateY(0)"})]))),jb("* => hint-to-asc, * => active-to-asc",Pb(WO,Bb([Nb({transform:"translateY(0)"}),Nb({transform:"translateY(-25%)"})]))),Vb("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Nb({transform:"translateY(0)"})),Vb("hint-to-desc, active-to-desc, desc",Nb({transform:"translateY(-25%)"})),Vb("hint-to-asc, active-to-asc, asc",Nb({transform:"translateY(25%)"}))]),allowChildren:Mb("allowChildren",[jb("* <=> *",[Hb("@*",zb(),{optional:!0})])])},GO=function(){var t=function t(){y(this,t),this.changes=new U,this.sortButtonLabel=function(t){return"Change sorting for ".concat(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return new t},token:t,providedIn:"root"}),t}(),YO={provide:GO,deps:[[new Ct,new St,GO]],useFactory:function(t){return t||new GO}},KO=vC((function t(){y(this,t)})),ZO=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s){var u;if(y(this,n),(u=e.call(this))._intl=t,u._sort=r,u._columnDef=a,u._focusMonitor=o,u._elementRef=s,u._showIndicatorHint=!1,u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",!r)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return u._rerenderSubscription=ht(r.sortChange,r._stateChanges,t.changes).subscribe((function(){u._isSorted()&&u._updateArrowDirection(),!u._isSorted()&&u._viewState&&"active"===u._viewState.toState&&(u._disableViewStateAnimation=!1,u._setAnimationTransitionState({fromState:"active",toState:u._arrowDirection})),i.markForCheck()})),u}return b(n,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){return t._setIndicatorHintVisible(!!e)}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}},{key:"_handleClick",value:function(){this._isDisabled()||this._toggleOnInteraction()}},{key:"_handleKeydown",value:function(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var t=this._viewState.fromState;return(t?"".concat(t,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=Kg(t)}}]),n}(KO);return t.\u0275fac=function(e){return new(e||t)(rs(GO),rs(So),rs(HO,8),rs("MAT_SORT_HEADER_COLUMN_DEF",8),rs(Sb),rs(_u))},t.\u0275cmp=Me({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&gs("click",(function(){return e._handleClick()}))("keydown",(function(t){return e._handleKeydown(t)}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(ts("aria-sort",e._getAriaSortAttribute()),Ns("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[eu],attrs:VO,ngContentSelectors:jO,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(Ss(),us(0,"div",0),us(1,"div",1),Es(2),ls(),ns(3,BO,6,6,"div",2),ls()),2&t&&(Ns("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),ts("tabindex",e._isDisabled()?null:0),Yr(3),os("ngIf",e._renderArrow()))},directives:[ld],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[qO.indicator,qO.leftPointer,qO.rightPointer,qO.arrowOpacity,qO.arrowPosition,qO.allowChildren]},changeDetection:0}),t}(),$O=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[YO],imports:[[Wd]]}),t}(),XO=[[["caption"]],[["colgroup"],["col"]]],QO=["caption","colgroup, col"];function JO(t,e){if(1&t&&(us(0,"th",3),Ks(1),ls()),2&t){var n=Cs();Ls("text-align",n.justify),Yr(1),$s(" ",n.headerText," ")}}function tT(t,e){if(1&t&&(us(0,"td",4),Ks(1),ls()),2&t){var n=e.$implicit,i=Cs();Ls("text-align",i.justify),Yr(1),$s(" ",i.dataAccessor(n,i.name)," ")}}function eT(t){return function(t){f(n,t);var e=g(n);function n(){var t;y(this,n);for(var i=arguments.length,r=new Array(i),a=0;a4&&void 0!==arguments[4])||arguments[4];y(this,t),this._isNativeHtmlTable=e,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=a}return b(t,[{key:"clearStickyPositioning",value:function(t,e){var n,i=this,r=[],a=h(t);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.nodeType===o.ELEMENT_NODE){r.push(o);for(var s=0;s0;r--)e[r]&&(n[r]=i,i+=t[r]);return n}}]),t}();function AT(t){return Error('Could not find column with id "'.concat(t,'".'))}var IT=function(){var t=function t(e,n){y(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(rs(qu),rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","rowOutlet",""]]}),t}(),OT=function(){var t=function t(e,n){y(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(rs(qu),rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),TT=function(){var t=function t(e,n){y(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(rs(qu),rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),RT=function(){var t=function t(e,n){y(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(rs(qu),rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","noDataRowOutlet",""]]}),t}(),MT=function(){var t=function(){function t(e,n,i,r,a,o,s,u){y(this,t),this._differs=e,this._changeDetectorRef=n,this._coalescedStyleScheduler=i,this._elementRef=r,this._dir=o,this._platform=u,this._onDestroy=new U,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this.viewChange=new lp({start:0,end:Number.MAX_VALUE}),a||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return b(t,[{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(e,n){return t.trackBy?t.trackBy(n.dataIndex,n.data):n}))}},{key:"ngAfterContentChecked",value:function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");var t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():t&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Gy(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var n=this._rowOutlet.viewContainer;e.forEachOperation((function(e,i,r){if(null==e.previousIndex)t._insertRow(e.item,r);else if(null==r)n.remove(i);else{var a=n.get(i);n.move(a,r)}})),this._updateRowIndexContext(),e.forEachIdentityChange((function(t){n.get(t.currentIndex).context.$implicit=t.item.data})),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"updateStickyHeaderRowStyles",value:function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var n=this._headerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach((function(t){return t.resetStickyChanged()}))}},{key:"updateStickyFooterRowStyles",value:function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var n=this._footerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach((function(t){return t.resetStickyChanged()}))}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([].concat(l(e),l(n),l(i)),["left","right"]),e.forEach((function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])})),this._rowDefs.forEach((function(e){for(var i=[],r=0;r1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]}},{key:"_renderUpdatedColumns",value:function(){var t=function(t,e){return t||!!e.getColumnsDiff()},e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();var n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();var i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}},{key:"_switchDataSource",value:function(t){this._data=[],Gy(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}},{key:"_observeRenderChanges",value:function(){var t,e=this;if(this.dataSource){var n;if(Gy(this.dataSource)?n=this.dataSource.connect(this):(t=this.dataSource)&&(t instanceof V||"function"==typeof t.lift&&"function"==typeof t.subscribe)?n=this.dataSource:Array.isArray(this.dataSource)&&(n=Sf(this.dataSource)),void 0===n)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=n.pipe(Cy(this._onDestroy)).subscribe((function(t){e._data=t||[],e.renderRows()}))}}},{key:"_forceRenderHeaderRows",value:function(){var t=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(e,n){return t._renderRow(t._headerRowOutlet,e,n)})),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(e,n){return t._renderRow(t._footerRowOutlet,e,n)})),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var n=this,i=Array.from(e.columns||[]).map((function(t){var e=n._columnDefsByName.get(t);if(!e)throw AT(t);return e})),r=i.map((function(t){return t.sticky})),a=i.map((function(t){return t.stickyEnd}));this._stickyStyler.updateStickyColumns(t,r,a)}},{key:"_getRenderedRows",value:function(t){for(var e=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{};t.viewContainer.createEmbeddedView(e.template,i,n);var r,a=h(this._getCellTemplates(e));try{for(a.s();!(r=a.n()).done;){var o=r.value;kT.mostRecentCellOutlet&&kT.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i)}}catch(s){a.e(s)}finally{a.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,n=t.length;e0&&void 0!==arguments[0]?arguments[0]:[];return y(this,n),(t=e.call(this))._renderData=new lp([]),t._filter=new lp(""),t._internalPageChanges=new U,t._renderChangesSubscription=E.EMPTY,t.sortingDataAccessor=function(t,e){var n=t[e];if($g(n)){var i=Number(n);return i<9007199254740991?i:n}return n},t.sortData=function(e,n){var i=n.active,r=n.direction;return i&&""!=r?e.sort((function(e,n){var a=t.sortingDataAccessor(e,i),o=t.sortingDataAccessor(n,i),s=0;return null!=a&&null!=o?a>o?s=1:a0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,e._internalPageChanges.next())}}))}},{key:"connect",value:function(){return this._renderData}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t)}},{key:"filter",get:function(){return this._filter.value},set:function(t){this._filter.next(t)}},{key:"sort",get:function(){return this._sort},set:function(t){this._sort=t,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(t){this._paginator=t,this._updateChangeSubscription()}}]),n}(qy);function yR(t){return t instanceof Date&&!isNaN(+t)}function _R(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:my,n=yR(t),i=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new bR(i,e))}}var bR=function(){function t(e,n){y(this,t),this.delay=e,this.scheduler=n}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new kR(t,this.delay,this.scheduler))}}]),t}(),kR=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t)).delay=i,a.scheduler=r,a.queue=[],a.active=!1,a.errored=!1,a}return b(n,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new wR(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(Iy.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Iy.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var a=Math.max(0,n[0].time-i.now());this.schedule(t,a)}else this.unsubscribe(),e.active=!1}}]),n}(M),wR=function t(e,n){y(this,t),this.time=e,this.notification=n},CR=Vy({passive:!0}),xR=function(){var t=function(){function t(e,n){y(this,t),this._platform=e,this._ngZone=n,this._monitoredElements=new Map}return b(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return yp;var n=Jg(t),i=this._monitoredElements.get(n);if(i)return i.subject.asObservable();var r=new U,a="cdk-text-field-autofilled",o=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(a)&&(n.classList.remove(a),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!1})}))):(n.classList.add(a),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",o,CR),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",o,CR)}}),r.asObservable()}},{key:"stopMonitoring",value:function(t){var e=Jg(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach((function(e,n){return t.stopMonitoring(n)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Py),fe(cc))},t.\u0275prov=It({factory:function(){return new t(fe(Py),fe(cc))},token:t,providedIn:"root"}),t}(),SR=function(){var t=function(){function t(e,n){y(this,t),this._elementRef=e,this._autofillMonitor=n,this.cdkAutofill=new bl}return b(t,[{key:"ngOnInit",value:function(){var t=this;this._autofillMonitor.monitor(this._elementRef).subscribe((function(e){return t.cdkAutofill.emit(e)}))}},{key:"ngOnDestroy",value:function(){this._autofillMonitor.stopMonitoring(this._elementRef)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(xR))},t.\u0275dir=Be({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t}(),ER=function(){var t=function(){function t(e,n,i,r){y(this,t),this._elementRef=e,this._platform=n,this._ngZone=i,this._destroyed=new U,this._enabled=!0,this._previousMinRows=-1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=n.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return b(t,[{key:"_setMinHeight",value:function(){var t=this.minRows&&this._cachedLineHeight?"".concat(this.minRows*this._cachedLineHeight,"px"):null;t&&(this._textareaElement.style.minHeight=t)}},{key:"_setMaxHeight",value:function(){var t=this.maxRows&&this._cachedLineHeight?"".concat(this.maxRows*this._cachedLineHeight,"px"):null;t&&(this._textareaElement.style.maxHeight=t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular((function(){ty(t._getWindow(),"resize").pipe(wy(16),Cy(t._destroyed)).subscribe((function(){return t.resizeToFitContent(!0)}))})))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(e||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=n.placeholder;n.classList.add(this._measuringClass),n.placeholder="";var a=n.scrollHeight-4;n.style.height="".concat(a,"px"),n.classList.remove(this._measuringClass),n.placeholder=r,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return t._scrollToCaretPosition(n)})):setTimeout((function(){return t._scrollToCaretPosition(n)}))})),this._previousValue=i,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(t){var e=t.selectionStart,n=t.selectionEnd,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==t||t.setSelectionRange(e,n)}},{key:"minRows",get:function(){return this._minRows},set:function(t){this._minRows=Zg(t),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(t){this._maxRows=Zg(t),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(t){t=Kg(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Py),rs(cc),rs(Wc,8))},t.\u0275dir=Be({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&gs("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t}(),DR=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Fy]]}),t}(),AR=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"matAutosizeMinRows",get:function(){return this.minRows},set:function(t){this.minRows=t}},{key:"matAutosizeMaxRows",get:function(){return this.maxRows},set:function(t){this.maxRows=t}},{key:"matAutosize",get:function(){return this.enabled},set:function(t){this.enabled=t}},{key:"matTextareaAutosize",get:function(){return this.enabled},set:function(t){this.enabled=t}}]),n}(ER);return t.\u0275fac=function(e){return IR(e||t)},t.\u0275dir=Be({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[eu]}),t}(),IR=Vi(AR),OR=new re("MAT_INPUT_VALUE_ACCESSOR"),TR=["button","checkbox","file","hidden","image","radio","range","reset","submit"],RR=0,MR=bC((function t(e,n,i,r){y(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r})),PR=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u,l,c,h){var d;y(this,n),(d=e.call(this,s,a,o,r))._elementRef=t,d._platform=i,d.ngControl=r,d._autofillMonitor=l,d._formField=h,d._uid="mat-input-".concat(RR++),d.focused=!1,d.stateChanges=new U,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(t){return Ny().has(t)}));var f=d._elementRef.nativeElement,p=f.nodeName.toLowerCase();return d._inputValueAccessor=u||f,d._previousNativeValue=d.value,d.id=d.id,i.IOS&&c.runOutsideAngular((function(){t.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===p,d._isTextarea="textarea"===p,d._isNativeSelect&&(d.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select"),d}return b(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()}))}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_focusChanged",value:function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var t=this._formField,e=t&&t._hideControlPlaceholder()?null:this.placeholder;if(e!==this._previousPlaceholder){var n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){if(TR.indexOf(this._type)>-1)throw Error('Input type "'.concat(this._type,"\" isn't supported by matInput."))}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=Kg(t),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=Kg(t)}},{key:"type",get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Ny().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(t){this._readonly=Kg(t)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}}]),n}(MR);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Py),rs(oS,10),rs(lE,8),rs(CE,8),rs(FC),rs(OR,10),rs(xR),rs(cc),rs(ZI,8))},t.\u0275dir=Be({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&gs("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(Qs("disabled",e.disabled)("required",e.required),ts("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),Ns("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[pu([{provide:PI,useExisting:t}]),eu,Qe]}),t}(),FR=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[FC],imports:[[DR,$I],DR,$I]}),t}(),LR=["searchSelectInput"],NR=["innerSelectSearch"];function VR(t,e){if(1&t){var n=ps();us(0,"button",6),gs("click",(function(){return xn(n),Cs()._reset(!0)})),us(1,"i",7),Ks(2,"close"),ls(),ls()}}var BR=function(t){return{"mat-select-search-inner-multiple":t}},jR=function(){function t(t,e){this.matSelect=t,this.changeDetectorRef=e,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new bl,this.overlayClassSet=!1,this.change=new bl,this._onDestroy=new U}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this,e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,this.matSelect.openedChange.pipe(_R(1),Cy(this._onDestroy)).subscribe((function(e){e?(t.getWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()})),this.matSelect.openedChange.pipe(Lp(1)).pipe(Cy(this._onDestroy)).subscribe((function(){t._options=t.matSelect.options,t._options.changes.pipe(Cy(t._onDestroy)).subscribe((function(){var e=t.matSelect._keyManager;e&&t.matSelect.panelOpen&&setTimeout((function(){e.setFirstItemActive(),t.getWidth()}),1)}))})),this.change.pipe(Cy(this._onDestroy)).subscribe((function(){t.changeDetectorRef.detectChanges()})),this.initMultipleHandling()},t.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout((function(){t.setOverlayClass()})),this.matSelect.openedChange.pipe(Lp(1),Cy(this._onDestroy)).subscribe((function(){t.matSelect.options.changes.pipe(Cy(t._onDestroy)).subscribe((function(){t.changeDetectorRef.markForCheck()}))}))},t.prototype._handleKeydown=function(t){(t.key&&1===t.key.length||t.keyCode>=65&&t.keyCode<=90||t.keyCode>=48&&t.keyCode<=57||32===t.keyCode)&&t.stopPropagation()},t.prototype.writeValue=function(t){t!==this._value&&(this._value=t,this.change.emit(t))},t.prototype.onInputChange=function(t){t!==this._value&&(this.initMultiSelectedValues(),this._value=t,this.changed.emit(t),this.change.emit(t))},t.prototype.onBlur=function(t){this.writeValue(t)},t.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}},t.prototype._reset=function(t){this.searchSelectInput&&(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),t&&this._focus())},t.prototype.setOverlayClass=function(){var t=this;this.overlayClassSet||(this.matSelect.overlayDir.attach.pipe(Cy(this._onDestroy)).subscribe((function(){for(var e,n=t.searchSelectInput.nativeElement;n=n.parentElement;)if(n.classList.contains("cdk-overlay-pane")){e=n;break}e&&e.classList.add("cdk-overlay-pane-select-search")})),this.overlayClassSet=!0)},t.prototype.initMultipleHandling=function(){var t=this;this.matSelect.valueChange.pipe(Cy(this._onDestroy)).subscribe((function(e){if(t.matSelect.multiple){var n=!1;if(t._value&&t._value.length&&t.previousSelectedValues&&Array.isArray(t.previousSelectedValues)){e&&Array.isArray(e)||(e=[]);var i=t.matSelect.options.map((function(t){return t.value}));t.previousSelectedValues.forEach((function(t){-1===e.indexOf(t)&&-1===i.indexOf(t)&&(e.push(t),n=!0)}))}n&&t.matSelect._onChange(e),t.previousSelectedValues=e}}))},t.prototype.getWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,e=this.innerSelectSearch.nativeElement;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}},t.prototype.initMultiSelectedValues=function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter((function(t){return t.selected})).map((function(t){return t.value})))},t.\u0275fac=function(e){return new(e||t)(rs(mO),rs(So))},t.\u0275cmp=Me({type:t,selectors:[["uds-mat-select-search"]],viewQuery:function(t,e){var n;1&t&&(Rl(LR,!0,_u),Rl(NR,!0,_u)),2&t&&(Tl(n=Vl())&&(e.searchSelectInput=n.first),Tl(n=Vl())&&(e.innerSelectSearch=n.first))},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[pu([{provide:$x,useExisting:Ht((function(){return t})),multi:!0}])],decls:6,vars:5,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["matInput","","autocomplete","off",1,"mat-select-search-input",3,"placeholder","keydown","input","blur"],["searchSelectInput",""],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(cs(0,"input",0),us(1,"div",1,2),us(3,"input",3,4),gs("keydown",(function(t){return e._handleKeydown(t)}))("input",(function(t){return e.onInputChange(t.target.value)}))("blur",(function(t){return e.onBlur(t.target.value)})),ls(),ns(5,VR,3,0,"button",5),ls()),2&t&&(Yr(1),os("ngClass",cl(3,BR,e.matSelect.multiple)),Yr(2),os("placeholder",e.placeholderLabel),Yr(2),os("ngIf",e.value))},directives:[PR,rd,ld,Nx],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 36px 16px 16px;box-sizing:border-box}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px} .cdk-overlay-pane-select-search{margin-top:-50px}"],changeDetection:0}),t}();function zR(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New user permission for"),ls())}function HR(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New group permission for"),ls())}function UR(t,e){if(1&t&&(us(0,"mat-option",11),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),Zs(n.text)}}function WR(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",12),gs("changed",(function(t){return xn(n),Cs().filterUser=t})),ls()}}function qR(t,e){if(1&t&&(us(0,"mat-option",11),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),Zs(n.text)}}function GR(t,e){if(1&t&&(us(0,"mat-option",11),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),Zs(n.text)}}var YR=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.onSave=new bl(!0)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:i},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe((function(e){e.forEach((function(e){t.authenticators.push({id:e.id,text:e.name})}))}))},t.prototype.changeAuth=function(t){var e=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(t,this.data.type+"s").summary().subscribe((function(t){t.forEach((function(t){e.entities.push({id:t.id,text:t.name})}))}))},t.prototype.save=function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()},t.prototype.filteredEntities=function(){var t=this,e=new Array;return this.entities.forEach((function(n){(""===t.filterUser||n.text.toLocaleLowerCase().includes(t.filterUser.toLocaleLowerCase()))&&e.push(n)})),e},t.prototype.getFieldLabel=function(t){return"user"===t?django.gettext("User"):"group"===t?django.gettext("Group"):"auth"===t?django.gettext("Authenticator"):django.gettext("Permission")},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){if(1&t&&(us(0,"h4",0),ns(1,zR,2,0,"uds-translate",1),cs(2,"b",2),ns(3,HR,2,0,"ng-template",null,3,Hl),ls(),us(5,"mat-dialog-content"),us(6,"div",4),us(7,"mat-form-field"),us(8,"mat-select",5),gs("valueChange",(function(t){return e.changeAuth(t)}))("ngModelChange",(function(t){return e.authenticator=t})),ns(9,UR,2,2,"mat-option",6),ls(),ls(),us(10,"mat-form-field"),us(11,"mat-select",7),gs("ngModelChange",(function(t){return e.entity=t})),ns(12,WR,1,0,"uds-mat-select-search",8),ns(13,qR,2,2,"mat-option",6),ls(),ls(),us(14,"mat-form-field"),us(15,"mat-select",7),gs("ngModelChange",(function(t){return e.permission=t})),ns(16,GR,2,2,"mat-option",6),ls(),ls(),ls(),ls(),us(17,"mat-dialog-actions"),us(18,"button",9),us(19,"uds-translate"),Ks(20,"Cancel"),ls(),ls(),us(21,"button",10),gs("click",(function(){return e.save()})),us(22,"uds-translate"),Ks(23,"Ok"),ls(),ls(),ls()),2&t){var n=is(4);Yr(1),os("ngIf","user"===e.data.type)("ngIfElse",n),Yr(1),os("innerHTML",e.data.item.name,Sr),Yr(6),os("placeholder",e.getFieldLabel("auth"))("ngModel",e.authenticator),Yr(1),os("ngForOf",e.authenticators),Yr(2),os("placeholder",e.getFieldLabel(e.data.type))("ngModel",e.entity),Yr(1),os("ngIf",e.entities.length>10),Yr(1),os("ngForOf",e.filteredEntities()),Yr(2),os("placeholder",e.getFieldLabel("perm"))("ngModel",e.permission),Yr(1),os("ngForOf",e.permissions)}},directives:[Ex,ld,Dx,ZI,mO,uS,gE,sd,Ax,Nx,Sx,jx,ox,jR],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function KR(t,e){if(1&t){var n=ps();us(0,"div",11),us(1,"div",12),Ks(2),ls(),us(3,"div",13),Ks(4),us(5,"a",14),gs("click",(function(){xn(n);var t=e.$implicit;return Cs(2).revokePermission(t)})),us(6,"i",15),Ks(7,"close"),ls(),ls(),ls(),ls()}if(2&t){var i=e.$implicit;Yr(2),Xs(" ",i.entity_name,"@",i.auth_name," "),Yr(2),$s(" ",i.perm_name," \xa0")}}function ZR(t,e){if(1&t){var n=ps();us(0,"div",7),us(1,"div",8),us(2,"div",9),gs("click",(function(t){xn(n);var i=e.$implicit;return Cs().newPermission(i),t.preventDefault()})),us(3,"uds-translate"),Ks(4,"New permission..."),ls(),ls(),ns(5,KR,8,3,"div",10),ls(),ls()}if(2&t){var i=e.$implicit;Yr(5),os("ngForOf",i)}}var $R=function(t,e){return[t,e]},XR=function(){function t(t,e,n){this.api=t,this.dialogRef=e,this.data=n,this.userPermissions=[],this.groupPermissions=[]}return t.launch=function(e,n,i){var r=window.innerWidth<800?"90%":"60%";e.gui.dialog.open(t,{width:r,data:{rest:n,item:i},disableClose:!1})},t.prototype.ngOnInit=function(){this.reload()},t.prototype.reload=function(){var t=this;this.data.rest.getPermissions(this.data.item.id).subscribe((function(e){t.updatePermissions(e)}))},t.prototype.updatePermissions=function(t){var e=this;this.userPermissions.length=0,this.groupPermissions.length=0,t.forEach((function(t){"user"===t.type?e.userPermissions.push(t):e.groupPermissions.push(t)}))},t.prototype.revokePermission=function(t){var e=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+t.entity_name+"@"+t.auth_name+" "+t.perm_name+"").subscribe((function(n){n&&e.data.rest.revokePermission([t.id]).subscribe((function(t){e.reload()}))}))},t.prototype.newPermission=function(t){var e=this,n=t===this.userPermissions?"user":"group";YR.launch(this.api,n,this.data.item).subscribe((function(t){e.data.rest.addPermission(e.data.item.id,n+"s",t.entity,t.permissision).subscribe((function(t){e.reload()}))}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Permissions for"),ls(),Ks(3,"\xa0"),cs(4,"b",1),ls(),us(5,"mat-dialog-content"),us(6,"div",2),us(7,"uds-translate",3),Ks(8,"Users"),ls(),us(9,"uds-translate",3),Ks(10,"Groups"),ls(),ls(),us(11,"div",4),ns(12,ZR,6,1,"div",5),ls(),ls(),us(13,"mat-dialog-actions"),us(14,"button",6),us(15,"uds-translate"),Ks(16,"Ok"),ls(),ls(),ls()),2&t&&(Yr(4),os("innerHTML",e.data.item.name,Sr),Yr(8),os("ngForOf",hl(2,$R,e.userPermissions,e.groupPermissions)))},directives:[Ex,jx,Dx,sd,Ax,Nx,Sx],styles:[".titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),QR=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],JR=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],tM={days:QR,shortDays:eM(QR),months:JR,shortMonths:eM(JR),AM:"AM",PM:"PM",am:"am",pm:"pm"};function eM(t){var e=[];return t.forEach((function(t){e.push(t.substr(0,3))})),e}function nM(t,e,n){return function t(e,n,i,r){r=r||{},n=n||new Date,(i=i||tM).formats=i.formats||{};var a=n.getTime();return(r.utc||"number"==typeof r.timezone)&&(n=function(t){var e;return e=6e4*(t.getTimezoneOffset()||0),new Date(t.getTime()+e)}(n)),"number"==typeof r.timezone&&(n=new Date(n.getTime()+6e4*r.timezone)),e.replace(/%([-_0]?.)/g,(function(e,o){var s,u,l,c,h,d,f;if(u=null,c=null,2===o.length){if("-"===(u=o[0]))c="";else if("_"===u)c=" ";else{if("0"!==u)return e;c="0"}o=o[1]}switch(o){case"A":return i.days[n.getDay()];case"a":return i.shortDays[n.getDay()];case"B":return i.months[n.getMonth()];case"b":return i.shortMonths[n.getMonth()];case"C":return iM(Math.floor(n.getFullYear()/100),c);case"D":return t(i.formats.D||"%m/%d/%y",n,i);case"d":return iM(n.getDate(),c);case"e":return n.getDate();case"F":return t(i.formats.F||"%Y-%m-%d",n,i);case"H":return iM(n.getHours(),c);case"h":return i.shortMonths[n.getMonth()];case"I":return iM(rM(n),c);case"j":return d=new Date(n.getFullYear(),0,1),iM(Math.ceil((n.getTime()-d.getTime())/864e5),3);case"k":return iM(n.getHours(),void 0===c?" ":c);case"L":return iM(Math.floor(a%1e3),3);case"l":return iM(rM(n),void 0===c?" ":c);case"M":return iM(n.getMinutes(),c);case"m":return iM(n.getMonth()+1,c);case"n":return"\n";case"o":return String(n.getDate())+function(t){var e,n;if(e=t%10,(n=t%100)>=11&&n<=13||0===e||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}}(n.getDate());case"P":case"p":return"";case"R":return t(i.formats.R||"%H:%M",n,i);case"r":return t(i.formats.r||"%I:%M:%S %p",n,i);case"S":return iM(n.getSeconds(),c);case"s":return Math.floor(a/1e3);case"T":return t(i.formats.T||"%H:%M:%S",n,i);case"t":return"\t";case"U":return iM(aM(n,"sunday"),c);case"u":return 0===(s=n.getDay())?7:s;case"v":return t(i.formats.v||"%e-%b-%Y",n,i);case"W":return iM(aM(n,"monday"),c);case"w":return n.getDay();case"Y":return n.getFullYear();case"y":return(f=String(n.getFullYear())).slice(f.length-2);case"Z":return r.utc?"GMT":(h=n.toString().match(/\((\w+)\)/))&&h[1]||"";case"z":return r.utc?"+0000":((l="number"==typeof r.timezone?r.timezone:-n.getTimezoneOffset())<0?"-":"+")+iM(Math.abs(l/60))+iM(l%60);default:return o}}))}(t,e,n)}function iM(t,e,n){"number"==typeof e&&(n=e,e="0"),e=null==e?"0":e,n=null==n?2:n;var i=String(t);if(e)for(;i.length12&&(e-=12),e}function aM(t,e){var n,i;return e=e||"sunday",i=t.getDay(),"monday"===e&&(0===i?i=6:i--),n=new Date(t.getFullYear(),0,1),Math.floor(((t-n)/864e5+7-i)/7)}function oM(t){return t.replace(/./g,(function(t){switch(t){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+t;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return t}}))}function sM(t,e,n){var i;if(void 0===n&&(n=null),"None"===e||null==e)e=7226578800,i=django.gettext("Never");else{var r=django.get_format(t);n&&(r+=n),i=nM(oM(r),new Date(1e3*e))}return i}function uM(t){return"yes"===t||!0===t||"true"===t||1===t}var lM=n("dunZ");function cM(t){return void 0!==t.changingThisBreaksApplicationSecurity&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(t=""+t).replace('"','""')+'"'}function hM(t){var e="";t.columns.forEach((function(t){e+=cM(t.title)+","})),e=e.slice(0,-1)+"\r\n",t.dataSource.data.forEach((function(n){t.columns.forEach((function(t){var i=n[t.name];switch(t.type){case vA.DATE:i=sM("SHORT_DATE_FORMAT",i);break;case vA.DATETIME:i=sM("SHORT_DATETIME_FORMAT",i);break;case vA.DATETIMESEC:i=sM("SHORT_DATE_FORMAT",i," H:i:s");break;case vA.TIME:i=sM("TIME_FORMAT",i)}e+=cM(i)+","})),e=e.slice(0,-1)+"\r\n"}));var n=new Blob([e],{type:"text/csv"});setTimeout((function(){Object(lM.saveAs)(n,t.title+".csv")}),100)}function dM(t,e){if(1&t&&(Xn(),cs(0,"circle",3)),2&t){var n=Cs();Ls("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),ts("r",n._getCircleRadius())}}function fM(t,e){if(1&t&&(Xn(),cs(0,"circle",3)),2&t){var n=Cs();Ls("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),ts("r",n._getCircleRadius())}}function pM(t,e){if(1&t&&(Xn(),cs(0,"circle",3)),2&t){var n=Cs();Ls("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),ts("r",n._getCircleRadius())}}function mM(t,e){if(1&t&&(Xn(),cs(0,"circle",3)),2&t){var n=Cs();Ls("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),ts("r",n._getCircleRadius())}}var vM=".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",gM=gC((function t(e){y(this,t),this._elementRef=e}),"primary"),yM=new re("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),_M=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o){var s;y(this,n),(s=e.call(this,t))._elementRef=t,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var u=n._diameters;return u.has(r.head)||u.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===a&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return b(n,[{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=jy(t)||this._document.head,this._attachStyleNode();var e="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");t.classList.add(e)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var t=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,e=this._diameter,i=n._diameters,r=i.get(t);if(!r||!r.has(e)){var a=this._document.createElement("style");a.setAttribute("mat-spinner-animation",e+""),a.textContent=this._getAnimationText(),t.appendChild(a),r||(r=new Set,i.set(t,r)),r.add(e)}}},{key:"_getAnimationText",value:function(){var t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*t)).replace(/END_VALUE/g,"".concat(.2*t)).replace(/DIAMETER/g,"".concat(this.diameter))}},{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=Zg(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=Zg(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,Zg(t)))}}]),n}(gM);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Py),rs(Wc,8),rs(iC,8),rs(yM))},t.\u0275cmp=Me({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(ts("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Ls("width",e.diameter,"px")("height",e.diameter,"px"),Ns("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[eu],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Xn(),us(0,"svg",0),ns(1,dM,1,9,"circle",1),ns(2,fM,1,7,"circle",2),ls()),2&t&&(Ls("width",e.diameter,"px")("height",e.diameter,"px"),os("ngSwitch","indeterminate"===e.mode),ts("viewBox",e._getViewBox()),Yr(1),os("ngSwitchCase",!0),Yr(1),os("ngSwitchCase",!1))},directives:[fd,pd],styles:[vM],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t}(),bM=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o){var s;return y(this,n),(s=e.call(this,t,i,r,a,o)).mode="indeterminate",s}return n}(_M);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Py),rs(Wc,8),rs(iC,8),rs(yM))},t.\u0275cmp=Me({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(Ls("width",e.diameter,"px")("height",e.diameter,"px"),Ns("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[eu],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Xn(),us(0,"svg",0),ns(1,pM,1,9,"circle",1),ns(2,mM,1,7,"circle",2),ls()),2&t&&(Ls("width",e.diameter,"px")("height",e.diameter,"px"),os("ngSwitch","indeterminate"===e.mode),ts("viewBox",e._getViewBox()),Yr(1),os("ngSwitchCase",!0),Yr(1),os("ngSwitchCase",!1))},directives:[fd,pd],styles:[vM],encapsulation:2,changeDetection:0}),t}(),kM=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[mC,Wd],mC]}),t}(),wM=["mat-menu-item",""],CM=["*"];function xM(t,e){if(1&t){var n=ps();us(0,"div",0),gs("keydown",(function(t){return xn(n),Cs()._handleKeydown(t)}))("click",(function(){return xn(n),Cs().closed.emit("click")}))("@transformMenu.start",(function(t){return xn(n),Cs()._onAnimationStart(t)}))("@transformMenu.done",(function(t){return xn(n),Cs()._onAnimationDone(t)})),us(1,"div",1),Es(2),ls(),ls()}if(2&t){var i=Cs();os("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),ts("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var SM={transformMenu:Mb("transformMenu",[Vb("void",Nb({opacity:0,transform:"scale(0.8)"})),jb("void => enter",Fb([Hb(".mat-menu-content, .mat-mdc-menu-content",Pb("100ms linear",Nb({opacity:1}))),Pb("120ms cubic-bezier(0, 0, 0.2, 1)",Nb({transform:"scale(1)"}))])),jb("* => void",Pb("100ms 25ms linear",Nb({opacity:0})))]),fadeInItems:Mb("fadeInItems",[Vb("showing",Nb({opacity:1})),jb("void => *",[Nb({opacity:0}),Pb("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},EM=new re("MatMenuContent"),DM=function(){var t=function(){function t(e,n,i,r,a,o,s){y(this,t),this._template=e,this._componentFactoryResolver=n,this._appRef=i,this._injector=r,this._viewContainerRef=a,this._document=o,this._changeDetectorRef=s,this._attached=new U}return b(t,[{key:"attach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new i_(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new o_(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Uu),rs(yu),rs(Tc),rs(Uo),rs(qu),rs(Wc),rs(So))},t.\u0275dir=Be({type:t,selectors:[["ng-template","matMenuContent",""]],features:[pu([{provide:EM,useExisting:t}])]}),t}(),AM=new re("MAT_MENU_PANEL"),IM=yC(vC((function t(){y(this,t)}))),OM=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o){var s;return y(this,n),(s=e.call(this))._elementRef=t,s._focusMonitor=r,s._parentMenu=o,s.role="menuitem",s._hovered=new U,s._focused=new U,s._highlighted=!1,s._triggersSubmenu=!1,o&&o.addItem&&o.addItem(a(s)),s._document=i,s}return b(n,[{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){var t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3,n="";if(t.childNodes)for(var i=t.childNodes.length,r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.asObservable().pipe(Lp(1)).subscribe((function(){return t._focusFirstItem(e)})):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e=Math.min(4+t,24),n="mat-elevation-z".concat(e),i=Object.keys(this._classList).find((function(t){return t.startsWith("mat-elevation-z")}));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe($p(this._allItems)).subscribe((function(e){t._directDescendantItems.reset(e.filter((function(e){return e._parentMenu===t}))),t._directDescendantItems.notifyOnChanges()}))}},{key:"xPosition",get:function(){return this._xPosition},set:function(t){tr()&&"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=t,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(t){tr()&&"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=Kg(t)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Kg(t)}},{key:"panelClass",set:function(t){var e=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach((function(t){e._classList[t]=!1})),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach((function(t){e._classList[t]=!0})),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(t){this.panelClass=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(cc),rs(TM))},t.\u0275dir=Be({type:t,contentQueries:function(t,e,n){var i;1&t&&(Fl(n,EM,!0),Fl(n,OM,!0),Fl(n,OM,!1)),2&t&&(Tl(i=Vl())&&(e.lazyContent=i.first),Tl(i=Vl())&&(e._allItems=i),Tl(i=Vl())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&Ml(Uu,!0),2&t&&Tl(n=Vl())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}(),PM=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(MM);return t.\u0275fac=function(e){return FM(e||t)},t.\u0275dir=Be({type:t,features:[eu]}),t}(),FM=Vi(PM),LM=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){return y(this,n),e.call(this,t,i,r)}return n}(PM);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(cc),rs(TM))},t.\u0275cmp=Me({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[pu([{provide:AM,useExisting:PM},{provide:PM,useExisting:t}]),eu],ngContentSelectors:CM,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Ss(),ns(0,xM,3,6,"ng-template"))},directives:[rd],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[SM.transformMenu,SM.fadeInItems]},changeDetection:0}),t}(),NM=new re("mat-menu-scroll-strategy"),VM={provide:NM,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},BM=Vy({passive:!0}),jM=function(){var t=function(){function t(e,n,i,r,a,o,s,u){var l=this;y(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._parentMenu=a,this._menuItemInstance=o,this._dir=s,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=E.EMPTY,this._hoverSubscription=E.EMPTY,this._menuCloseSubscription=E.EMPTY,this._handleTouchStart=function(){return l._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new bl,this.onMenuOpen=this.menuOpened,this.menuClosed=new bl,this.onMenuClose=this.menuClosed,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,BM),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return b(t,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,BM),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return t.closeMenu()})),this._initMenu(),this.menu instanceof PM&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"_destroyMenu",value:function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),e instanceof PM?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Df((function(t){return"void"===t.toState})),Lp(1),Cy(e.lazyContent._attached)).subscribe({next:function(){return e.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){tr()&&!this.menu&&function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new x_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe((function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")}))}},{key:"_setPosition",value:function(t){var e=u("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=e[0],i=e[1],r=u("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=r[0],o=r[1],s=a,l=o,c=n,h=i,d=0;this.triggersSubmenu()?(h=n="before"===this.menu.xPosition?"start":"end",i=c="end"===n?"start":"end",d="bottom"===a?8:-8):this.menu.overlapTrigger||(s="top"===a?"bottom":"top",l="top"===o?"bottom":"top"),t.withPositions([{originX:n,originY:s,overlayX:c,overlayY:a,offsetY:d},{originX:i,originY:s,overlayX:h,overlayY:a,offsetY:d},{originX:n,originY:l,overlayX:c,overlayY:o,offsetY:-d},{originX:i,originY:l,overlayX:h,overlayY:o,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return ht(e,this._parentMenu?this._parentMenu.closed:Sf(),this._parentMenu?this._parentMenu._hovered().pipe(Df((function(e){return e!==t._menuItemInstance})),Df((function(){return t._menuOpen}))):Sf(),n)}},{key:"_handleMousedown",value:function(t){wb(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Df((function(e){return e===t._menuItemInstance&&!e.disabled})),_R(0,hy)).subscribe((function(){t._openedBy="mouse",t.menu instanceof PM&&t.menu._isAnimating?t.menu._animationDone.pipe(Lp(1),_R(0,hy),Cy(t._parentMenu._hovered())).subscribe((function(){return t.openMenu()})):t.openMenu()})))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new i_(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(tr()&&t===this._parentMenu&&function(){throw Error("matMenuTriggerFor: menu cannot contain its own trigger. Assign a menu that is not a parent of the trigger or move the trigger outside of the menu.")}(),this._menuCloseSubscription=t.close.asObservable().subscribe((function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMenu||e._parentMenu.closed.emit(t)}))))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(U_),rs(_u),rs(qu),rs(NM),rs(PM,8),rs(OM,10),rs(Hy,8),rs(Sb))},t.\u0275dir=Be({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&gs("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&ts("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),zM=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[VM],imports:[mC]}),t}(),HM=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[VM],imports:[[Wd,mC,GC,Z_,zM],Qy,mC,zM]}),t}(),UM=function(){var t=function(){function t(){y(this,t),this._vertical=!1,this._inset=!1}return b(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=Kg(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=Kg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(ts("aria-orientation",e.vertical?"vertical":"horizontal"),Ns("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t}(),WM=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[mC],mC]}),t}(),qM=function(){function t(){}return t.prototype.transform=function(t,e){return t.sort(void 0===e?function(t,e){return t>e?1:-1}:function(t,n){return t[e]>n[e]?1:-1})},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"sort",type:t,pure:!0}),t}(),GM=["trigger"];function YM(t,e){1&t&&cs(0,"img",36),2&t&&os("src",Cs().icon,Er)}function KM(t,e){if(1&t){var n=ps();us(0,"button",46),gs("click",(function(){xn(n);var t=e.$implicit,i=Cs(5);return i.newAction.emit({param:t,table:i})})),ls()}if(2&t){var i=e.$implicit,r=Cs(5);os("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Sr)}}function ZM(t,e){if(1&t&&(hs(0),us(1,"button",42),Ks(2),ls(),us(3,"mat-menu",43,44),ns(5,KM,1,1,"button",45),ml(6,"sort"),ls(),ds()),2&t){var n=e.$implicit,i=is(4);Yr(1),os("matMenuTriggerFor",i),Yr(1),Zs(n.key),Yr(1),os("overlapTrigger",!1),Yr(2),os("ngForOf",gl(6,4,n.value,"name"))}}function $M(t,e){if(1&t&&(hs(0),us(1,"mat-menu",37,38),ns(3,ZM,7,7,"ng-container",39),ml(4,"keyvalue"),ls(),us(5,"a",40),us(6,"i",17),Ks(7,"insert_drive_file"),ls(),us(8,"span",41),us(9,"uds-translate"),Ks(10,"New"),ls(),ls(),us(11,"i",17),Ks(12,"arrow_drop_down"),ls(),ls(),ds()),2&t){var n=is(2),i=Cs(3);Yr(1),os("overlapTrigger",!1),Yr(2),os("ngForOf",vl(4,3,i.grpTypes)),Yr(2),os("matMenuTriggerFor",n)}}function XM(t,e){if(1&t){var n=ps();us(0,"button",46),gs("click",(function(){xn(n);var t=e.$implicit,i=Cs(4);return i.newAction.emit({param:t,table:i})})),ls()}if(2&t){var i=e.$implicit,r=Cs(4);os("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Sr)}}function QM(t,e){if(1&t&&(hs(0),us(1,"mat-menu",37,38),ns(3,XM,1,1,"button",45),ml(4,"sort"),ls(),us(5,"a",40),us(6,"i",17),Ks(7,"insert_drive_file"),ls(),us(8,"span",41),us(9,"uds-translate"),Ks(10,"New"),ls(),ls(),us(11,"i",17),Ks(12,"arrow_drop_down"),ls(),ls(),ds()),2&t){var n=is(2),i=Cs(3);Yr(1),os("overlapTrigger",!1),Yr(2),os("ngForOf",gl(4,3,i.oTypes,"name")),Yr(2),os("matMenuTriggerFor",n)}}function JM(t,e){if(1&t&&(hs(0),ns(1,$M,13,5,"ng-container",8),ns(2,QM,13,6,"ng-container",8),ds()),2&t){var n=Cs(2);Yr(1),os("ngIf",n.newGrouped),Yr(1),os("ngIf",!n.newGrouped)}}function tP(t,e){if(1&t){var n=ps();hs(0),us(1,"a",47),gs("click",(function(){xn(n);var t=Cs(2);return t.newAction.emit({param:void 0,table:t})})),us(2,"i",17),Ks(3,"insert_drive_file"),ls(),us(4,"span",41),us(5,"uds-translate"),Ks(6,"New"),ls(),ls(),ls(),ds()}}function eP(t,e){if(1&t&&(hs(0),ns(1,JM,3,2,"ng-container",8),ns(2,tP,7,0,"ng-container",8),ds()),2&t){var n=Cs();Yr(1),os("ngIf",null!=n.oTypes&&0!=n.oTypes.length),Yr(1),os("ngIf",null!=n.oTypes&&0==n.oTypes.length)}}function nP(t,e){if(1&t){var n=ps();hs(0),us(1,"a",48),gs("click",(function(){xn(n);var t=Cs();return t.emitIfSelection(t.editAction)})),us(2,"i",17),Ks(3,"edit"),ls(),us(4,"span",41),us(5,"uds-translate"),Ks(6,"Edit"),ls(),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(1),os("disabled",1!=i.selection.selected.length)}}function iP(t,e){if(1&t){var n=ps();hs(0),us(1,"a",48),gs("click",(function(){return xn(n),Cs().permissions()})),us(2,"i",17),Ks(3,"perm_identity"),ls(),us(4,"span",41),us(5,"uds-translate"),Ks(6,"Permissions"),ls(),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(1),os("disabled",1!=i.selection.selected.length)}}function rP(t,e){if(1&t){var n=ps();us(0,"a",50),gs("click",(function(){xn(n);var t=e.$implicit;return Cs(2).emitCustom(t)})),ls()}if(2&t){var i=e.$implicit;os("disabled",Cs(2).isCustomDisabled(i))("innerHTML",i.html,Sr)}}function aP(t,e){if(1&t&&(hs(0),ns(1,rP,1,2,"a",49),ds()),2&t){var n=Cs();Yr(1),os("ngForOf",n.getcustomButtons())}}function oP(t,e){if(1&t){var n=ps();hs(0),us(1,"a",51),gs("click",(function(){return xn(n),Cs().export()})),us(2,"i",17),Ks(3,"import_export"),ls(),us(4,"span",41),us(5,"uds-translate"),Ks(6,"Export"),ls(),ls(),ls(),ds()}}function sP(t,e){if(1&t){var n=ps();hs(0),us(1,"a",52),gs("click",(function(){xn(n);var t=Cs();return t.emitIfSelection(t.deleteAction,!0)})),us(2,"i",17),Ks(3,"delete_forever"),ls(),us(4,"span",41),us(5,"uds-translate"),Ks(6,"Delete"),ls(),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(1),os("disabled",i.selection.isEmpty())}}function uP(t,e){if(1&t){var n=ps();us(0,"button",53),gs("click",(function(){xn(n);var t=Cs();return t.filterText="",t.applyFilter()})),us(1,"i",17),Ks(2,"close"),ls(),ls()}}function lP(t,e){1&t&&cs(0,"mat-header-cell")}function cP(t,e){1&t&&(us(0,"i",17),Ks(1,"check_box"),ls())}function hP(t,e){1&t&&(us(0,"i",17),Ks(1,"check_box_outline_blank"),ls())}function dP(t,e){if(1&t){var n=ps();us(0,"mat-cell",56),gs("click",(function(t){xn(n);var i=e.$implicit;return Cs(2).clickRow(i,t)})),ns(1,cP,2,0,"i",57),ns(2,hP,2,0,"ng-template",null,58,Hl),ls()}if(2&t){var i=e.$implicit,r=is(3),a=Cs(2);Yr(1),os("ngIf",a.selection.isSelected(i))("ngIfElse",r)}}function fP(t,e){1&t&&(hs(0,54),ns(1,lP,1,0,"mat-header-cell",22),ns(2,dP,4,2,"mat-cell",55),ds())}function pP(t,e){1&t&&cs(0,"mat-header-cell")}function mP(t,e){if(1&t){var n=ps();us(0,"mat-cell"),us(1,"div",59),gs("click",(function(t){xn(n);var i=e.$implicit,r=Cs();return r.detailAction.emit({param:i,table:r}),t.stopPropagation()})),us(2,"i",17),Ks(3,"subdirectory_arrow_right"),ls(),ls(),ls()}}function vP(t,e){if(1&t&&(us(0,"mat-header-cell",63),Ks(1),ls()),2&t){var n=Cs().$implicit;Yr(1),Zs(n.title)}}function gP(t,e){if(1&t){var n=ps();us(0,"mat-cell",64),gs("click",(function(t){xn(n);var i=e.$implicit;return Cs(2).clickRow(i,t)}))("contextmenu",(function(t){xn(n);var i=e.$implicit;return Cs(2).onContextMenu(i,t)})),cs(1,"div",65),ls()}if(2&t){var i=e.$implicit,r=Cs().$implicit,a=Cs();Yr(1),os("innerHtml",a.getRowColumn(i,r),Sr)}}function yP(t,e){1&t&&(hs(0,60),ns(1,vP,2,1,"mat-header-cell",61),ns(2,gP,2,1,"mat-cell",62),ds()),2&t&&Ds("matColumnDef",e.$implicit.name)}function _P(t,e){1&t&&cs(0,"mat-header-row")}function bP(t,e){if(1&t&&cs(0,"mat-row",66),2&t){var n=e.$implicit;os("ngClass",Cs().rowClass(n))}}function kP(t,e){if(1&t&&(us(0,"div",67),Ks(1),us(2,"uds-translate"),Ks(3,"Selected items"),ls(),ls()),2&t){var n=Cs();Yr(1),$s(" ",n.selection.selected.length," ")}}function wP(t,e){if(1&t){var n=ps();us(0,"button",71),gs("click",(function(){xn(n);var t=Cs().item,e=Cs();return e.detailAction.emit({param:t,table:e})})),us(1,"i",72),Ks(2,"subdirectory_arrow_right"),ls(),us(3,"uds-translate"),Ks(4,"Detail"),ls(),ls()}}function CP(t,e){if(1&t){var n=ps();us(0,"button",71),gs("click",(function(){xn(n);var t=Cs(2);return t.emitIfSelection(t.editAction)})),us(1,"i",72),Ks(2,"edit"),ls(),us(3,"uds-translate"),Ks(4,"Edit"),ls(),ls()}}function xP(t,e){if(1&t){var n=ps();us(0,"button",71),gs("click",(function(){return xn(n),Cs(2).permissions()})),us(1,"i",72),Ks(2,"perm_identity"),ls(),us(3,"uds-translate"),Ks(4,"Permissions"),ls(),ls()}}function SP(t,e){if(1&t){var n=ps();us(0,"button",73),gs("click",(function(){xn(n);var t=e.$implicit;return Cs(2).emitCustom(t)})),ls()}if(2&t){var i=e.$implicit;os("disabled",Cs(2).isCustomDisabled(i))("innerHTML",i.html,Sr)}}function EP(t,e){if(1&t){var n=ps();us(0,"button",74),gs("click",(function(){xn(n);var t=Cs(2);return t.emitIfSelection(t.deleteAction)})),us(1,"i",72),Ks(2,"delete_forever"),ls(),us(3,"uds-translate"),Ks(4,"Delete"),ls(),ls()}}function DP(t,e){if(1&t){var n=ps();us(0,"button",73),gs("click",(function(){xn(n);var t=e.$implicit;return Cs(3).emitCustom(t)})),ls()}if(2&t){var i=e.$implicit;os("disabled",Cs(3).isCustomDisabled(i))("innerHTML",i.html,Sr)}}function AP(t,e){if(1&t&&(hs(0),cs(1,"mat-divider"),ns(2,DP,1,2,"button",69),ds()),2&t){var n=Cs(2);Yr(2),os("ngForOf",n.getCustomAccelerators())}}function IP(t,e){if(1&t&&(ns(0,wP,5,0,"button",68),ns(1,CP,5,0,"button",68),ns(2,xP,5,0,"button",68),ns(3,SP,1,2,"button",69),ns(4,EP,5,0,"button",70),ns(5,AP,3,1,"ng-container",8)),2&t){var n=Cs();os("ngIf",n.detailAction.observers.length>0),Yr(1),os("ngIf",n.editAction.observers.length>0),Yr(1),os("ngIf",!0===n.hasPermissions),Yr(1),os("ngForOf",n.getCustomMenu()),Yr(1),os("ngIf",n.deleteAction.observers.length>0),Yr(1),os("ngIf",n.hasAccelerators)}}var OP=function(){return[5,10,25,100,1e3]},TP=function(){function t(t){this.api=t,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new gR([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.contextMenuPosition={x:"0px",y:"0px"},this.filterText="",this.pageSize=10,this.newGrouped=!1,this.loaded=new bl,this.rowSelected=new bl,this.newAction=new bl,this.editAction=new bl,this.deleteAction=new bl,this.customButtonAction=new bl,this.detailAction=new bl}return t.prototype.ngOnInit=function(){var t=this;this.hasCustomButtons=void 0!==this.customButtons&&0!==this.customButtons.length&&0!==this.customButtonAction.observers.length&&this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||0!==this.detailAction.observers.length||0!==this.editAction.observers.length||this.hasPermissions||0!==this.deleteAction.observers.length,this.hasActions=this.hasButtons||void 0!==this.customButtons&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=function(t,e){if(!(e in t))return"";var n=t[e];return"number"==typeof n?n:"string"==typeof n?n.toLocaleLowerCase():(null===n&&(n=7226578800),n.changingThisBreaksApplicationSecurity&&(n=n.changingThisBreaksApplicationSecurity),(""+n).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(e,n){try{t.columns.forEach((function(t){if((""+e[t.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(n))throw!0}))}catch(i){return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new Yy(!0===this.multiSelect,[]);var e=this.rest.permision();0==(e&UA.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),e!==UA.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe((function(e){t.rest.tableInfo().subscribe((function(n){t.initialize(n,e)}))}))},t.prototype.initialize=function(t,e){var n=this;this.oTypes=e,this.types=new Map,this.grpTypes=new Map,e.forEach((function(t){n.types.set(t.type,t),void 0!==t.group&&(n.grpTypes.has(t.group)||n.grpTypes.set(t.group,[]),n.grpTypes.get(t.group).push(t))})),this.rowStyleInfo=void 0!==t["row-style"]&&void 0!==t["row-style"].field?t["row-style"]:null,this.title=t.title,this.subtitle=t.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var i=[];t.fields.forEach((function(t){for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];i.push({name:e,title:r.title,type:void 0===r.type?vA.ALPHANUMERIC:r.type,dict:r.dict}),(void 0===r.visible||r.visible)&&n.displayedColumns.push(e)}})),this.columns=i,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()},t.prototype.overview=function(){var t=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe((function(e){t.loading=!1,void 0!==t.onItem&&e.forEach((function(e){t.onItem(e)})),t.dataSource.data=e,t.loaded.emit({param:t.firstLoad,table:t}),t.firstLoad=!1}),(function(e){t.loading=!1})))},t.prototype.getcustomButtons=function(){return this.customButtons?this.customButtons.filter((function(t){return t.type!==gA.ONLY_MENU&&t.type!==gA.ACCELERATOR})):[]},t.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter((function(t){return t.type!==gA.ACCELERATOR})):[]},t.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter((function(t){return t.type===gA.ACCELERATOR})):[]},t.prototype.getRowColumn=function(t,e){var n=t[e.name];switch(e.type){case vA.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case vA.DATE:n=sM("SHORT_DATE_FORMAT",n);break;case vA.DATETIME:n=sM("SHORT_DATETIME_FORMAT",n);break;case vA.TIME:n=sM("TIME_FORMAT",n);break;case vA.DATETIMESEC:n=sM("SHORT_DATE_FORMAT",n," H:i:s");break;case vA.ICON:try{n=this.api.gui.icon(this.types.get(t.type).icon)+n}catch(i){}return this.api.safeString(n);case vA.CALLBACK:break;case vA.DICTIONARY:try{n=e.dict[n]}catch(i){n=""}}return n},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage(this.tableId+"sort-column",t.active),this.api.putOnStorage(this.tableId+"sort-direction",t.direction)},t.prototype.rowClass=function(t){var e=[];return this.selection.isSelected(t)&&e.push("selected"),null!==this.rowStyleInfo&&e.push(this.rowStyleInfo.prefix+t[this.rowStyleInfo.field]),e},t.prototype.emitIfSelection=function(t,e){void 0===e&&(e=!1);var n=this.selection.selected.length;n>0&&(!0!==e&&1!==n||t.emit({table:this,param:n}))},t.prototype.isCustomDisabled=function(t){switch(t.type){case void 0:case gA.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===t.disabled;case gA.MULTI_SELECT:return this.selection.isEmpty()||!0===t.disabled;default:return!1}},t.prototype.emitCustom=function(t){(this.selection.selected.length||t.type===gA.ALWAYS)&&(t.type===gA.ACCELERATOR?this.api.navigation.goto(t.id,this.selection.selected[0],t.acceleratorProperties):this.customButtonAction.emit({param:t,table:this}))},t.prototype.clickRow=function(t,e){var n=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-e.x)<16&&Math.abs(this.lastClickInfo.y-e.y)<16&&n-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(t),void(this.detailAction.observers.length?this.detailAction.emit({param:t,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:n,x:e.x,y:e.y},this.doSelect(t,e)},t.prototype.doSelect=function(t,e){if(e.ctrlKey)this.lastSel=t,this.selection.toggle(t);else if(e.shiftKey){if(this.selection.isEmpty())this.selection.toggle(t);else if(this.selection.clear(),this.lastSel!==t)for(var n=!1,i=this.dataSource.sortData(this.dataSource.data,this.dataSource.sort),r=0;r0),Yr(1),os("ngIf",e.editAction.observers.length>0),Yr(1),os("ngIf",!0===e.hasPermissions),Yr(1),os("ngIf",e.hasCustomButtons),Yr(1),os("ngIf",1==e.allowExport),Yr(1),os("ngIf",e.deleteAction.observers.length>0),Yr(7),os("ngModel",e.filterText),Yr(1),os("ngIf",e.filterText),Yr(2),os("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",ll(27,OP))("showFirstLastButtons",!0),Yr(6),os("dataSource",e.dataSource),Yr(1),os("ngIf",e.hasButtons),Yr(4),os("ngForOf",e.columns),Yr(1),os("matHeaderRowDef",e.displayedColumns),Yr(1),os("matRowDefColumns",e.displayedColumns),Yr(1),os("hidden",!e.loading),Yr(5),os("ngIf",e.hasButtons&&e.selection.selected.length>0),Yr(1),Ls("left",e.contextMenuPosition.x)("top",e.contextMenuPosition.y),os("matMenuTriggerFor",n)}},directives:[ld,jx,ZI,PR,eS,uS,gE,LO,Vx,zT,HO,ZT,qT,UT,sd,tR,rR,_M,jM,LM,DM,OM,Nx,WI,XT,JT,ZO,oR,cR,rd,UM],pipes:[Fd,qM],styles:[".header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.buttons[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.buttons[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1em;margin-bottom:1em}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.4rem}.buttons[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#000;color:#fff}button.mat-menu-item[_ngcontent-%COMP%]{height:32px;line-height:32px}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#f0f8ff;cursor:pointer}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:#00f}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-menu-panel{min-height:48px} .mat-paginator-range-label{min-width:6em}"]}),t}(),RP='pause'+django.gettext("Maintenance")+"",MP='pause'+django.gettext("Exit maintenance mode")+"",PP='pause'+django.gettext("Enter maintenance mode")+"",FP=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"maintenance",html:RP,type:gA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New provider"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit provider"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete provider"))},t.prototype.onMaintenance=function(t){var e=this,n=t.table.selection.selected[0],i=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+n.name,i).subscribe((function(i){i&&e.rest.providers.maintenance(n.id).subscribe((function(){t.table.overview()}))}))},t.prototype.onRowSelect=function(t){var e=t.table;this.customButtons[0].html=e.selection.selected.length>1||0===e.selection.selected.length?RP:e.selection.selected[0].maintenance_mode?MP:PP},t.prototype.onDetail=function(t){this.api.navigation.gotoService(t.param.id)},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-services"]],decls:1,vars:6,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,e){1&t&&(us(0,"uds-table",0),gs("customButtonAction",(function(t){return e.onMaintenance(t)}))("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("rowSelected",(function(t){return e.onRowSelect(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),ls()),2&t&&os("rest",e.rest.providers)("onItem",e.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)},directives:[TP],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-maintenance_state, .mat-column-services_count, .mat-column-user_services_count{max-width:7rem;justify-content:center}"]}),t}(),LP=n("MCLT"),NP=function(){function t(t,e,n,i){this.title=t,this.data=e,this.columns=n,this.id=i,this.columnsDefinition=Array.from(n,(function(t){var e={};return e[t.field]={visible:!0,title:t.title,type:void 0===t.type?vA.ALPHANUMERIC:t.type},e}))}return t.prototype.get=function(t){return yp},t.prototype.getLogs=function(t){return yp},t.prototype.overview=function(t){return Object(LP.isFunction)(this.data)?this.data():Sf([])},t.prototype.summary=function(t){return this.overview()},t.prototype.put=function(t,e){return yp},t.prototype.create=function(t){return yp},t.prototype.save=function(t,e){return yp},t.prototype.test=function(t,e){return yp},t.prototype.delete=function(t){return yp},t.prototype.permision=function(){return UA.ALL},t.prototype.getPermissions=function(t){return yp},t.prototype.addPermission=function(t,e,n,i){return yp},t.prototype.revokePermission=function(t){return yp},t.prototype.types=function(){return Sf([])},t.prototype.gui=function(t){return yp},t.prototype.callback=function(t,e){return yp},t.prototype.tableInfo=function(){return Sf({fields:this.columnsDefinition,title:this.title})},t.prototype.detail=function(t,e){return null},t.prototype.invoke=function(t,e){return yp},t}();function VP(t,e){if(1&t){var n=ps();us(0,"button",24),gs("click",(function(){xn(n);var t=Cs();return t.filterText="",t.applyFilter()})),us(1,"i",8),Ks(2,"close"),ls(),ls()}}function BP(t,e){if(1&t&&(us(0,"mat-header-cell",28),Ks(1),ls()),2&t){var n=Cs().$implicit;Yr(1),Zs(n)}}function jP(t,e){if(1&t&&(us(0,"mat-cell"),cs(1,"div",29),ls()),2&t){var n=e.$implicit,i=Cs().$implicit,r=Cs();Yr(1),os("innerHtml",r.getRowColumn(n,i),Sr)}}function zP(t,e){1&t&&(hs(0,25),ns(1,BP,2,1,"mat-header-cell",26),ns(2,jP,2,1,"mat-cell",27),ds()),2&t&&os("matColumnDef",e.$implicit)}function HP(t,e){1&t&&cs(0,"mat-header-row")}function UP(t,e){if(1&t&&cs(0,"mat-row",30),2&t){var n=e.$implicit;os("ngClass",Cs().rowClass(n))}}var WP=function(){return[5,10,25,100,1e3]},qP=function(){function t(t){this.api=t,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new gR([]),this.selection=new Yy,this.pageSize=10}return t.prototype.ngOnInit=function(){var t=this;this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc",this.displayedColumns.forEach((function(e){t.columns.push({name:e,title:e,type:"date"===e?vA.DATETIMESEC:vA.ALPHANUMERIC})})),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()},t.prototype.overview=function(){var t=this;this.rest.getLogs(this.itemId).subscribe((function(e){t.dataSource.data=e}))},t.prototype.selectElement=function(t,e){},t.prototype.getRowColumn=function(t,e){var n=t[e];return"date"===e?n=sM("SHORT_DATE_FORMAT",n," H:i:s"):"level"===e&&(n={1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[n]||"OTHER"),n},t.prototype.rowClass=function(t){return["level-"+t.level]},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage("logs-sort-column",t.active),this.api.putOnStorage("logs-sort-direction",t.direction)},t.prototype.export=function(){hM(this)},t.prototype.keyDown=function(t){switch(t.keyCode){case 36:this.paginator.firstPage(),t.preventDefault();break;case 35:this.paginator.lastPage(),t.preventDefault();break;case 39:this.paginator.nextPage(),t.preventDefault();break;case 37:this.paginator.previousPage(),t.preventDefault()}},t.\u0275fac=function(e){return new(e||t)(rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-logs-table"]],viewQuery:function(t,e){var n;1&t&&(Rl(LO,!0),Rl(HO,!0)),2&t&&(Tl(n=Vl())&&(e.paginator=n.first),Tl(n=Vl())&&(e.sort=n.first))},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"div",2),cs(3,"img",3),Ks(4," \xa0"),us(5,"uds-translate"),Ks(6,"Logs"),ls(),ls(),ls(),us(7,"div",4),us(8,"div",5),us(9,"div",6),us(10,"a",7),gs("click",(function(){return e.export()})),us(11,"i",8),Ks(12,"import_export"),ls(),us(13,"span",9),us(14,"uds-translate"),Ks(15,"Export"),ls(),ls(),ls(),ls(),us(16,"div",10),us(17,"div",11),us(18,"uds-translate"),Ks(19,"Filter"),ls(),Ks(20,"\xa0 "),us(21,"mat-form-field"),us(22,"input",12),gs("keyup",(function(){return e.applyFilter()}))("ngModelChange",(function(t){return e.filterText=t})),ls(),ns(23,VP,3,0,"button",13),ls(),ls(),us(24,"div",14),cs(25,"mat-paginator",15),ls(),us(26,"div",16),us(27,"a",17),gs("click",(function(){return e.overview()})),us(28,"i",8),Ks(29,"autorenew"),ls(),ls(),ls(),ls(),ls(),us(30,"div",18),gs("keydown",(function(t){return e.keyDown(t)})),us(31,"mat-table",19),gs("matSortChange",(function(t){return e.sortChanged(t)})),ns(32,zP,3,1,"ng-container",20),ns(33,HP,1,0,"mat-header-row",21),ns(34,UP,1,1,"mat-row",22),ls(),ls(),cs(35,"div",23),ls(),ls()),2&t&&(Yr(3),os("src",e.api.staticURL("admin/img/icons/logs.png"),Er),Yr(19),os("ngModel",e.filterText),Yr(1),os("ngIf",e.filterText),Yr(2),os("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",ll(11,WP))("showFirstLastButtons",!0),Yr(6),os("dataSource",e.dataSource),Yr(1),os("ngForOf",e.displayedColumns),Yr(1),os("matHeaderRowDef",e.displayedColumns),Yr(1),os("matRowDefColumns",e.displayedColumns))},directives:[jx,Vx,ZI,PR,eS,uS,gE,ld,LO,zT,HO,sd,tR,rR,Nx,WI,ZT,qT,UT,XT,ZO,JT,oR,cR,rd],styles:[".header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.header[_ngcontent-%COMP%], .navigation[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.navigation[_ngcontent-%COMP%]{justify-content:flex-start}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{max-width:160px}.mat-column-level[_ngcontent-%COMP%]{max-width:96px;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:128px} .level-50000>.mat-cell, .level-60000>.mat-cell{color:#ff1e1e!important} .level-40000>.mat-cell{color:#d65014!important}"]}),t}();function GP(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Services pools"),ls())}function YP(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Logs"),ls())}var KP=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],ZP=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.customButtons=[_A.getGotoButton("pool","id")],this.services=i.services,this.service=i.service}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:i,services:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.servicePools=new NP(django.gettext("Service pools"),(function(){return t.services.invoke(t.service.id+"/servicesPools")}),KP,this.service.id+"infopsls")},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-information"]],decls:17,vars:7,consts:[["mat-dialog-title",""],["mat-tab-label",""],["pageSize","6",3,"rest","customButtons"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Information for"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),us(5,"mat-tab-group"),us(6,"mat-tab"),ns(7,GP,2,0,"ng-template",1),cs(8,"uds-table",2),ls(),us(9,"mat-tab"),ns(10,YP,2,0,"ng-template",1),us(11,"div",3),cs(12,"uds-logs-table",4),ls(),ls(),ls(),ls(),us(13,"mat-dialog-actions"),us(14,"button",5),us(15,"uds-translate"),Ks(16,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.service.name,"\n"),Yr(5),os("rest",e.servicePools)("customButtons",e.customButtons),Yr(4),os("rest",e.services)("itemId",e.service.id)("tableId","serviceInfo-d-log"+e.service.id)("pageSize",5))},directives:[Ex,jx,Dx,TD,kD,gD,TP,qP,Ax,Nx,Sx],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),t}();function $P(t,e){if(1&t&&(us(0,"div",3),cs(1,"div",4),cs(2,"div",5),ls()),2&t){var n=e.$implicit;Yr(1),os("innerHTML",n.gui.label,Sr),Yr(1),os("innerHTML",n.value,Sr)}}var XP=function(){function t(t){this.api=t,this.displayables=null}return t.prototype.ngOnInit=function(){this.processFields()},t.prototype.processFields=function(){var t=this;if(!this.gui||!this.value)return[];var e=this.gui.filter((function(t){return t.gui.type!==Yx.HIDDEN}));e.forEach((function(e){var n=t.value[e.name];switch(e.gui.type){case Yx.CHECKBOX:e.value=n?django.gettext("Yes"):django.gettext("No");break;case Yx.PASSWORD:e.value=django.gettext("(hidden)");break;case Yx.CHOICE:var i=Kx.locateChoice(n,e);e.value=i.text;break;case Yx.MULTI_CHOICE:e.value=django.gettext("Selected items :")+n.length;break;case Yx.IMAGECHOICE:i=Kx.locateChoice(n,e),e.value=t.api.safeString(t.api.gui.icon(i.img)+" "+i.text);break;default:e.value=n}""!==e.value&&null!=e.value||(e.value="(empty)")})),this.displayables=e},t.\u0275fac=function(e){return new(e||t)(rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),ns(2,$P,3,2,"div",2),ls(),cs(3,"div"),ls()),2&t&&(Yr(2),os("ngForOf",e.displayables))},directives:[sd],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:700;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),t}();function QP(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Summary"),ls())}function JP(t,e){if(1&t&&cs(0,"uds-information",15),2&t){var n=Cs(2);os("value",n.provider)("gui",n.gui)}}function tF(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Services"),ls())}function eF(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Usage"),ls())}function nF(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Logs"),ls())}function iF(t,e){if(1&t){var n=ps();us(0,"div",6),us(1,"div",7),us(2,"mat-tab-group",8),gs("selectedIndexChange",(function(t){return xn(n),Cs().selectedTab=t})),us(3,"mat-tab"),ns(4,QP,2,0,"ng-template",9),us(5,"div",10),ns(6,JP,1,2,"uds-information",11),ls(),ls(),us(7,"mat-tab"),ns(8,tF,2,0,"ng-template",9),us(9,"div",10),us(10,"uds-table",12),gs("newAction",(function(t){return xn(n),Cs().onNewService(t)}))("editAction",(function(t){return xn(n),Cs().onEditService(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteService(t)}))("customButtonAction",(function(t){return xn(n),Cs().onInformation(t)}))("loaded",(function(t){return xn(n),Cs().onLoad(t)})),ls(),ls(),ls(),us(11,"mat-tab"),ns(12,eF,2,0,"ng-template",9),us(13,"div",10),us(14,"uds-table",13),gs("deleteAction",(function(t){return xn(n),Cs().onDeleteUsage(t)})),ls(),ls(),ls(),us(15,"mat-tab"),ns(16,nF,2,0,"ng-template",9),us(17,"div",10),cs(18,"uds-logs-table",14),ls(),ls(),ls(),ls(),ls()}if(2&t){var i=Cs();Yr(2),os("selectedIndex",i.selectedTab)("@.disabled",!0),Yr(4),os("ngIf",i.provider&&i.gui),Yr(4),os("rest",i.services)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("tableId","providers-d-services"+i.provider.id),Yr(4),os("rest",i.usage)("multiSelect",!0)("allowExport",!0)("tableId","providers-d-usage"+i.provider.id),Yr(4),os("rest",i.services.parentModel)("itemId",i.provider.id)("tableId","providers-d-log"+i.provider.id)}}var rF=function(t){return["/providers",t]},aF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:gA.ONLY_MENU}],this.provider=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).subscribe((function(e){t.provider=e,t.services.parentModel.gui(e.type).subscribe((function(e){t.gui=e}))}))},t.prototype.onInformation=function(t){ZP.launch(this.api,this.services,t.table.selection.selected[0])},t.prototype.onNewService=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New service"),!1)},t.prototype.onEditService=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit service"),!1)},t.prototype.onDeleteService=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service"))},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user service"))},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("service");if(void 0!==e){this.selectedTab=1;var n=t.table;n.dataSource.data.forEach((function(t){t.id===e&&n.selection.select(t)}))}}},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-services-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"a",2),us(3,"i",3),Ks(4,"arrow_back"),ls(),ls(),Ks(5," \xa0"),cs(6,"img",4),Ks(7),ls(),ns(8,iF,19,15,"div",5),ls()),2&t&&(Yr(2),os("routerLink",cl(4,rF,e.services.parentId)),Yr(4),os("src",e.api.staticURL("admin/img/icons/services.png"),Er),Yr(1),$s(" \xa0",null==e.provider?null:e.provider.name," "),Yr(1),os("ngIf",null!==e.provider))},directives:[xg,ld,TD,kD,gD,TP,qP,jx,XP],styles:[""]}),t}(),oF=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("authenticator")},t.prototype.onDetail=function(t){this.api.navigation.gotoAuthenticatorDetail(t.param.id)},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Authenticator"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Authenticator"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Authenticator"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible)},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-authenticators"]],decls:2,vars:5,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(us(0,"div"),us(1,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),ls(),ls()),2&t&&(Yr(1),os("rest",e.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement))},directives:[TP],styles:[""]}),t}(),sF=["panel"];function uF(t,e){if(1&t&&(us(0,"div",0,1),Es(2),ls()),2&t){var n=Cs();os("id",n.id)("ngClass",n._classList)}}var lF=["*"],cF=0,hF=function t(e,n){y(this,t),this.source=e,this.option=n},dF=yC((function t(){y(this,t)})),fF=new re("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),pF=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this))._changeDetectorRef=t,a._elementRef=i,a._activeOptionChanges=E.EMPTY,a.showPanel=!1,a._isOpen=!1,a.displayWith=null,a.optionSelected=new bl,a.opened=new bl,a.closed=new bl,a.optionActivated=new bl,a._classList={},a.id="mat-autocomplete-".concat(cF++),a._autoActiveFirstOption=!!r.autoActiveFirstOption,a}return b(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new cb(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe((function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})})),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new hF(this,t);this.optionSelected.emit(e)}},{key:"_setVisibilityClasses",value:function(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}},{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=Kg(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?t.split(" ").reduce((function(t,e){return t[e.trim()]=!0,t}),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}}]),n}(dF);return t.\u0275fac=function(e){return new(e||t)(rs(So),rs(_u),rs(fF))},t.\u0275cmp=Me({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;1&t&&(Fl(n,ox,!0),Fl(n,JC,!0)),2&t&&(Tl(i=Vl())&&(e.options=i),Tl(i=Vl())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(Rl(Uu,!0),Ml(sF,!0)),2&t&&(Tl(n=Vl())&&(e.template=n.first),Tl(n=Vl())&&(e.panel=n.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[pu([{provide:rx,useExisting:t}]),eu],ngContentSelectors:lF,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(Ss(),ns(0,uF,3,2,"ng-template"))},directives:[rd],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t}(),mF=function(){var t=function t(e){y(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),t}(),vF=new re("mat-autocomplete-scroll-strategy"),gF={provide:vF,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},yF={provide:$x,useExisting:Ht((function(){return _F})),multi:!0},_F=function(){var t=function(){function t(e,n,i,r,a,o,s,u,c,h){var d=this;y(this,t),this._element=e,this._overlay=n,this._viewContainerRef=i,this._zone=r,this._changeDetectorRef=a,this._dir=s,this._formField=u,this._document=c,this._viewportRuler=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=E.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new U,this._windowBlurHandler=function(){d._canOpenOnNextFocus=d._document.activeElement!==d._element.nativeElement||d.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=bp((function(){return d.autocomplete&&d.autocomplete.options?ht.apply(void 0,l(d.autocomplete.options.map((function(t){return t.onSelectionChange})))):d._zone.onStable.asObservable().pipe(Lp(1),Gp((function(){return d.optionSelections})))})),this._scrollStrategy=o}return b(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular((function(){return e.addEventListener("blur",t._windowBlurHandler)}))}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"_getOutsideClickStream",value:function(){var t=this;return ht(ty(this._document,"click"),ty(this._document,"touchend")).pipe(Df((function(e){var n=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,i=t._formField?t._formField._elementRef.nativeElement:null,r=t.connectedTo?t.connectedTo.elementRef.nativeElement:null;return t._overlayAttached&&n!==t._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)})))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then((function(){return e._setTriggerValue(t)}))}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(27===e&&t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption()}}},{key:"_handleInput",value:function(t){var e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_scrollToOption",value:function(){var t=this.autocomplete._keyManager.activeItemIndex||0,e=sx(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{var n=ux(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(n)}}},{key:"_subscribeToClosingActions",value:function(){var t=this;return ht(this._zone.onStable.asObservable().pipe(Lp(1)),this.autocomplete.options.changes.pipe(zp((function(){return t._positionStrategy.reapplyLastPosition()})),_R(0))).pipe(Gp((function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions})),Lp(1)).subscribe((function(e){return t._setValueAndClose(e)}))}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach((function(e){e!=t&&e.selected&&e.deselect()}))}},{key:"_attachOverlay",value:function(){var t=this;if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!jy(this._element.nativeElement));var e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new i_(this.autocomplete.template,this._viewContainerRef),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe((function(e){(27===e.keyCode||38===e.keyCode&&e.altKey)&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())})),this._viewportSubscription=this._viewportRuler.change().subscribe((function(){t.panelOpen&&e&&e.updateSize({width:t._getPanelWidth()})}))),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){return new x_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"}];e="above"===this.position?i:"below"===this.position?n:[].concat(n,i),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=Kg(t)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var t=this;return ht(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Df((function(){return t._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Df((function(){return t._overlayAttached}))):Sf()).pipe(G((function(t){return t instanceof ix?t:null})))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(U_),rs(qu),rs(cc),rs(So),rs(vF),rs(Hy,8),rs(KI,9),rs(Wc,8),rs(Xy))},t.\u0275dir=Be({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&gs("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&ts("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[pu([yF]),Qe]}),t}(),bF=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[gF],imports:[[lx,Z_,mC,Wd],Qy,lx,mC]}),t}();function kF(t,e){if(1&t&&(us(0,"div"),us(1,"uds-translate"),Ks(2,"Edit user"),ls(),Ks(3),ls()),2&t){var n=Cs();Yr(3),$s(" ",n.user.name," ")}}function wF(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New user"),ls())}function CF(t,e){if(1&t){var n=ps();us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"input",18),gs("ngModelChange",(function(t){return xn(n),Cs().user.name=t})),ls(),ls()}if(2&t){var i=Cs();Yr(2),$s(" ",i.authenticator.type_info.userNameLabel," "),Yr(1),os("ngModel",i.user.name)("disabled",i.user.id)}}function xF(t,e){if(1&t&&(us(0,"mat-option",21),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),Xs(" ",n.id," (",n.name,") ")}}function SF(t,e){if(1&t){var n=ps();us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"input",19),gs("ngModelChange",(function(t){return xn(n),Cs().user.name=t}))("input",(function(t){return xn(n),Cs().filterUser(t)})),ls(),us(4,"mat-autocomplete",null,20),ns(6,xF,2,3,"mat-option",15),ls(),ls()}if(2&t){var i=is(5),r=Cs();Yr(2),$s(" ",r.authenticator.type_info.userNameLabel," "),Yr(1),os("ngModel",r.user.name)("matAutocomplete",i),Yr(3),os("ngForOf",r.users)}}function EF(t,e){if(1&t){var n=ps();us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"input",22),gs("ngModelChange",(function(t){return xn(n),Cs().user.password=t})),ls(),ls()}if(2&t){var i=Cs();Yr(2),$s(" ",i.authenticator.type_info.passwordLabel," "),Yr(1),os("ngModel",i.user.password)}}function DF(t,e){if(1&t&&(us(0,"mat-option",21),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}var AF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.users=[],this.authenticator=i.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==i.user&&(this.user.id=i.user.id,this.user.name=i.user.name)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe((function(e){t.groups=e})),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe((function(e){t.user=e,t.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"}),(function(e){t.dialogRef.close()}))},t.prototype.roleChanged=function(t){this.user.is_admin="admin"===t,this.user.staff_member="admin"===t||"staff"===t},t.prototype.filterUser=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"user",t.target.value,100).subscribe((function(t){e.users.length=0,t.forEach((function(t){e.users.push(t)}))}))},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe((function(e){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-new-user"]],decls:60,vars:11,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(us(0,"h4",0),ns(1,kF,4,1,"div",1),ns(2,wF,2,0,"ng-template",null,2,Hl),ls(),us(4,"mat-dialog-content"),us(5,"div",3),ns(6,CF,4,3,"mat-form-field",4),ns(7,SF,7,4,"mat-form-field",4),us(8,"mat-form-field"),us(9,"mat-label"),us(10,"uds-translate"),Ks(11,"Real name"),ls(),ls(),us(12,"input",5),gs("ngModelChange",(function(t){return e.user.real_name=t})),ls(),ls(),us(13,"mat-form-field"),us(14,"mat-label"),us(15,"uds-translate"),Ks(16,"Comments"),ls(),ls(),us(17,"input",5),gs("ngModelChange",(function(t){return e.user.comments=t})),ls(),ls(),us(18,"mat-form-field"),us(19,"mat-label"),us(20,"uds-translate"),Ks(21,"State"),ls(),ls(),us(22,"mat-select",6),gs("ngModelChange",(function(t){return e.user.state=t})),us(23,"mat-option",7),us(24,"uds-translate"),Ks(25,"Enabled"),ls(),ls(),us(26,"mat-option",8),us(27,"uds-translate"),Ks(28,"Disabled"),ls(),ls(),us(29,"mat-option",9),us(30,"uds-translate"),Ks(31,"Blocked"),ls(),ls(),ls(),ls(),us(32,"mat-form-field"),us(33,"mat-label"),us(34,"uds-translate"),Ks(35,"Role"),ls(),ls(),us(36,"mat-select",10),gs("ngModelChange",(function(t){return e.user.role=t}))("valueChange",(function(t){return e.roleChanged(t)})),us(37,"mat-option",11),us(38,"uds-translate"),Ks(39,"Admin"),ls(),ls(),us(40,"mat-option",12),us(41,"uds-translate"),Ks(42,"Staff member"),ls(),ls(),us(43,"mat-option",13),us(44,"uds-translate"),Ks(45,"User"),ls(),ls(),ls(),ls(),ns(46,EF,4,2,"mat-form-field",4),us(47,"mat-form-field"),us(48,"mat-label"),us(49,"uds-translate"),Ks(50,"Groups"),ls(),ls(),us(51,"mat-select",14),gs("ngModelChange",(function(t){return e.user.groups=t})),ns(52,DF,2,2,"mat-option",15),ls(),ls(),ls(),ls(),us(53,"mat-dialog-actions"),us(54,"button",16),us(55,"uds-translate"),Ks(56,"Cancel"),ls(),ls(),us(57,"button",17),gs("click",(function(){return e.save()})),us(58,"uds-translate"),Ks(59,"Ok"),ls(),ls(),ls()),2&t){var n=is(3);Yr(1),os("ngIf",e.user.id)("ngIfElse",n),Yr(5),os("ngIf",!1===e.authenticator.type_info.canSearchUsers||e.user.id),Yr(1),os("ngIf",!0===e.authenticator.type_info.canSearchUsers&&!e.user.id),Yr(5),os("ngModel",e.user.real_name),Yr(5),os("ngModel",e.user.comments),Yr(5),os("ngModel",e.user.state),Yr(14),os("ngModel",e.user.role),Yr(10),os("ngIf",e.authenticator.type_info.needsPassword),Yr(5),os("ngModel",e.user.groups),Yr(1),os("ngForOf",e.groups)}},directives:[Ex,ld,Dx,ZI,BI,jx,PR,eS,uS,gE,mO,ox,sd,Ax,Nx,Sx,_F,pF],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),IF=["thumbContainer"],OF=["toggleBar"],TF=["input"],RF=function(){return{enterDuration:150}},MF=["*"],PF=new re("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),FF=0,LF={provide:$x,useExisting:Ht((function(){return BF})),multi:!0},NF=function t(e,n){y(this,t),this.source=e,this.checked=n},VF=_C(gC(yC(vC((function t(e){y(this,t),this._elementRef=e}))),"accent")),BF=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s){var u;return y(this,n),(u=e.call(this,t))._focusMonitor=i,u._changeDetectorRef=r,u.defaults=o,u._animationMode=s,u._onChange=function(t){},u._onTouched=function(){},u._uniqueId="mat-slide-toggle-".concat(++FF),u._required=!1,u._checked=!1,u.name=null,u.id=u._uniqueId,u.labelPosition="after",u.ariaLabel=null,u.ariaLabelledby=null,u.change=new bl,u.toggleChange=new bl,u.tabIndex=parseInt(a)||0,u}return b(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then((function(){return t._onTouched()}))}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.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(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new NF(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(t){this._required=Kg(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=Kg(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),n}(VF);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Sb),rs(So),as("tabindex"),rs(PF),rs(iC,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(Ml(IF,!0),Ml(OF,!0),Ml(TF,!0)),2&t&&(Tl(n=Vl())&&(e._thumbEl=n.first),Tl(n=Vl())&&(e._thumbBarEl=n.first),Tl(n=Vl())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(Qs("id",e.id),ts("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),Ns("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[pu([LF]),eu],ngContentSelectors:MF,decls:16,vars:18,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(t,e){if(1&t&&(Ss(),us(0,"label",0,1),us(2,"div",2,3),us(4,"input",4,5),gs("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),ls(),us(6,"div",6,7),cs(8,"div",8),us(9,"div",9),cs(10,"div",10),ls(),ls(),ls(),us(11,"span",11,12),gs("cdkObserveContent",(function(){return e._onLabelTextChange()})),us(13,"span",13),Ks(14,"\xa0"),ls(),Es(15),ls(),ls()),2&t){var n=is(1),i=is(12);ts("for",e.inputId),Yr(2),Ns("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),Yr(2),os("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),ts("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Yr(5),os("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",ll(17,RF))}},directives:[qC,nb],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{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}(),jF={provide:dS,useExisting:Ht((function(){return zF})),multi:!0},zF=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(PE);return t.\u0275fac=function(e){return HF(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[pu([jF]),eu]}),t}(),HF=Vi(zF),UF=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),WF=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[UF,GC,mC,ib],UF,mC]}),t}();function qF(t,e){if(1&t&&(us(0,"div"),us(1,"uds-translate"),Ks(2,"Edit group"),ls(),Ks(3),ls()),2&t){var n=Cs();Yr(3),$s(" ",n.group.name," ")}}function GF(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New group"),ls())}function YF(t,e){if(1&t){var n=ps();us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"input",13),gs("ngModelChange",(function(t){return xn(n),Cs(2).group.name=t})),ls(),ls()}if(2&t){var i=Cs(2);Yr(2),$s(" ",i.authenticator.type_info.groupNameLabel," "),Yr(1),os("ngModel",i.group.name)("disabled",i.group.id)}}function KF(t,e){if(1&t&&(us(0,"mat-option",17),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),Xs(" ",n.id," (",n.name,") ")}}function ZF(t,e){if(1&t){var n=ps();us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"input",14),gs("ngModelChange",(function(t){return xn(n),Cs(2).group.name=t}))("input",(function(t){return xn(n),Cs(2).filterGroup(t)})),ls(),us(4,"mat-autocomplete",null,15),ns(6,KF,2,3,"mat-option",16),ls(),ls()}if(2&t){var i=is(5),r=Cs(2);Yr(2),$s(" ",r.authenticator.type_info.groupNameLabel," "),Yr(1),os("ngModel",r.group.name)("matAutocomplete",i),Yr(3),os("ngForOf",r.fltrGroup)}}function $F(t,e){if(1&t&&(hs(0),ns(1,YF,4,3,"mat-form-field",12),ns(2,ZF,7,4,"mat-form-field",12),ds()),2&t){var n=Cs();Yr(1),os("ngIf",!1===n.authenticator.type_info.canSearchGroups||n.group.id),Yr(1),os("ngIf",!0===n.authenticator.type_info.canSearchGroups&&!n.group.id)}}function XF(t,e){if(1&t){var n=ps();us(0,"mat-form-field"),us(1,"mat-label"),us(2,"uds-translate"),Ks(3,"Meta group name"),ls(),ls(),us(4,"input",13),gs("ngModelChange",(function(t){return xn(n),Cs().group.name=t})),ls(),ls()}if(2&t){var i=Cs();Yr(4),os("ngModel",i.group.name)("disabled",i.group.id)}}function QF(t,e){if(1&t&&(us(0,"mat-option",17),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function JF(t,e){if(1&t){var n=ps();hs(0),us(1,"mat-form-field"),us(2,"mat-label"),us(3,"uds-translate"),Ks(4,"Service Pools"),ls(),ls(),us(5,"mat-select",18),gs("ngModelChange",(function(t){return xn(n),Cs().group.pools=t})),ns(6,QF,2,2,"mat-option",16),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(5),os("ngModel",i.group.pools),Yr(1),os("ngForOf",i.servicePools)}}function tL(t,e){if(1&t&&(us(0,"mat-option",17),Ks(1),ls()),2&t){var n=Cs().$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function eL(t,e){if(1&t&&(hs(0),ns(1,tL,2,2,"mat-option",22),ds()),2&t){var n=e.$implicit;Yr(1),os("ngIf","group"===n.type)}}function nL(t,e){if(1&t){var n=ps();us(0,"div",19),us(1,"span",20),us(2,"uds-translate"),Ks(3,"Match mode"),ls(),ls(),us(4,"mat-slide-toggle",6),gs("ngModelChange",(function(t){return xn(n),Cs().group.meta_if_any=t})),Ks(5),ls(),ls(),us(6,"mat-form-field"),us(7,"mat-label"),us(8,"uds-translate"),Ks(9,"Selected Groups"),ls(),ls(),us(10,"mat-select",18),gs("ngModelChange",(function(t){return xn(n),Cs().group.groups=t})),ns(11,eL,2,1,"ng-container",21),ls(),ls()}if(2&t){var i=Cs();Yr(4),os("ngModel",i.group.meta_if_any),Yr(1),$s(" ",i.getMatchValue()," "),Yr(5),os("ngModel",i.group.groups),Yr(1),os("ngForOf",i.groups)}}var iL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.fltrGroup=[],this.authenticator=i.authenticator,this.group={id:void 0,type:i.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==i.group&&(this.group.id=i.group.id,this.group.type=i.group.type,this.group.name=i.group.name)}return t.launch=function(e,n,i,r){var a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:i,group:r},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&e.get(this.group.id).subscribe((function(e){t.group=e}),(function(e){t.dialogRef.close()})),"meta"===this.group.type?e.summary().subscribe((function(e){return t.groups=e})):this.rest.servicesPools.summary().subscribe((function(e){return t.servicePools=e}))},t.prototype.filterGroup=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"group",t.target.value,100).subscribe((function(t){e.fltrGroup.length=0,t.forEach((function(t){e.fltrGroup.push(t)}))}))},t.prototype.getMatchValue=function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe((function(e){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-new-group"]],decls:35,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-match"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(t,e){if(1&t&&(us(0,"h4",0),ns(1,qF,4,1,"div",1),ns(2,GF,2,0,"ng-template",null,2,Hl),ls(),us(4,"mat-dialog-content"),us(5,"div",3),ns(6,$F,3,2,"ng-container",1),ns(7,XF,5,2,"ng-template",null,4,Hl),us(9,"mat-form-field"),us(10,"mat-label"),us(11,"uds-translate"),Ks(12,"Comments"),ls(),ls(),us(13,"input",5),gs("ngModelChange",(function(t){return e.group.comments=t})),ls(),ls(),us(14,"mat-form-field"),us(15,"mat-label"),us(16,"uds-translate"),Ks(17,"State"),ls(),ls(),us(18,"mat-select",6),gs("ngModelChange",(function(t){return e.group.state=t})),us(19,"mat-option",7),us(20,"uds-translate"),Ks(21,"Enabled"),ls(),ls(),us(22,"mat-option",8),us(23,"uds-translate"),Ks(24,"Disabled"),ls(),ls(),ls(),ls(),ns(25,JF,7,2,"ng-container",1),ns(26,nL,12,4,"ng-template",null,9,Hl),ls(),ls(),us(28,"mat-dialog-actions"),us(29,"button",10),us(30,"uds-translate"),Ks(31,"Cancel"),ls(),ls(),us(32,"button",11),gs("click",(function(){return e.save()})),us(33,"uds-translate"),Ks(34,"Ok"),ls(),ls(),ls()),2&t){var n=is(3),i=is(8),r=is(27);Yr(1),os("ngIf",e.group.id)("ngIfElse",n),Yr(5),os("ngIf","group"===e.group.type)("ngIfElse",i),Yr(7),os("ngModel",e.group.comments),Yr(5),os("ngModel",e.group.state),Yr(7),os("ngIf","group"===e.group.type)("ngIfElse",r)}},directives:[Ex,ld,Dx,ZI,BI,jx,PR,eS,uS,gE,mO,ox,Ax,Nx,Sx,_F,pF,sd,BF],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function rL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Groups"),ls())}function aL(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,rL,2,0,"ng-template",3),cs(2,"uds-table",4),ls()),2&t){var n=Cs();Yr(2),os("rest",n.group)}}function oL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Services Pools"),ls())}function sL(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,oL,2,0,"ng-template",3),cs(2,"uds-table",4),ls()),2&t){var n=Cs();Yr(2),os("rest",n.servicesPools)}}function uL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Assigned Services"),ls())}function lL(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,uL,2,0,"ng-template",3),cs(2,"uds-table",4),ls()),2&t){var n=Cs();Yr(2),os("rest",n.userServices)}}var cL=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],hL=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],dL=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],fL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.users=i.users,this.user=i.user}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:i},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe((function(e){t.group=new NP(django.gettext("Groups"),(function(){return t.rest.authenticators.detail(t.users.parentId,"groups").overview().pipe(G((function(t){return t.filter((function(t){return e.groups.includes(t.id)}))})))}),cL,t.user.id+"infogrp"),t.servicesPools=new NP(django.gettext("Services Pools"),(function(){return t.users.invoke(t.user.id+"/servicesPools")}),hL,t.user.id+"infopool"),t.userServices=new NP(django.gettext("Assigned services"),(function(){return t.users.invoke(t.user.id+"/userServices").pipe(G((function(e){return e.map((function(e){return e.in_use=t.api.yesno(e.in_use),e}))})))}),dL,t.user.id+"userservpool")}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],["pageSize","6",3,"rest"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Information for"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),us(5,"mat-tab-group"),ns(6,aL,3,1,"mat-tab",1),ns(7,sL,3,1,"mat-tab",1),ns(8,lL,3,1,"mat-tab",1),ls(),ls(),us(9,"mat-dialog-actions"),us(10,"button",2),us(11,"uds-translate"),Ks(12,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.user.name,"\n"),Yr(3),os("ngIf",e.group),Yr(1),os("ngIf",e.servicesPools),Yr(1),os("ngIf",e.userServices))},directives:[Ex,jx,Dx,TD,ld,Ax,Nx,Sx,kD,gD,TP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function pL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Services Pools"),ls())}function mL(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,pL,2,0,"ng-template",3),cs(2,"uds-table",4),ls()),2&t){var n=Cs();Yr(2),os("rest",n.servicesPools)}}function vL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Users"),ls())}function gL(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,vL,2,0,"ng-template",3),cs(2,"uds-table",4),ls()),2&t){var n=Cs();Yr(2),os("rest",n.users)}}function yL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Groups"),ls())}function _L(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,yL,2,0,"ng-template",3),cs(2,"uds-table",4),ls()),2&t){var n=Cs();Yr(2),os("rest",n.groups)}}var bL=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],kL=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:vA.DATETIME}],wL=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],CL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:i,groups:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new NP(django.gettext("Service pools"),(function(){return e.invoke(t.data.group.id+"/servicesPools")}),bL,this.data.group.id+"infopls"),this.users=new NP(django.gettext("Users"),(function(){return e.invoke(t.data.group.id+"/users").pipe(G((function(t){return t.map((function(t){return t.state="A"===t.state?django.gettext("Enabled"):"I"===t.state?django.gettext("Disabled"):django.gettext("Blocked"),t}))})))}),kL,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new NP(django.gettext("Groups"),(function(){return e.overview().pipe(G((function(e){return e.filter((function(e){return t.data.group.groups.includes(e.id)}))})))}),wL,this.data.group.id+"infogrps"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],["pageSize","6",3,"rest"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Information for"),ls(),ls(),us(3,"mat-dialog-content"),us(4,"mat-tab-group"),ns(5,mL,3,1,"mat-tab",1),ns(6,gL,3,1,"mat-tab",1),ns(7,_L,3,1,"mat-tab",1),ls(),ls(),us(8,"mat-dialog-actions"),us(9,"button",2),us(10,"uds-translate"),Ks(11,"Ok"),ls(),ls(),ls()),2&t&&(Yr(5),os("ngIf",e.servicesPools),Yr(1),os("ngIf",e.users),Yr(1),os("ngIf",e.groups))},directives:[Ex,jx,Dx,TD,ld,Ax,Nx,Sx,kD,gD,TP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function xL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Summary"),ls())}function SL(t,e){if(1&t&&cs(0,"uds-information",16),2&t){var n=Cs(2);os("value",n.authenticator)("gui",n.gui)}}function EL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Users"),ls())}function DL(t,e){if(1&t){var n=ps();us(0,"uds-table",17),gs("loaded",(function(t){return xn(n),Cs(2).onLoad(t)}))("newAction",(function(t){return xn(n),Cs(2).onNewUser(t)}))("editAction",(function(t){return xn(n),Cs(2).onEditUser(t)}))("deleteAction",(function(t){return xn(n),Cs(2).onDeleteUser(t)}))("customButtonAction",(function(t){return xn(n),Cs(2).onUserInformation(t)})),ls()}if(2&t){var i=Cs(2);os("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)}}function AL(t,e){if(1&t){var n=ps();us(0,"uds-table",18),gs("loaded",(function(t){return xn(n),Cs(2).onLoad(t)}))("editAction",(function(t){return xn(n),Cs(2).onEditUser(t)}))("deleteAction",(function(t){return xn(n),Cs(2).onDeleteUser(t)}))("customButtonAction",(function(t){return xn(n),Cs(2).onUserInformation(t)})),ls()}if(2&t){var i=Cs(2);os("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)}}function IL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Groups"),ls())}function OL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Logs"),ls())}function TL(t,e){if(1&t){var n=ps();us(0,"div",6),us(1,"div",7),us(2,"mat-tab-group",8),gs("selectedIndexChange",(function(t){return xn(n),Cs().selectedTab=t})),us(3,"mat-tab"),ns(4,xL,2,0,"ng-template",9),us(5,"div",10),ns(6,SL,1,2,"uds-information",11),ls(),ls(),us(7,"mat-tab"),ns(8,EL,2,0,"ng-template",9),us(9,"div",10),ns(10,DL,1,5,"uds-table",12),ns(11,AL,1,5,"uds-table",13),ls(),ls(),us(12,"mat-tab"),ns(13,IL,2,0,"ng-template",9),us(14,"div",10),us(15,"uds-table",14),gs("loaded",(function(t){return xn(n),Cs().onLoad(t)}))("newAction",(function(t){return xn(n),Cs().onNewGroup(t)}))("editAction",(function(t){return xn(n),Cs().onEditGroup(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteGroup(t)}))("customButtonAction",(function(t){return xn(n),Cs().onGroupInformation(t)})),ls(),ls(),ls(),us(16,"mat-tab"),ns(17,OL,2,0,"ng-template",9),us(18,"div",10),cs(19,"uds-logs-table",15),ls(),ls(),ls(),ls(),ls()}if(2&t){var i=Cs();Yr(2),os("selectedIndex",i.selectedTab)("@.disabled",!0),Yr(4),os("ngIf",i.authenticator&&i.gui),Yr(4),os("ngIf",i.authenticator.type_info.canCreateUsers),Yr(1),os("ngIf",!i.authenticator.type_info.canCreateUsers),Yr(4),os("rest",i.groups)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("tableId","authenticators-d-groups"+i.authenticator.id),Yr(4),os("rest",i.rest.authenticators)("itemId",i.authenticator.id)("tableId","authenticators-d-log"+i.authenticator.id)}}var RL=function(t){return["/authenticators",t]},ML=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:gA.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).subscribe((function(e){t.authenticator=e,t.rest.authenticators.gui(e.type).subscribe((function(e){t.gui=e}))}))},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("user"),n=this.route.snapshot.paramMap.get("group");t.table.selectElement("id",e||n)}},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onNewUser=function(t){AF.launch(this.api,this.authenticator).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditUser=function(t){AF.launch(this.api,this.authenticator,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteUser=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user"))},t.prototype.onNewGroup=function(t){iL.launch(this.api,this.authenticator,t.param.type).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditGroup=function(t){iL.launch(this.api,this.authenticator,t.param.type,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete group"))},t.prototype.onUserInformation=function(t){fL.launch(this.api,this.users,t.table.selection.selected[0])},t.prototype.onGroupInformation=function(t){CL.launch(this.api,this.groups,t.table.selection.selected[0])},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"a",2),us(3,"i",3),Ks(4,"arrow_back"),ls(),ls(),Ks(5," \xa0"),cs(6,"img",4),Ks(7),ls(),ns(8,TL,20,13,"div",5),ls()),2&t&&(Yr(2),os("routerLink",cl(4,RL,e.authenticator?e.authenticator.id:"")),Yr(4),os("src",e.api.staticURL("admin/img/icons/services.png"),Er),Yr(1),$s(" \xa0",null==e.authenticator?null:e.authenticator.name," "),Yr(1),os("ngIf",e.authenticator))},directives:[xg,ld,TD,kD,gD,TP,qP,jx,XP],styles:[""]}),t}(),PL=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("osmanager")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New OS Manager"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit OS Manager"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete OS Manager"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-osmanagers"]],decls:2,vars:4,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"div"),us(1,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls(),ls()),2&t&&(Yr(1),os("rest",e.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0))},directives:[TP],styles:[""]}),t}(),FL=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("transport")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Transport"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Transport"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Transport"))},t.prototype.processElement=function(t){try{t.allowed_oss=t.allowed_oss.map((function(t){return t.id})).join(", ")}catch(e){t.allowed_oss=""}},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-transports"]],decls:2,vars:6,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"div"),us(1,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls(),ls()),2&t&&(Yr(1),os("rest",e.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",e.processElement))},directives:[TP],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),t}(),LL=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("network")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Network"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Network"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Network"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("network"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-networks"]],decls:2,vars:4,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"div"),us(1,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls(),ls()),2&t&&(Yr(1),os("rest",e.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0))},directives:[TP],styles:[""]}),t}(),NL=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("proxy")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Proxy"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Proxy"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Proxy"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("proxy"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-proxies"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"div"),us(1,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls(),ls()),2&t&&(Yr(1),os("rest",e.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0))},directives:[TP],styles:[""]}),t}(),VL=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[_A.getGotoButton("provider","provider_id"),_A.getGotoButton("service","provider_id","service_id"),_A.getGotoButton("osmanager","osmanager_id"),_A.getGotoButton("poolgroup","pool_group_id")],this.editing=!1}return t.prototype.ngOnInit=function(){},t.prototype.onChange=function(t){var e=this,n=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===t.on||"service_id"===t.on.field.name){if(""===t.all.service_id.value)return t.all.osmanager_id.gui.values.length=0,void n.forEach((function(e){return t.all[e].gui.rdonly=!0}));this.rest.providers.service(t.all.service_id.value).subscribe((function(i){t.all.allow_users_reset.gui.rdonly=!i.info.can_reset,t.all.osmanager_id.gui.values.length=0,e.editing||(t.all.osmanager_id.gui.rdonly=!i.info.needs_manager),!0===i.info.needs_manager?e.rest.osManagers.overview().subscribe((function(e){e.forEach((function(e){e.servicesTypes.forEach((function(n){i.info.servicesTypeProvided.includes(n)&&t.all.osmanager_id.gui.values.push({id:e.id,text:e.name})}))})),t.all.osmanager_id.value=t.all.osmanager_id.gui.values.length>0?t.all.osmanager_id.value||t.all.osmanager_id.gui.values[0].id:""})):(t.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),t.all.osmanager_id.value=""),n.forEach((function(e){return t.all[e].gui.rdonly=!i.info.uses_cache})),t.all.cache_l2_srvs.gui.rdonly=!1===i.info.uses_cache||!1===i.info.uses_cache_l2,t.all.publish_on_save&&(t.all.publish_on_save.gui.rdonly=!i.info.needs_publication)})),n.forEach((function(e){t.all[e].gui.rdonly=!0}))}},t.prototype.onNew=function(t){var e=this;this.editing=!1,this.api.gui.forms.typedNewForm(t,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:Yx.CHECKBOX,order:150,defvalue:"true"}}]).subscribe((function(t){return e.onChange(t)}))},t.prototype.onEdit=function(t){var e=this;this.editing=!0,this.api.gui.forms.typedEditForm(t,django.gettext("Edit Service Pool"),!1).subscribe((function(t){return e.onChange(t)}))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service pool"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.show_transports=this.api.yesno(t.show_transports),t.restrained?(t.name='warning '+this.api.gui.icon(t.info.icon)+t.name,t.state="T"):(t.name=this.api.gui.icon(t.info.icon)+t.name,t.meta_member.length>0&&(t.state="V")),t.name=this.api.safeString(t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onDetail=function(t){this.api.navigation.gotoServicePoolDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools"]],decls:1,vars:6,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(us(0,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),ls()),2&t&&os("rest",e.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("customButtons",e.customButtons)},directives:[TP],styles:[".mat-column-state, .mat-column-usage, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:10rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-cell{color:#d65014!important}"]}),t}();function BL(t,e){if(1&t&&(us(0,"mat-option",8),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function jL(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",9),gs("changed",(function(t){return xn(n),Cs().userFilter=t})),ls()}}function zL(t,e){if(1&t&&(us(0,"mat-option",8),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}var HL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=i.userService,this.userServices=i.userServices}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:i},disableClose:!1}).componentInstance.onSave},t.prototype.authChanged=function(){var t=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe((function(e){t.users=e}))},t.prototype.ngOnInit=function(){var t=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe((function(e){t.auths=e,t.authChanged()}))},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(""===this.userFilter)return this.users;var e=new Array;return this.users.forEach((function(n){(""===t.userFilter||n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase()))&&e.push(n)})),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Change owner of assigned service"),ls(),ls(),us(3,"mat-dialog-content"),us(4,"div",1),us(5,"mat-form-field"),us(6,"mat-label"),us(7,"uds-translate"),Ks(8,"Authenticator"),ls(),ls(),us(9,"mat-select",2),gs("ngModelChange",(function(t){return e.authId=t}))("selectionChange",(function(t){return e.changeAuth(t)})),ns(10,BL,2,2,"mat-option",3),ls(),ls(),us(11,"mat-form-field"),us(12,"mat-label"),us(13,"uds-translate"),Ks(14,"User"),ls(),ls(),us(15,"mat-select",4),gs("ngModelChange",(function(t){return e.userId=t})),ns(16,jL,1,0,"uds-mat-select-search",5),ns(17,zL,2,2,"mat-option",3),ls(),ls(),ls(),ls(),us(18,"mat-dialog-actions"),us(19,"button",6),us(20,"uds-translate"),Ks(21,"Cancel"),ls(),ls(),us(22,"button",7),gs("click",(function(){return e.save()})),us(23,"uds-translate"),Ks(24,"Ok"),ls(),ls(),ls()),2&t&&(Yr(9),os("ngModel",e.authId),Yr(1),os("ngForOf",e.auths),Yr(5),os("ngModel",e.userId),Yr(1),os("ngIf",e.users.length>10),Yr(1),os("ngForOf",e.filteredUsers()))},directives:[Ex,jx,Dx,ZI,BI,mO,uS,gE,sd,ld,Ax,Nx,Sx,ox,jR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function UL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New access rule for"),ls())}function WL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Edit access rule for"),ls())}function qL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Default fallback access for"),ls())}function GL(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",11),gs("changed",(function(t){return xn(n),Cs(2).calendarsFilter=t})),ls()}}function YL(t,e){if(1&t&&(us(0,"mat-option",12),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function KL(t,e){if(1&t){var n=ps();hs(0),us(1,"mat-form-field"),us(2,"mat-label"),us(3,"uds-translate"),Ks(4,"Priority"),ls(),ls(),us(5,"input",8),gs("ngModelChange",(function(t){return xn(n),Cs().accessRule.priority=t})),ls(),ls(),us(6,"mat-form-field"),us(7,"mat-label"),us(8,"uds-translate"),Ks(9,"Calendar"),ls(),ls(),us(10,"mat-select",3),gs("ngModelChange",(function(t){return xn(n),Cs().accessRule.calendarId=t})),ns(11,GL,1,0,"uds-mat-select-search",9),ns(12,YL,2,2,"mat-option",10),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(5),os("ngModel",i.accessRule.priority),Yr(5),os("ngModel",i.accessRule.calendarId),Yr(1),os("ngIf",i.calendars.length>10),Yr(1),os("ngForOf",i.filtered(i.calendars,i.calendarsFilter))}}var ZL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.calendars=[],this.calendarsFilter="",this.pool=i.pool,this.model=i.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},i.accessRule&&(this.accessRule.id=i.accessRule.id)}return t.launch=function(e,n,i,r){var a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i,accessRule:r},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.calendars.summary().subscribe((function(e){t.calendars=e})),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe((function(e){t.accessRule=e})):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe((function(e){return t.accessRule.access=e}))},t.prototype.filtered=function(t,e){return""===e?t:t.filter((function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this,e=function(){t.dialogRef.close(),t.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(e)},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(us(0,"h4",0),ns(1,UL,2,0,"uds-translate",1),ns(2,WL,2,0,"uds-translate",1),ns(3,qL,2,0,"uds-translate",1),Ks(4),ls(),us(5,"mat-dialog-content"),us(6,"div",2),ns(7,KL,13,4,"ng-container",1),us(8,"mat-form-field"),us(9,"mat-label"),us(10,"uds-translate"),Ks(11,"Action"),ls(),ls(),us(12,"mat-select",3),gs("ngModelChange",(function(t){return e.accessRule.access=t})),us(13,"mat-option",4),Ks(14," ALLOW "),ls(),us(15,"mat-option",5),Ks(16," DENY "),ls(),ls(),ls(),ls(),ls(),us(17,"mat-dialog-actions"),us(18,"button",6),us(19,"uds-translate"),Ks(20,"Cancel"),ls(),ls(),us(21,"button",7),gs("click",(function(){return e.save()})),us(22,"uds-translate"),Ks(23,"Ok"),ls(),ls(),ls()),2&t&&(Yr(1),os("ngIf",void 0===e.accessRule.id),Yr(1),os("ngIf",void 0!==e.accessRule.id&&-1!==e.accessRule.id),Yr(1),os("ngIf",-1===e.accessRule.id),Yr(1),$s(" ",e.pool.name,"\n"),Yr(3),os("ngIf",-1!==e.accessRule.id),Yr(5),os("ngModel",e.accessRule.access))},directives:[Ex,ld,Dx,ZI,BI,jx,mO,uS,gE,ox,Ax,Nx,Sx,PR,wS,eS,sd,jR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function $L(t,e){if(1&t&&(us(0,"mat-option",8),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function XL(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",9),gs("changed",(function(t){return xn(n),Cs().groupFilter=t})),ls()}}function QL(t,e){if(1&t&&(hs(0),Ks(1),ds()),2&t){var n=Cs().$implicit;Yr(1),$s(" (",n.comments,")")}}function JL(t,e){if(1&t&&(us(0,"mat-option",8),Ks(1),ns(2,QL,2,1,"ng-container",10),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name,""),Yr(1),os("ngIf",n.comments)}}var tN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=i.pool,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i},disableClose:!1}).componentInstance.onSave},t.prototype.authChanged=function(){var t=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe((function(e){t.groups=e}))},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe((function(e){t.auths=e,t.authChanged()}))},t.prototype.changeAuth=function(t){this.groupId="",this.authChanged()},t.prototype.filteredGroups=function(){var t=this;return""===this.groupFilter?this.groups:this.groups.filter((function(e){return e.name.toLocaleLowerCase().includes(t.groupFilter.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-add-group"]],decls:26,vars:6,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"],[4,"ngIf"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"New group for"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),us(5,"div",1),us(6,"mat-form-field"),us(7,"mat-label"),us(8,"uds-translate"),Ks(9,"Authenticator"),ls(),ls(),us(10,"mat-select",2),gs("ngModelChange",(function(t){return e.authId=t}))("selectionChange",(function(t){return e.changeAuth(t)})),ns(11,$L,2,2,"mat-option",3),ls(),ls(),us(12,"mat-form-field"),us(13,"mat-label"),us(14,"uds-translate"),Ks(15,"Group"),ls(),ls(),us(16,"mat-select",4),gs("ngModelChange",(function(t){return e.groupId=t})),ns(17,XL,1,0,"uds-mat-select-search",5),ns(18,JL,3,3,"mat-option",3),ls(),ls(),ls(),ls(),us(19,"mat-dialog-actions"),us(20,"button",6),us(21,"uds-translate"),Ks(22,"Cancel"),ls(),ls(),us(23,"button",7),gs("click",(function(){return e.save()})),us(24,"uds-translate"),Ks(25,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.pool.name,"\n"),Yr(7),os("ngModel",e.authId),Yr(1),os("ngForOf",e.auths),Yr(5),os("ngModel",e.groupId),Yr(1),os("ngIf",e.groups.length>10),Yr(1),os("ngForOf",e.filteredGroups()))},directives:[Ex,jx,Dx,ZI,BI,mO,uS,gE,sd,ld,Ax,Nx,Sx,ox,jR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function eN(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",7),gs("changed",(function(t){return xn(n),Cs().transportsFilter=t})),ls()}}function nN(t,e){if(1&t&&(hs(0),Ks(1),ds()),2&t){var n=Cs().$implicit;Yr(1),$s(" (",n.comments,")")}}function iN(t,e){if(1&t&&(us(0,"mat-option",8),Ks(1),ns(2,nN,2,1,"ng-container",9),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name,""),Yr(1),os("ngIf",n.comments)}}var rN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.transports.summary().subscribe((function(e){t.transports=e.filter((function(e){return t.servicePool.info.allowedProtocols.includes(e.protocol)}))}))},t.prototype.filteredTransports=function(){var t=this;return""===this.transportsFilter?this.transports:this.transports.filter((function(e){return e.name.toLocaleLowerCase().includes(t.transportsFilter.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[4,"ngIf"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"New transport for"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),us(5,"div",1),us(6,"mat-form-field"),us(7,"mat-label"),us(8,"uds-translate"),Ks(9,"Transport"),ls(),ls(),us(10,"mat-select",2),gs("ngModelChange",(function(t){return e.transportId=t})),ns(11,eN,1,0,"uds-mat-select-search",3),ns(12,iN,3,3,"mat-option",4),ls(),ls(),ls(),ls(),us(13,"mat-dialog-actions"),us(14,"button",5),us(15,"uds-translate"),Ks(16,"Cancel"),ls(),ls(),us(17,"button",6),gs("click",(function(){return e.save()})),us(18,"uds-translate"),Ks(19,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.servicePool.name,"\n"),Yr(7),os("ngModel",e.transportId),Yr(1),os("ngIf",e.transports.length>10),Yr(1),os("ngForOf",e.filteredTransports()))},directives:[Ex,jx,Dx,ZI,BI,mO,uS,gE,ld,sd,Ax,Nx,Sx,jR,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),aN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.reason="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){},t.prototype.save=function(){var t=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"New publication for"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),us(5,"div",1),us(6,"mat-form-field"),us(7,"mat-label"),us(8,"uds-translate"),Ks(9,"Comments"),ls(),ls(),us(10,"input",2),gs("ngModelChange",(function(t){return e.reason=t})),ls(),ls(),ls(),ls(),us(11,"mat-dialog-actions"),us(12,"button",3),us(13,"uds-translate"),Ks(14,"Cancel"),ls(),ls(),us(15,"button",4),gs("click",(function(){return e.save()})),us(16,"uds-translate"),Ks(17,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.servicePool.name,"\n"),Yr(7),os("ngModel",e.reason))},directives:[Ex,jx,Dx,ZI,BI,PR,eS,uS,gE,Ax,Nx,Sx],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),oN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1})},t.prototype.ngOnInit=function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Changelog of"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),cs(5,"uds-table",1,2),ls(),us(7,"mat-dialog-actions"),us(8,"button",3),us(9,"uds-translate"),Ks(10,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.servicePool.name,"\n"),Yr(2),os("rest",e.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+e.servicePool.id))},directives:[Ex,jx,Dx,TP,Ax,Nx,Sx],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function sN(t,e){1&t&&(hs(0),us(1,"uds-translate"),Ks(2,"Edit action for"),ls(),ds())}function uN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New action for"),ls())}function lN(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",14),gs("changed",(function(t){return xn(n),Cs().calendarsFilter=t})),ls()}}function cN(t,e){if(1&t&&(us(0,"mat-option",15),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function hN(t,e){if(1&t&&(us(0,"mat-option",15),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.description," ")}}function dN(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",14),gs("changed",(function(t){return xn(n),Cs(2).transportsFilter=t})),ls()}}function fN(t,e){if(1&t&&(us(0,"mat-option",15),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function pN(t,e){if(1&t){var n=ps();hs(0),us(1,"mat-form-field"),us(2,"mat-label"),us(3,"uds-translate"),Ks(4,"Transport"),ls(),ls(),us(5,"mat-select",4),gs("ngModelChange",(function(t){return xn(n),Cs().paramValue=t})),ns(6,dN,1,0,"uds-mat-select-search",5),ns(7,fN,2,2,"mat-option",6),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(5),os("ngModel",i.paramValue),Yr(1),os("ngIf",i.transports.length>10),Yr(1),os("ngForOf",i.filtered(i.transports,i.transportsFilter))}}function mN(t,e){if(1&t&&(us(0,"mat-option",15),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function vN(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",14),gs("changed",(function(t){return xn(n),Cs(2).groupsFilter=t})),ls()}}function gN(t,e){if(1&t&&(us(0,"mat-option",15),Ks(1),ls()),2&t){var n=e.$implicit;os("value",Cs(2).authenticator+"@"+n.id),Yr(1),$s(" ",n.name," ")}}function yN(t,e){if(1&t){var n=ps();hs(0),us(1,"mat-form-field"),us(2,"mat-label"),us(3,"uds-translate"),Ks(4,"Authenticator"),ls(),ls(),us(5,"mat-select",10),gs("ngModelChange",(function(t){return xn(n),Cs().authenticator=t}))("valueChange",(function(t){return xn(n),Cs().changedAuthenticator(t)})),ns(6,mN,2,2,"mat-option",6),ls(),ls(),us(7,"mat-form-field"),us(8,"mat-label"),us(9,"uds-translate"),Ks(10,"Group"),ls(),ls(),us(11,"mat-select",4),gs("ngModelChange",(function(t){return xn(n),Cs().paramValue=t})),ns(12,vN,1,0,"uds-mat-select-search",5),ns(13,gN,2,2,"mat-option",6),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(5),os("ngModel",i.authenticator),Yr(1),os("ngForOf",i.authenticators),Yr(5),os("ngModel",i.paramValue),Yr(1),os("ngIf",i.groups.length>10),Yr(1),os("ngForOf",i.filtered(i.groups,i.groupsFilter))}}function _N(t,e){if(1&t){var n=ps();hs(0),us(1,"div",8),us(2,"span",16),Ks(3),ls(),Ks(4,"\xa0 "),us(5,"mat-slide-toggle",4),gs("ngModelChange",(function(t){return xn(n),Cs().paramValue=t})),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(3),Zs(i.parameter.description),Yr(2),os("ngModel",i.paramValue)}}function bN(t,e){if(1&t){var n=ps();hs(0),us(1,"mat-form-field"),us(2,"mat-label"),Ks(3),ls(),us(4,"input",17),gs("ngModelChange",(function(t){return xn(n),Cs().paramValue=t})),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(3),$s(" ",i.parameter.description," "),Yr(1),os("type",i.parameter.type)("ngModel",i.paramValue)}}var kN=function(){return["transport","group","bool"]},wN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=i.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==i.scheduledAction&&(this.scheduledAction.id=i.scheduledAction.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe((function(e){return t.authenticators=e})),this.rest.transports.summary().subscribe((function(e){return t.transports=e})),this.rest.calendars.summary().subscribe((function(e){return t.calendars=e})),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe((function(e){t.actionList=e,t.actionList.forEach((function(e){t.paramsDict[e.id]=e.params[0]})),void 0!==t.scheduledAction.id&&t.rest.servicesPools.detail(t.servicePool.id,"actions").get(t.scheduledAction.id).subscribe((function(e){t.scheduledAction=e,t.changedAction(t.scheduledAction.action)}))}))},t.prototype.filtered=function(t,e){return""===e?t:t.filter((function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))},t.prototype.changedAction=function(t){if(this.parameter=this.paramsDict[t],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){var e=this.paramValue.split("@");2!==e.length&&(e=["",""]),this.authenticator=e[0],this.changedAuthenticator(this.authenticator)}},t.prototype.changedAuthenticator=function(t){var e=this;t&&this.rest.authenticators.detail(t,"groups").summary().subscribe((function(t){return e.groups=t}))},t.prototype.save=function(){var t=this;this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-scheduled-action"]],decls:42,vars:16,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-atstart"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(us(0,"h4",0),ns(1,sN,3,0,"ng-container",1),ns(2,uN,2,0,"ng-template",null,2,Hl),Ks(4),ls(),us(5,"mat-dialog-content"),us(6,"div",3),us(7,"mat-form-field"),us(8,"mat-label"),us(9,"uds-translate"),Ks(10,"Calendar"),ls(),ls(),us(11,"mat-select",4),gs("ngModelChange",(function(t){return e.scheduledAction.calendarId=t})),ns(12,lN,1,0,"uds-mat-select-search",5),ns(13,cN,2,2,"mat-option",6),ls(),ls(),us(14,"mat-form-field"),us(15,"mat-label"),us(16,"uds-translate"),Ks(17,"Events offset (minutes)"),ls(),ls(),us(18,"input",7),gs("ngModelChange",(function(t){return e.scheduledAction.eventsOffset=t})),ls(),ls(),us(19,"div",8),us(20,"span",9),us(21,"uds-translate"),Ks(22,"At the beginning of the interval?"),ls(),ls(),us(23,"mat-slide-toggle",4),gs("ngModelChange",(function(t){return e.scheduledAction.atStart=t})),Ks(24),ls(),ls(),us(25,"mat-form-field"),us(26,"mat-label"),us(27,"uds-translate"),Ks(28,"Action"),ls(),ls(),us(29,"mat-select",10),gs("ngModelChange",(function(t){return e.scheduledAction.action=t}))("valueChange",(function(t){return e.changedAction(t)})),ns(30,hN,2,2,"mat-option",6),ls(),ls(),ns(31,pN,8,3,"ng-container",11),ns(32,yN,14,5,"ng-container",11),ns(33,_N,6,2,"ng-container",11),ns(34,bN,5,3,"ng-container",11),ls(),ls(),us(35,"mat-dialog-actions"),us(36,"button",12),us(37,"uds-translate"),Ks(38,"Cancel"),ls(),ls(),us(39,"button",13),gs("click",(function(){return e.save()})),us(40,"uds-translate"),Ks(41,"Ok"),ls(),ls(),ls()),2&t){var n=is(3);Yr(1),os("ngIf",void 0!==e.scheduledAction.id)("ngIfElse",n),Yr(3),$s(" ",e.servicePool.name,"\n"),Yr(7),os("ngModel",e.scheduledAction.calendarId),Yr(1),os("ngIf",e.calendars.length>10),Yr(1),os("ngForOf",e.filtered(e.calendars,e.calendarsFilter)),Yr(5),os("ngModel",e.scheduledAction.eventsOffset),Yr(5),os("ngModel",e.scheduledAction.atStart),Yr(1),$s(" ",e.api.yesno(e.scheduledAction.atStart)," "),Yr(5),os("ngModel",e.scheduledAction.action),Yr(1),os("ngForOf",e.actionList),Yr(1),os("ngIf","transport"===(null==e.parameter?null:e.parameter.type)),Yr(1),os("ngIf","group"===(null==e.parameter?null:e.parameter.type)),Yr(1),os("ngIf","bool"===(null==e.parameter?null:e.parameter.type)),Yr(1),os("ngIf",(null==e.parameter?null:e.parameter.type)&&!ll(15,kN).includes(e.parameter.type))}},directives:[Ex,ld,Dx,ZI,BI,jx,mO,uS,gE,sd,PR,wS,eS,BF,Ax,Nx,Sx,jR,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}(),CN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.userService=i.userService,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:i},disableClose:!1})},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Logs of"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),cs(5,"uds-logs-table",1),ls(),us(6,"mat-dialog-actions"),us(7,"button",2),us(8,"uds-translate"),Ks(9,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.userService.name,"\n"),Yr(2),os("rest",e.model)("itemId",e.userService.id)("tableId","servicePools-d-uslog"+e.userService.id))},directives:[Ex,jx,Dx,qP,Ax,Nx,Sx],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function xN(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",8),gs("changed",(function(t){return xn(n),Cs().assignablesServicesFilter=t})),ls()}}function SN(t,e){if(1&t&&(us(0,"mat-option",9),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.text," ")}}function EN(t,e){if(1&t&&(us(0,"mat-option",9),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function DN(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",8),gs("changed",(function(t){return xn(n),Cs().userFilter=t})),ls()}}function AN(t,e){if(1&t&&(us(0,"mat-option",9),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}var IN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.authChanged=function(){var t=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe((function(e){t.users=e}))},t.prototype.ngOnInit=function(){var t=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe((function(e){t.auths=e,t.authChanged()})),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe((function(e){t.assignablesServices=e}))},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(""===this.userFilter)return this.users;var e=new Array;return this.users.forEach((function(n){n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase())&&e.push(n)})),e},t.prototype.filteredAssignables=function(){var t=this;if(""===this.assignablesServicesFilter)return this.assignablesServices;var e=new Array;return this.assignablesServices.forEach((function(n){n.text.toLocaleLowerCase().includes(t.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)})),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe((function(e){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Assign service to user manually"),ls(),ls(),us(3,"mat-dialog-content"),us(4,"div",1),us(5,"mat-form-field"),us(6,"mat-label"),us(7,"uds-translate"),Ks(8,"Service"),ls(),ls(),us(9,"mat-select",2),gs("ngModelChange",(function(t){return e.serviceId=t})),ns(10,xN,1,0,"uds-mat-select-search",3),ns(11,SN,2,2,"mat-option",4),ls(),ls(),us(12,"mat-form-field"),us(13,"mat-label"),us(14,"uds-translate"),Ks(15,"Authenticator"),ls(),ls(),us(16,"mat-select",5),gs("ngModelChange",(function(t){return e.authId=t}))("selectionChange",(function(t){return e.changeAuth(t)})),ns(17,EN,2,2,"mat-option",4),ls(),ls(),us(18,"mat-form-field"),us(19,"mat-label"),us(20,"uds-translate"),Ks(21,"User"),ls(),ls(),us(22,"mat-select",2),gs("ngModelChange",(function(t){return e.userId=t})),ns(23,DN,1,0,"uds-mat-select-search",3),ns(24,AN,2,2,"mat-option",4),ls(),ls(),ls(),ls(),us(25,"mat-dialog-actions"),us(26,"button",6),us(27,"uds-translate"),Ks(28,"Cancel"),ls(),ls(),us(29,"button",7),gs("click",(function(){return e.save()})),us(30,"uds-translate"),Ks(31,"Ok"),ls(),ls(),ls()),2&t&&(Yr(9),os("ngModel",e.serviceId),Yr(1),os("ngIf",e.assignablesServices.length>10),Yr(1),os("ngForOf",e.filteredAssignables()),Yr(5),os("ngModel",e.authId),Yr(1),os("ngForOf",e.auths),Yr(5),os("ngModel",e.userId),Yr(1),os("ngIf",e.users.length>10),Yr(1),os("ngForOf",e.filteredUsers()))},directives:[Ex,jx,Dx,ZI,BI,mO,uS,gE,ld,sd,Ax,Nx,Sx,jR,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function ON(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Summary"),ls())}function TN(t,e){if(1&t&&cs(0,"uds-information",20),2&t){var n=Cs(2);os("value",n.servicePool)("gui",n.gui)}}function RN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Assigned services"),ls())}function MN(t,e){if(1&t){var n=ps();us(0,"uds-table",21),gs("customButtonAction",(function(t){return xn(n),Cs(2).onCustomAssigned(t)}))("deleteAction",(function(t){return xn(n),Cs(2).onDeleteAssigned(t)})),ls()}if(2&t){var i=Cs(2);os("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)}}function PN(t,e){if(1&t){var n=ps();us(0,"uds-table",22),gs("customButtonAction",(function(t){return xn(n),Cs(2).onCustomAssigned(t)}))("newAction",(function(t){return xn(n),Cs(2).onNewAssigned(t)}))("deleteAction",(function(t){return xn(n),Cs(2).onDeleteAssigned(t)})),ls()}if(2&t){var i=Cs(2);os("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)}}function FN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Cache"),ls())}function LN(t,e){if(1&t){var n=ps();us(0,"mat-tab"),ns(1,FN,2,0,"ng-template",9),us(2,"div",10),us(3,"uds-table",23),gs("customButtonAction",(function(t){return xn(n),Cs(2).onCustomCached(t)}))("deleteAction",(function(t){return xn(n),Cs(2).onDeleteCache(t)})),ls(),ls(),ls()}if(2&t){var i=Cs(2);Yr(3),os("rest",i.cache)("multiSelect",!0)("allowExport",!0)("onItem",i.processsCacheElement)("tableId","servicePools-d-cache"+i.servicePool.id)("customButtons",i.customButtonsCachedServices)}}function NN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Groups"),ls())}function VN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Transports"),ls())}function BN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Publications"),ls())}function jN(t,e){if(1&t){var n=ps();us(0,"mat-tab"),ns(1,BN,2,0,"ng-template",9),us(2,"div",10),us(3,"uds-table",24),gs("customButtonAction",(function(t){return xn(n),Cs(2).onCustomPublication(t)}))("newAction",(function(t){return xn(n),Cs(2).onNewPublication(t)}))("rowSelected",(function(t){return xn(n),Cs(2).onPublicationRowSelect(t)})),ls(),ls(),ls()}if(2&t){var i=Cs(2);Yr(3),os("rest",i.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+i.servicePool.id)("customButtons",i.customButtonsPublication)}}function zN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Scheduled actions"),ls())}function HN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Access calendars"),ls())}function UN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Logs"),ls())}function WN(t,e){if(1&t){var n=ps();us(0,"div",6),us(1,"div",7),us(2,"mat-tab-group",8),gs("selectedIndexChange",(function(t){return xn(n),Cs().selectedTab=t})),us(3,"mat-tab"),ns(4,ON,2,0,"ng-template",9),us(5,"div",10),ns(6,TN,1,2,"uds-information",11),ls(),ls(),us(7,"mat-tab"),ns(8,RN,2,0,"ng-template",9),us(9,"div",10),ns(10,MN,1,6,"uds-table",12),ns(11,PN,1,6,"ng-template",null,13,Hl),ls(),ls(),ns(13,LN,4,6,"mat-tab",14),us(14,"mat-tab"),ns(15,NN,2,0,"ng-template",9),us(16,"div",10),us(17,"uds-table",15),gs("newAction",(function(t){return xn(n),Cs().onNewGroup(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteGroup(t)})),ls(),ls(),ls(),us(18,"mat-tab"),ns(19,VN,2,0,"ng-template",9),us(20,"div",10),us(21,"uds-table",16),gs("newAction",(function(t){return xn(n),Cs().onNewTransport(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteTransport(t)})),ls(),ls(),ls(),ns(22,jN,4,5,"mat-tab",14),us(23,"mat-tab"),ns(24,zN,2,0,"ng-template",9),us(25,"div",10),us(26,"uds-table",17),gs("customButtonAction",(function(t){return xn(n),Cs().onCustomScheduleAction(t)}))("newAction",(function(t){return xn(n),Cs().onNewScheduledAction(t)}))("editAction",(function(t){return xn(n),Cs().onEditScheduledAction(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteScheduledAction(t)})),ls(),ls(),ls(),us(27,"mat-tab"),ns(28,HN,2,0,"ng-template",9),us(29,"div",10),us(30,"uds-table",18),gs("newAction",(function(t){return xn(n),Cs().onNewAccessCalendar(t)}))("editAction",(function(t){return xn(n),Cs().onEditAccessCalendar(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteAccessCalendar(t)}))("loaded",(function(t){return xn(n),Cs().onAccessCalendarLoad(t)})),ls(),ls(),ls(),us(31,"mat-tab"),ns(32,UN,2,0,"ng-template",9),us(33,"div",10),cs(34,"uds-logs-table",19),ls(),ls(),ls(),ls(),ls()}if(2&t){var i=is(12),r=Cs();Yr(2),os("selectedIndex",r.selectedTab)("@.disabled",!0),Yr(4),os("ngIf",r.servicePool&&r.gui),Yr(4),os("ngIf",!1===r.servicePool.info.must_assign_manually)("ngIfElse",i),Yr(3),os("ngIf",r.cache),Yr(4),os("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsGroups)("tableId","servicePools-d-groups"+r.servicePool.id),Yr(4),os("rest",r.transports)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsTransports)("tableId","servicePools-d-transports"+r.servicePool.id),Yr(1),os("ngIf",r.publications),Yr(4),os("rest",r.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+r.servicePool.id)("customButtons",r.customButtonsScheduledAction)("onItem",r.processsCalendarOrScheduledElement),Yr(4),os("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonAccessCalendars)("tableId","servicePools-d-access"+r.servicePool.id)("onItem",r.processsCalendarOrScheduledElement),Yr(4),os("rest",r.rest.servicesPools)("itemId",r.servicePool.id)("tableId","servicePools-d-log"+r.servicePool.id)}}var qN=function(t){return["/pools","service-pools",t]},GN='event'+django.gettext("Logs")+"",YN='schedule'+django.gettext("Launch now")+"",KN='perm_identity'+django.gettext("Change owner")+"",ZN='perm_identity'+django.gettext("Assign service")+"",$N='cancel'+django.gettext("Cancel")+"",XN='event'+django.gettext("Changelog")+"",QN=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:YN,type:gA.SINGLE_SELECT},_A.getGotoButton("calendar","calendarId")],this.customButtonAccessCalendars=[_A.getGotoButton("calendar","calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:KN,type:gA.SINGLE_SELECT},{id:"log",html:GN,type:gA.SINGLE_SELECT},_A.getGotoButton("user","owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:GN,type:gA.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:$N,type:gA.SINGLE_SELECT},{id:"changelog",html:XN,type:gA.ALWAYS}],this.customButtonsGroups=[_A.getGotoButton("group","auth_id","id")],this.customButtonsTransports=[_A.getGotoButton("transport","id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return t.cleanInvalidSelections=function(t){return t.table.selection.selected.filter((function(t){return["E","R","M","S","C"].includes(t.state)})).forEach((function(e){return t.table.selection.deselect(e)})),t.table.selection.isEmpty()},t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),this.rest.servicesPools.get(e).subscribe((function(n){t.servicePool=n,t.cache=t.servicePool.info.uses_cache?t.rest.servicesPools.detail(e,"cache"):null,t.publications=t.servicePool.info.needs_publication?t.rest.servicesPools.detail(e,"publications"):null,t.servicePool.info.can_list_assignables&&t.customButtonsAssignedServices.push({id:"assign-service",html:ZN,type:gA.ALWAYS}),t.rest.servicesPools.gui().subscribe((function(e){t.gui=e.filter((function(e){return!(!1===t.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(e.name)||!1===t.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===e.name||!1===t.servicePool.info.needs_manager&&"osmanager_id"===e.name)}))}))}))},t.prototype.onNewAssigned=function(t){},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;HL.launch(this.api,e,this.assignedServices).subscribe((function(e){return t.table.overview()}))}else"log"===t.param.id?CN.launch(this.api,e,this.assignedServices):"assign-service"===t.param.id&&IN.launch(this.api,this.servicePool).subscribe((function(e){return t.table.overview()}))},t.prototype.onCustomCached=function(t){"log"===t.param.id&&CN.launch(this.api,t.table.selection.selected[0],this.cache)},t.prototype.processsAssignedElement=function(t){t.in_use=this.api.yesno(t.in_use),t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onDeleteAssigned=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))},t.prototype.onDeleteCache=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))},t.prototype.processsCacheElement=function(t){t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onNewGroup=function(t){tN.launch(this.api,this.servicePool,this.groups).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewTransport=function(t){rN.launch(this.api,this.servicePool).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteTransport=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned transport"))},t.prototype.onNewPublication=function(t){aN.launch(this.api,this.servicePool).subscribe((function(e){t.table.overview()}))},t.prototype.onPublicationRowSelect=function(t){1===t.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(t.table.selection.selected[0].state))},t.prototype.onCustomPublication=function(t){var e=this;"cancel-publication"===t.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe((function(n){n&&e.publications.invoke(t.table.selection.selected[0].id+"/cancel").subscribe((function(n){e.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()}))})):"changelog"===t.param.id&&oN.launch(this.api,this.servicePool)},t.prototype.onNewScheduledAction=function(t){wN.launch(this.api,this.servicePool).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditScheduledAction=function(t){wN.launch(this.api,this.servicePool,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteScheduledAction=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete scheduled action"))},t.prototype.onCustomScheduleAction=function(t){var e=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe((function(n){n&&e.scheduledActions.invoke(t.table.selection.selected[0].id+"/execute").subscribe((function(){e.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()}))}))},t.prototype.onNewAccessCalendar=function(t){ZL.launch(this.api,this.servicePool,this.accessCalendars).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditAccessCalendar=function(t){ZL.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteAccessCalendar=function(t){-1!==t.table.selection.selected[0].id?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe((function(n){var i=t.table.dataSource.data.filter((function(t){return!0}));i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i}))},t.prototype.processsCalendarOrScheduledElement=function(t){t.name=t.calendar,t.atStart=this.api.yesno(t.atStart)},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","customButtonAction","newAction","rowSelected"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"a",2),us(3,"i",3),Ks(4,"arrow_back"),ls(),ls(),Ks(5," \xa0"),cs(6,"img",4),Ks(7),ls(),ns(8,WN,35,32,"div",5),ls()),2&t&&(Yr(2),os("routerLink",cl(4,qN,e.servicePool?e.servicePool.id:"")),Yr(4),os("src",e.api.staticURL("admin/img/icons/pools.png"),Er),Yr(1),$s(" \xa0",null==e.servicePool?null:e.servicePool.name," "),Yr(1),os("ngIf",null!==e.servicePool))},directives:[xg,ld,TD,kD,gD,TP,qP,jx,XP],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-cache_level, .mat-column-in_use, .mat-column-priority, .mat-column-revision{max-width:7rem;justify-content:center} .mat-column-access, .mat-column-creation_date, .mat-column-publish_date, .mat-column-state_date, .mat-column-trans_type{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word}"]}),t}(),JN=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New meta pool"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit meta pool"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete meta pool"))},t.prototype.onDetail=function(t){this.api.navigation.gotoMetapoolDetail(t.param.id)},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.name=this.api.safeString(this.api.gui.icon(t.thumb)+t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-meta-pools"]],decls:2,vars:5,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"div"),us(1,"uds-table",0),gs("detailAction",(function(t){return e.onDetail(t)}))("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls(),ls()),2&t&&(Yr(1),os("rest",e.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("hasPermissions",!0))},directives:[TP],styles:[".mat-column-pool_group_name, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center}"]}),t}();function tV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New member pool"),ls())}function eV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Edit member pool"),ls())}function nV(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",11),gs("changed",(function(t){return xn(n),Cs().servicePoolsFilter=t})),ls()}}function iV(t,e){if(1&t&&(us(0,"mat-option",12),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}var rV=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=i.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},i.memberPool&&(this.memberPool.id=i.memberPool.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:i,model:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.servicesPools.summary().subscribe((function(e){return t.servicePools=e})),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe((function(e){return t.memberPool=e}))},t.prototype.filtered=function(t,e){return""===e?t:t.filter((function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(us(0,"h4",0),ns(1,tV,2,0,"uds-translate",1),ns(2,eV,2,0,"uds-translate",1),ls(),us(3,"mat-dialog-content"),us(4,"div",2),us(5,"mat-form-field"),us(6,"mat-label"),us(7,"uds-translate"),Ks(8,"Priority"),ls(),ls(),us(9,"input",3),gs("ngModelChange",(function(t){return e.memberPool.priority=t})),ls(),ls(),us(10,"mat-form-field"),us(11,"mat-label"),us(12,"uds-translate"),Ks(13,"Service pool"),ls(),ls(),us(14,"mat-select",4),gs("ngModelChange",(function(t){return e.memberPool.pool_id=t})),ns(15,nV,1,0,"uds-mat-select-search",5),ns(16,iV,2,2,"mat-option",6),ls(),ls(),us(17,"div",7),us(18,"span",8),us(19,"uds-translate"),Ks(20,"Enabled?"),ls(),ls(),us(21,"mat-slide-toggle",4),gs("ngModelChange",(function(t){return e.memberPool.enabled=t})),Ks(22),ls(),ls(),ls(),ls(),us(23,"mat-dialog-actions"),us(24,"button",9),us(25,"uds-translate"),Ks(26,"Cancel"),ls(),ls(),us(27,"button",10),gs("click",(function(){return e.save()})),us(28,"uds-translate"),Ks(29,"Ok"),ls(),ls(),ls()),2&t&&(Yr(1),os("ngIf",!(null!=e.memberPool&&e.memberPool.id)),Yr(1),os("ngIf",null==e.memberPool?null:e.memberPool.id),Yr(7),os("ngModel",e.memberPool.priority),Yr(5),os("ngModel",e.memberPool.pool_id),Yr(1),os("ngIf",e.servicePools.length>10),Yr(1),os("ngForOf",e.filtered(e.servicePools,e.servicePoolsFilter)),Yr(5),os("ngModel",e.memberPool.enabled),Yr(1),$s(" ",e.api.yesno(e.memberPool.enabled)," "))},directives:[Ex,ld,Dx,ZI,BI,jx,PR,wS,eS,uS,gE,mO,sd,BF,Ax,Nx,Sx,jR,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function aV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Summary"),ls())}function oV(t,e){if(1&t&&cs(0,"uds-information",17),2&t){var n=Cs(2);os("value",n.metaPool)("gui",n.gui)}}function sV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Service pools"),ls())}function uV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Assigned services"),ls())}function lV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Groups"),ls())}function cV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Access calendars"),ls())}function hV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Logs"),ls())}function dV(t,e){if(1&t){var n=ps();us(0,"div",6),us(1,"div",7),us(2,"mat-tab-group",8),gs("selectedIndexChange",(function(t){return xn(n),Cs().selectedTab=t})),us(3,"mat-tab"),ns(4,aV,2,0,"ng-template",9),us(5,"div",10),ns(6,oV,1,2,"uds-information",11),ls(),ls(),us(7,"mat-tab"),ns(8,sV,2,0,"ng-template",9),us(9,"div",10),us(10,"uds-table",12),gs("newAction",(function(t){return xn(n),Cs().onNewMemberPool(t)}))("editAction",(function(t){return xn(n),Cs().onEditMemberPool(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteMemberPool(t)})),ls(),ls(),ls(),us(11,"mat-tab"),ns(12,uV,2,0,"ng-template",9),us(13,"div",10),us(14,"uds-table",13),gs("customButtonAction",(function(t){return xn(n),Cs().onCustomAssigned(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteAssigned(t)})),ls(),ls(),ls(),us(15,"mat-tab"),ns(16,lV,2,0,"ng-template",9),us(17,"div",10),us(18,"uds-table",14),gs("newAction",(function(t){return xn(n),Cs().onNewGroup(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteGroup(t)})),ls(),ls(),ls(),us(19,"mat-tab"),ns(20,cV,2,0,"ng-template",9),us(21,"div",10),us(22,"uds-table",15),gs("newAction",(function(t){return xn(n),Cs().onNewAccessCalendar(t)}))("editAction",(function(t){return xn(n),Cs().onEditAccessCalendar(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteAccessCalendar(t)}))("loaded",(function(t){return xn(n),Cs().onAccessCalendarLoad(t)})),ls(),ls(),ls(),us(23,"mat-tab"),ns(24,hV,2,0,"ng-template",9),us(25,"div",10),cs(26,"uds-logs-table",16),ls(),ls(),ls(),ls(),ls()}if(2&t){var i=Cs();Yr(2),os("selectedIndex",i.selectedTab)("@.disabled",!0),Yr(4),os("ngIf",i.metaPool&&i.gui),Yr(4),os("rest",i.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("customButtons",i.customButtons)("tableId","metaPools-d-members"+i.metaPool.id),Yr(4),os("rest",i.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+i.metaPool.id)("customButtons",i.customButtonsAssignedServices),Yr(4),os("rest",i.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+i.metaPool.id),Yr(4),os("rest",i.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+i.metaPool.id),Yr(4),os("rest",i.rest.metaPools)("itemId",i.metaPool.id)("tableId","metaPools-d-log"+i.metaPool.id)}}var fV=function(t){return["/pools","meta-pools",t]},pV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[_A.getGotoButton("pool","pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:KN,type:gA.SINGLE_SELECT},{id:"log",html:GN,type:gA.SINGLE_SELECT},_A.getGotoButton("user","owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(e).subscribe((function(n){t.metaPool=n,t.rest.metaPools.gui().subscribe((function(e){t.gui=e})),t.memberPools=t.rest.metaPools.detail(e,"pools"),t.memberUserServices=t.rest.metaPools.detail(e,"services"),t.groups=t.rest.metaPools.detail(e,"groups"),t.accessCalendars=t.rest.metaPools.detail(e,"access")}))},t.prototype.onNewMemberPool=function(t){rV.launch(this.api,this.memberPools).subscribe((function(){return t.table.overview()}))},t.prototype.onEditMemberPool=function(t){rV.launch(this.api,this.memberPools,t.table.selection.selected[0]).subscribe((function(){return t.table.overview()}))},t.prototype.onDeleteMemberPool=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove member pool"))},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;HL.launch(this.api,e,this.memberUserServices).subscribe((function(e){return t.table.overview()}))}else"log"===t.param.id&&CN.launch(this.api,e,this.memberUserServices)},t.prototype.onDeleteAssigned=function(t){QN.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))},t.prototype.onNewGroup=function(t){tN.launch(this.api,this.metaPool.id,this.groups).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewAccessCalendar=function(t){ZL.launch(this.api,this.metaPool,this.accessCalendars).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditAccessCalendar=function(t){ZL.launch(this.api,this.metaPool,this.accessCalendars,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteAccessCalendar=function(t){t.table.selection.selected[0].priority>0?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe((function(n){var i=t.table.dataSource.data.filter((function(t){return!0}));i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i}))},t.prototype.processElement=function(t){t.enabled=this.api.yesno(t.enabled)},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"a",2),us(3,"i",3),Ks(4,"arrow_back"),ls(),ls(),Ks(5," \xa0"),cs(6,"img",4),Ks(7),ls(),ns(8,dV,27,25,"div",5),ls()),2&t&&(Yr(2),os("routerLink",cl(4,fV,e.metaPool?e.metaPool.id:"")),Yr(4),os("src",e.api.staticURL("admin/img/icons/metas.png"),Er),Yr(1),$s(" ",null==e.metaPool?null:e.metaPool.name," "),Yr(1),os("ngIf",e.metaPool))},directives:[xg,ld,TD,kD,gD,TP,qP,jx,XP],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),t}(),mV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New service Pool"),!1).subscribe((function(e){return t.table.overview()}))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("New Service Pool"),!1).subscribe((function(e){return t.table.overview()}))},t.prototype.onDelete=function(t){},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-pool-groups"]],decls:1,vars:4,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls()),2&t&&os("rest",e.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)},directives:[TP],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),t}(),vV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New calendar"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit calendar"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar"))},t.prototype.onDetail=function(t){this.api.navigation.gotoCalendarDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-calendars"]],decls:1,vars:4,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(us(0,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),ls()),2&t&&os("rest",e.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)},directives:[TP],styles:[""]}),t}(),gV=["mat-calendar-body",""];function yV(t,e){if(1&t&&(us(0,"tr",2),us(1,"td",3),Ks(2),ls(),ls()),2&t){var n=Cs();Yr(1),Ls("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),ts("colspan",n.numCols),Yr(1),$s(" ",n.label," ")}}function _V(t,e){if(1&t&&(us(0,"td",7),Ks(1),ls()),2&t){var n=Cs(2);Ls("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),ts("colspan",n._firstRowOffset),Yr(1),$s(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function bV(t,e){if(1&t){var n=ps();us(0,"td",8),gs("click",(function(t){xn(n);var i=e.$implicit;return Cs(2)._cellClicked(i,t)})),us(1,"div",9),Ks(2),ls(),cs(3,"div",10),ls()}if(2&t){var i=e.$implicit,r=e.index,a=Cs().index,o=Cs();Ls("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),Ns("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",o._isActiveCell(a,r))("mat-calendar-body-range-start",o._isRangeStart(i.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(i.compareValue))("mat-calendar-body-in-range",o._isInRange(i.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(i.compareValue,a,r))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(i.compareValue,a,r))("mat-calendar-body-comparison-start",o._isComparisonStart(i.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(i.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(i.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(i.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(i.compareValue))("mat-calendar-body-in-preview",o._isInPreview(i.compareValue)),os("ngClass",i.cssClasses)("tabindex",o._isActiveCell(a,r)?0:-1),ts("data-mat-row",a)("data-mat-col",r)("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",o._isSelected(i)),Yr(1),Ns("mat-calendar-body-selected",o._isSelected(i))("mat-calendar-body-today",o.todayValue===i.compareValue),Yr(1),$s(" ",i.displayValue," ")}}function kV(t,e){if(1&t&&(us(0,"tr",4),ns(1,_V,2,6,"td",5),ns(2,bV,4,44,"td",6),ls()),2&t){var n=e.$implicit,i=e.index,r=Cs();Yr(1),os("ngIf",0===i&&r._firstRowOffset),Yr(1),os("ngForOf",n)}}function wV(t,e){if(1&t&&(us(0,"th",5),Ks(1),ls()),2&t){var n=e.$implicit;ts("aria-label",n.long),Yr(1),Zs(n.narrow)}}var CV=["*"];function xV(t,e){}function SV(t,e){if(1&t){var n=ps();us(0,"mat-month-view",5),gs("activeDateChange",(function(t){return xn(n),Cs().activeDate=t}))("_userSelection",(function(t){return xn(n),Cs()._dateSelected(t)})),ls()}if(2&t){var i=Cs();os("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)}}function EV(t,e){if(1&t){var n=ps();us(0,"mat-year-view",6),gs("activeDateChange",(function(t){return xn(n),Cs().activeDate=t}))("monthSelected",(function(t){return xn(n),Cs()._monthSelectedInYearView(t)}))("selectedChange",(function(t){return xn(n),Cs()._goToDateInView(t,"month")})),ls()}if(2&t){var i=Cs();os("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}function DV(t,e){if(1&t){var n=ps();us(0,"mat-multi-year-view",7),gs("activeDateChange",(function(t){return xn(n),Cs().activeDate=t}))("yearSelected",(function(t){return xn(n),Cs()._yearSelectedInMultiYearView(t)}))("selectedChange",(function(t){return xn(n),Cs()._goToDateInView(t,"year")})),ls()}if(2&t){var i=Cs();os("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}var AV=["button"];function IV(t,e){1&t&&(Xn(),us(0,"svg",3),cs(1,"path",4),ls())}var OV=[[["","matDatepickerToggleIcon",""]]],TV=["[matDatepickerToggleIcon]"],RV=[[["input","matStartDate",""]],[["input","matEndDate",""]]],MV=["input[matStartDate]","input[matEndDate]"];function PV(t){return Error("MatDatepicker: No provider found for ".concat(t,". You must import one of the following ")+"modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}var FV=function(){var t=function(){function t(){y(this,t),this.changes=new U,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return b(t,[{key:"formatYearRange",value:function(t,e){return"".concat(t," \u2013 ").concat(e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return new t},token:t,providedIn:"root"}),t}(),LV=function t(e,n,i,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6?arguments[6]:void 0;y(this,t),this.value=e,this.displayValue=n,this.ariaLabel=i,this.enabled=r,this.cssClasses=a,this.compareValue=o,this.rawValue=s},NV=function(){var t=function(){function t(e,n){var i=this;y(this,t),this._elementRef=e,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new bl,this.previewChange=new bl,this._enterHandler=function(t){if(i._skipNextFocus&&"focus"===t.type)i._skipNextFocus=!1;else if(t.target&&i.isRange){var e=i._getCellFromElement(t.target);e&&i._ngZone.run((function(){return i.previewChange.emit({value:e.enabled?e:null,event:t})}))}},this._leaveHandler=function(t){null!==i.previewEnd&&i.isRange&&t.target&&VV(t.target)&&i._ngZone.run((function(){return i.previewChange.emit({value:null,event:t})}))},n.runOutsideAngular((function(){var t=e.nativeElement;t.addEventListener("mouseenter",i._enterHandler,!0),t.addEventListener("focus",i._enterHandler,!0),t.addEventListener("mouseleave",i._leaveHandler,!0),t.addEventListener("blur",i._leaveHandler,!0)}))}return b(t,[{key:"_cellClicked",value:function(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}},{key:"_isSelected",value:function(t){return this.startValue===t.compareValue||this.endValue===t.compareValue}},{key:"ngOnChanges",value:function(t){var e=t.numCols,n=this.rows,i=this.numCols;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/i,"%")),!e&&this._cellWidth||(this._cellWidth="".concat(100/i,"%"))}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}},{key:"_focusActiveCell",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Lp(1)).subscribe((function(){var n=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(t._skipNextFocus=!0),n.focus())}))}))}},{key:"_isRangeStart",value:function(t){return BV(t,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(t){return jV(t,this.startValue,this.endValue)}},{key:"_isInRange",value:function(t){return zV(t,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(t){return BV(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(t,e,n){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;var i=this.rows[e][n-1];if(!i){var r=this.rows[e-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(t,e,n){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;var i=this.rows[e][n+1];if(!i){var r=this.rows[e+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}},{key:"_isComparisonEnd",value:function(t){return jV(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(t){return zV(t,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isPreviewStart",value:function(t){return BV(t,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(t){return jV(t,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(t){return zV(t,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(t){var e;if(VV(t)?e=t:VV(t.parentNode)&&(e=t.parentNode),e){var n=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(n&&i)return this.rows[parseInt(n)][parseInt(i)]}return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(cc))},t.\u0275cmp=Me({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[Qe],attrs:gV,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(ns(0,yV,3,6,"tr",0),ns(1,kV,3,2,"tr",1)),2&t&&(os("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t}();function VV(t){return"TD"===t.nodeName}function BV(t,e,n){return null!==n&&e!==n&&t=e&&t===n}function zV(t,e,n,i){return i&&null!==e&&null!==n&&e!==n&&t>=e&&t<=n}var HV=function t(e,n){y(this,t),this.start=e,this.end=n},UV=function(){var t=function(){function t(e,n){y(this,t),this.selection=e,this._adapter=n,this._selectionChanged=new U,this.selectionChanged=this._selectionChanged.asObservable(),this.selection=e}return b(t,[{key:"updateSelection",value:function(t,e){this.selection=t,this._selectionChanged.next({selection:t,source:e})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(void 0),rs(xC))},t.\u0275dir=Be({type:t}),t}(),WV=function(){var t=function(t){f(n,t);var e=g(n);function n(t){return y(this,n),e.call(this,null,t)}return b(n,[{key:"add",value:function(t){r(i(n.prototype),"updateSelection",this).call(this,t,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}}]),n}(UV);return t.\u0275fac=function(e){return new(e||t)(fe(xC))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),qV=function(){var t=function(t){f(n,t);var e=g(n);function n(t){return y(this,n),e.call(this,new HV(null,null),t)}return b(n,[{key:"add",value:function(t){var e=this.selection,a=e.start,o=e.end;null==a?a=t:null==o?o=t:(a=t,o=null),r(i(n.prototype),"updateSelection",this).call(this,new HV(a,o),this)}},{key:"isValid",value:function(){var t=this.selection,e=t.start,n=t.end;return null==e&&null==n||(null!=e&&null!=n?this._isValidDateInstance(e)&&this._isValidDateInstance(n)&&this._adapter.compareDate(e,n)<=0:(null==e||this._isValidDateInstance(e))&&(null==n||this._isValidDateInstance(n)))}},{key:"isComplete",value:function(){return null!=this.selection.start&&null!=this.selection.end}}]),n}(UV);return t.\u0275fac=function(e){return new(e||t)(fe(xC))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),GV={provide:UV,deps:[[new Ct,new St,UV],xC],useFactory:function(t,e){return t||new WV(e)}},YV={provide:UV,deps:[[new Ct,new St,UV],xC],useFactory:function(t,e){return t||new qV(e)}},KV=new re("MAT_DATE_RANGE_SELECTION_STRATEGY"),ZV=function(){var t=function(){function t(e){y(this,t),this._dateAdapter=e}return b(t,[{key:"selectionFinished",value:function(t,e){var n=e.start,i=e.end;return null==n?n=t:null==i&&t&&this._dateAdapter.compareDate(t,n)>=0?i=t:(n=t,i=null),new HV(n,i)}},{key:"createPreview",value:function(t,e){var n=null,i=null;return e.start&&!e.end&&t&&(n=e.start,i=t),new HV(n,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(xC))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),$V=function(){var t=function(){function t(e,n,i,r,a){if(y(this,t),this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=i,this._dir=r,this._rangeStrategy=a,this._rerenderSubscription=E.EMPTY,this.selectedChange=new bl,this._userSelection=new bl,this.activeDateChange=new bl,!this._dateAdapter)throw PV("DateAdapter");if(!this._dateFormats)throw PV("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return b(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe($p(null)).subscribe((function(){return t._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(t){var e,n,i=t.value,r=this._dateAdapter.getYear(this.activeDate),a=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.createDate(r,a,i);this._selected instanceof HV?(e=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):e=n=this._getDateInCurrentMonth(this._selected),e===i&&n===i||this.selectedChange.emit(o),this._userSelection.emit({value:o,event:t.event})}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case 27:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(t){this._matCalendarBody._focusActiveCell(t)}},{key:"_previewChanged",value:function(t){var e=t.value;if(this._rangeStrategy){var n=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t.event);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map((function(t,n){return{long:t,narrow:e[n]}}));this._weekdays=n.slice(t).concat(n.slice(0,t))}},{key:"_createWeekCells",value:function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}},{key:"_getDateInCurrentMonth",value:function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}},{key:"_hasSameMonthAndYear",value:function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}},{key:"_getCellCompareValue",value:function(t){if(t){var e=this._dateAdapter.getYear(t),n=this._dateAdapter.getMonth(t),i=this._dateAdapter.getDate(t);return new Date(e,n,i).getTime()}return null}},{key:"_getValidDateOrNull",value:function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(t){t instanceof HV?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}},{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof HV?t:this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(So),rs(SC,8),rs(xC,8),rs(Hy,8),rs(KV,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var n;1&t&&Ml(NV,!0),2&t&&Tl(n=Vl())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(us(0,"table",0),us(1,"thead",1),us(2,"tr"),ns(3,wV,2,2,"th",2),ls(),us(4,"tr"),cs(5,"th",3),ls(),ls(),us(6,"tbody",4),gs("selectedValueChange",(function(t){return e._dateSelected(t)}))("previewChange",(function(t){return e._previewChanged(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),ls(),ls()),2&t&&(Yr(3),os("ngForOf",e._weekdays),Yr(3),os("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[sd,NV],encapsulation:2,changeDetection:0}),t}(),XV=function(){var t=function(){function t(e,n,i){if(y(this,t),this._changeDetectorRef=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=E.EMPTY,this.selectedChange=new bl,this.yearSelected=new bl,this.activeDateChange=new bl,!this._dateAdapter)throw PV("DateAdapter");this._activeDate=this._dateAdapter.today()}return b(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe($p(null)).subscribe((function(){return t._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-JV(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];n<24;n++)i.push(e+n),4==i.length&&(this._years.push(i.map((function(e){return t._createCellForYear(e)}))),i=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(t){var e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));var n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));this.selectedChange.emit(this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-JV(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-JV(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case 13:case 32:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_getActiveCell",value:function(){return JV(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(t){var e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new LV(t,e,e,this._shouldEnableYear(t))}},{key:"_shouldEnableYear",value:function(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&tn||t===n&&e>i}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(t,e){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t enter",Pb("120ms cubic-bezier(0, 0, 0.2, 1)",Nb({opacity:1,transform:"scale(1, 1)"}))),jb("* => void",Pb("100ms linear",Nb({opacity:0})))]),fadeInCalendar:Mb("fadeInCalendar",[Vb("void",Nb({opacity:0})),Vb("enter",Nb({opacity:1})),jb("void => *",Pb("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},aB=0,oB=new re("mat-datepicker-scroll-strategy"),sB={provide:oB,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},uB=gC((function t(e){y(this,t),this._elementRef=e})),lB=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o){var s;return y(this,n),(s=e.call(this,t))._changeDetectorRef=i,s._model=r,s._dateAdapter=a,s._rangeSelectionStrategy=o,s._subscriptions=new E,s._animationState="enter",s._animationDone=new U,s}return b(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._changeDetectorRef&&this._subscriptions.add(this.datepicker._stateChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(t){if(this._model&&this._dateAdapter){var e=this._model.selection,n=t.value,i=e instanceof HV;if(i&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(n,e,t.event);this._model.updateSelection(r,this)}else!n||!i&&this._dateAdapter.sameDate(n,e)||this._model.add(n)}this._model&&!this._model.isComplete()||this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model?this._model.selection:null}}]),n}(uB);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(UV),rs(xC),rs(KV,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&Ml(iB,!0),2&t&&Tl(n=Vl())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&ys("@transformPanel.done",(function(){return e._animationDone.next()})),2&t&&(Js("@transformPanel",e._animationState),Ns("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[eu],decls:1,vars:13,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","_userSelection"]],template:function(t,e){1&t&&(us(0,"mat-calendar",0),gs("yearSelected",(function(t){return e.datepicker._selectYear(t)}))("monthSelected",(function(t){return e.datepicker._selectMonth(t)}))("_userSelection",(function(t){return e._handleUserSelection(t)})),ls()),2&t&&os("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter")},directives:[iB,gb,rd],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[rB.transformPanel,rB.fadeInCalendar]},changeDetection:0}),t}(),cB=function(){var t=function(){function t(e,n,i,r,a,o,s,u,l){if(y(this,t),this._dialog=e,this._overlay=n,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=o,this._dir=s,this._document=u,this._model=l,this._inputStateChanges=E.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new bl,this.monthSelected=new bl,this.openedStream=new bl,this.closedStream=new bl,this._opened=!1,this.id="mat-datepicker-".concat(aB++),this._focusedElementBeforeOpen=null,this._stateChanges=new U,!this._dateAdapter)throw PV("DateAdapter");this._scrollStrategy=a}return b(t,[{key:"_getMinDate",value:function(){return this._datepickerInput&&this._datepickerInput.min}},{key:"_getMaxDate",value:function(){return this._datepickerInput&&this._datepickerInput.max}},{key:"_getDateFilter",value:function(){return this._datepickerInput&&this._datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(t){var e=t.xPosition||t.yPosition;e&&!e.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this._stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this._stateChanges.complete()}},{key:"select",value:function(t){this._model.add(t)}},{key:"_selectYear",value:function(t){this.yearSelected.emit(t)}},{key:"_selectMonth",value:function(t){this.monthSelected.emit(t)}},{key:"_registerInput",value:function(t){var e=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");return this._inputStateChanges.unsubscribe(),this._datepickerInput=t,this._inputStateChanges=t._stateChanges.subscribe((function(){return e._stateChanges.next(void 0)})),this._model}},{key:"open",value:function(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}},{key:"close",value:function(){var t=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var e=this._popupComponentRef.instance;e._startExitAnimation(),e._animationDone.pipe(Lp(1)).subscribe((function(){return t._destroyPopup()}))}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var n=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}}},{key:"_openAsDialog",value:function(){var t=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(lB,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe((function(){return t.close()})),this._forwardContentValues(this._dialogRef.componentInstance)}},{key:"_openAsPopup",value:function(){var t=this,e=new n_(lB,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(e),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.asObservable().pipe(Lp(1)).subscribe((function(){t._popupRef.updatePosition()}))}},{key:"_forwardContentValues",value:function(t){t.datepicker=this,t.color=this.color}},{key:"_createPopup",value:function(){var t=this,e=this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),n=new x_({positionStrategy:this._setConnectedPositions(e),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(n),this._popupRef.overlayElement.setAttribute("role","dialog"),ht(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Df((function(e){return 27===e.keyCode||t._datepickerInput&&e.altKey&&38===e.keyCode})))).subscribe((function(e){e&&e.preventDefault(),t.close()}))}},{key:"_destroyPopup",value:function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}},{key:"_setConnectedPositions",value:function(t){var e="end"===this.xPosition?"end":"start",n="start"===e?"end":"start",i="above"===this.yPosition?"bottom":"top",r="top"===i?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:i},{originX:e,originY:i,overlayX:e,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:r}])}},{key:"_getValidDateOrNull",value:function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}},{key:"startAt",get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.getStartValue():null)},set:function(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"color",get:function(){return this._color||(this._datepickerInput?this._datepickerInput.getThemePalette():void 0)},set:function(t){this._color=t}},{key:"touchUi",get:function(){return this._touchUi},set:function(t){this._touchUi=Kg(t)}},{key:"disabled",get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(t){var e=Kg(t);e!==this._disabled&&(this._disabled=e,this._stateChanges.next(void 0))}},{key:"opened",get:function(){return this._opened},set:function(t){t?this.open():this.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Cx),rs(U_),rs(cc),rs(qu),rs(oB),rs(xC,8),rs(Hy,8),rs(Wc,8),rs(UV))},t.\u0275dir=Be({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},features:[Qe]}),t}(),hB=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(cB);return t.\u0275fac=function(e){return dB(e||t)},t.\u0275cmp=Me({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[pu([GV]),eu],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t}(),dB=Vi(hB),fB=function t(e,n){y(this,t),this.target=e,this.targetElement=n,this.value=this.target.value},pB=function(){var t=function(){function t(e,n,i){var r=this;if(y(this,t),this._elementRef=e,this._dateAdapter=n,this._dateFormats=i,this.dateChange=new bl,this.dateInput=new bl,this._valueChange=new bl,this._stateChanges=new U,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=E.EMPTY,this._localeSubscription=E.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._filterValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getDateFilter();return n&&e&&!n(e)?{matDatepickerFilter:!0}:null},this._minValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMinDate();return!n||!e||r._dateAdapter.compareDate(n,e)<=0?null:{matDatepickerMin:{min:n,actual:e}}},this._maxValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMaxDate();return!n||!e||r._dateAdapter.compareDate(n,e)>=0?null:{matDatepickerMax:{max:n,actual:e}}},this._lastValueValid=!1,!this._dateAdapter)throw PV("DateAdapter");if(!this._dateFormats)throw PV("MAT_DATE_FORMATS");this._localeSubscription=n.localeChanges.subscribe((function(){r.value=r.value}))}return b(t,[{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(t){var e=this;this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe((function(t){if(t.source!==e){var n=e._getValueFromModel(t.selection);e._lastValueValid=e._isValidValue(n),e._cvaOnChange(n),e._onTouched(),e._formatValue(n),e._canEmitChangeEvent(t)&&(e.dateInput.emit(new fB(e,e._elementRef.nativeElement)),e.dateChange.emit(new fB(e,e._elementRef.nativeElement))),e._outsideValueChanged&&e._outsideValueChanged()}}))}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(){this._stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._stateChanges.complete()}},{key:"registerOnValidatorChange",value:function(t){this._validatorOnChange=t}},{key:"validate",value:function(t){return this._validator?this._validator(t):null}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this._cvaOnChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_onKeydown",value:function(t){t.altKey&&40===t.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}},{key:"_onInput",value:function(t){var e=this._lastValueValid,n=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(n),n=this._getValidDateOrNull(n),this._dateAdapter.sameDate(n,this.value)?(t&&!this.value&&this._cvaOnChange(n),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(n),this._cvaOnChange(n),this._valueChange.emit(n),this.dateInput.emit(new fB(this,this._elementRef.nativeElement)))}},{key:"_onChange",value:function(){this.dateChange.emit(new fB(this,this._elementRef.nativeElement))}},{key:"_onBlur",value:function(){this.value&&this._formatValue(this.value),this._onTouched()}},{key:"_formatValue",value:function(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}},{key:"_getValidDateOrNull",value:function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}},{key:"_assignValue",value:function(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}},{key:"_isValidValue",value:function(t){return!t||this._dateAdapter.isValid(t)}},{key:"_parentDisabled",value:function(){return!1}},{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._getValidDateOrNull(t);var e=this.value;this._assignValue(t),this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(t){var e=Kg(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._stateChanges.next(void 0)),e&&this._isInitialized&&n.blur&&n.blur()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(xC,8),rs(SC,8))},t.\u0275dir=Be({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Qe]}),t}(),mB={provide:$x,useExisting:Ht((function(){return gB})),multi:!0},vB={provide:dS,useExisting:Ht((function(){return gB})),multi:!0},gB=function(){var t=function(t){f(n,t);var e=g(n);function n(t,o,s,u){var l,c;return y(this,n),(c=e.call(this,t,o,s))._formField=u,c._validator=mS.compose(r((l=a(c),i(n.prototype)),"_getValidators",l).call(l)),c}return b(n,[{key:"getConnectedOverlayOrigin",value:function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}},{key:"getThemePalette",value:function(){return this._formField?this._formField.color:void 0}},{key:"getStartValue",value:function(){return this.value}},{key:"getPopupConnectionElementRef",value:function(){return this.getConnectedOverlayOrigin()}},{key:"_openPopup",value:function(){this._datepicker&&this._datepicker.open()}},{key:"_getValueFromModel",value:function(t){return t}},{key:"_assignValueToModel",value:function(t){this._model&&this._model.updateSelection(t,this)}},{key:"_getMinDate",value:function(){return this._min}},{key:"_getMaxDate",value:function(){return this._max}},{key:"_getDateFilter",value:function(){return this._dateFilter}},{key:"_canEmitChangeEvent",value:function(){return!0}},{key:"matDatepicker",set:function(t){t&&(this._datepicker=t,this._registerModel(t._registerInput(this)))}},{key:"min",get:function(){return this._min},set:function(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}},{key:"max",get:function(){return this._max},set:function(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}},{key:"dateFilter",get:function(){return this._dateFilter},set:function(t){this._dateFilter=t,this._validatorOnChange()}}]),n}(pB);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(xC,8),rs(SC,8),rs(KI,8))},t.\u0275dir=Be({type:t,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(t,e){1&t&&gs("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)})),2&t&&(Qs("disabled",e.disabled),ts("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[pu([mB,vB,{provide:OR,useExisting:t}]),eu]}),t}(),yB=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t}(),_B=function(){var t=function(){function t(e,n,i){y(this,t),this._intl=e,this._changeDetectorRef=n,this._stateChanges=E.EMPTY;var r=Number(i);this.tabIndex=r||0===r?r:null}return b(t,[{key:"ngOnChanges",value:function(t){t.datepicker&&this._watchStateChanges()}},{key:"ngOnDestroy",value:function(){this._stateChanges.unsubscribe()}},{key:"ngAfterContentInit",value:function(){this._watchStateChanges()}},{key:"_open",value:function(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}},{key:"_watchStateChanges",value:function(){var t=this,e=this.datepicker?this.datepicker._stateChanges:Sf(),n=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._stateChanges:Sf(),i=this.datepicker?ht(this.datepicker.openedStream,this.datepicker.closedStream):Sf();this._stateChanges.unsubscribe(),this._stateChanges=ht(this._intl.changes,e,n,i).subscribe((function(){return t._changeDetectorRef.markForCheck()}))}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(t){this._disabled=Kg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(FV),rs(So),as("tabindex"))},t.\u0275cmp=Me({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,yB,!0),2&t&&Tl(i=Vl())&&(e._customIcon=i.first)},viewQuery:function(t,e){var n;1&t&&Ml(AV,!0),2&t&&Tl(n=Vl())&&(e._button=n.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(t,e){1&t&&gs("focus",(function(){return e._button.focus()})),2&t&&(ts("tabindex",e.disabled?null:-1),Ns("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Qe],ngContentSelectors:TV,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(Ss(OV),us(0,"button",0,1),gs("click",(function(t){return e._open(t)})),ns(2,IV,2,0,"svg",2),Es(3),ls()),2&t&&(os("disabled",e.disabled)("disableRipple",e.disableRipple),ts("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),Yr(2),os("ngIf",!e._customIcon))},directives:[Nx,ld],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t}(),bB=new re("MAT_DATE_RANGE_INPUT_PARENT"),kB=bC(function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u,l){var c;return y(this,n),(c=e.call(this,i,u,l))._rangeInput=t,c._defaultErrorStateMatcher=r,c._injector=a,c._parentForm=o,c._parentFormGroup=s,c._outsideValueChanged=function(){c._validatorOnChange()},c}return b(n,[{key:"ngOnInit",value:function(){var t=this._injector.get(oS,null,Et.Self);t&&(this.ngControl=t)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"isEmpty",value:function(){return 0===this._elementRef.nativeElement.value.length}},{key:"_getPlaceholder",value:function(){return this._elementRef.nativeElement.placeholder}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_onInput",value:function(t){r(i(n.prototype),"_onInput",this).call(this,t),this._rangeInput._handleChildValueChange()}},{key:"_openPopup",value:function(){this._rangeInput._openDatepicker()}},{key:"_getMinDate",value:function(){return this._rangeInput.min}},{key:"_getMaxDate",value:function(){return this._rangeInput.max}},{key:"_getDateFilter",value:function(){return this._rangeInput.dateFilter}},{key:"_parentDisabled",value:function(){return this._rangeInput._groupDisabled}}]),n}(pB);return t.\u0275fac=function(e){return new(e||t)(rs(bB),rs(_u),rs(FC),rs(Uo),rs(lE,8),rs(CE,8),rs(xC,8),rs(SC,8))},t.\u0275dir=Be({type:t,features:[eu]}),t}()),wB=function(){var t=function(t){f(n,t);var e=g(n);function n(t,o,s,u,c,h,d,f){var p,m;return y(this,n),(m=e.call(this,t,o,s,u,c,h,d,f))._startValidator=function(t){var e=m._getValidDateOrNull(m._dateAdapter.deserialize(t.value)),n=m._model?m._model.selection.end:null;return!e||!n||m._dateAdapter.compareDate(e,n)<=0?null:{matStartDateInvalid:{end:n,actual:e}}},m._validator=mS.compose([].concat(l(r((p=a(m),i(n.prototype)),"_getValidators",p).call(p)),[m._startValidator])),m._canEmitChangeEvent=function(t){return t.source!==m._rangeInput._endInput},m}return b(n,[{key:"_getValueFromModel",value:function(t){return t.start}},{key:"_assignValueToModel",value:function(t){if(this._model){var e=new HV(t,this._model.selection.end);this._model.updateSelection(e,this),this._cvaOnChange(t)}}},{key:"_formatValue",value:function(t){r(i(n.prototype),"_formatValue",this).call(this,t),this._rangeInput._handleChildValueChange()}},{key:"getMirrorValue",value:function(){var t=this._elementRef.nativeElement,e=t.value;return e.length>0?e:t.placeholder}}]),n}(kB);return t.\u0275fac=function(e){return new(e||t)(rs(bB),rs(_u),rs(FC),rs(Uo),rs(lE,8),rs(CE,8),rs(xC,8),rs(SC,8))},t.\u0275dir=Be({type:t,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-date-range-input-inner"],hostVars:6,hostBindings:function(t,e){1&t&&gs("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("keydown",(function(t){return e._onKeydown(t)}))("blur",(function(){return e._onBlur()})),2&t&&(Qs("disabled",e.disabled),ts("id",e._rangeInput.id)("aria-haspopup",e._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==e._rangeInput.rangePicker?null:e._rangeInput.rangePicker.opened)&&e._rangeInput.rangePicker.id||null)("min",e._getMinDate()?e._dateAdapter.toIso8601(e._getMinDate()):null)("max",e._getMaxDate()?e._dateAdapter.toIso8601(e._getMaxDate()):null))},features:[pu([{provide:$x,useExisting:t,multi:!0},{provide:dS,useExisting:t,multi:!0}]),eu]}),t}(),CB=function(){var t=function(t){f(n,t);var e=g(n);function n(t,o,s,u,c,h,d,f){var p,m;return y(this,n),(m=e.call(this,t,o,s,u,c,h,d,f))._endValidator=function(t){var e=m._getValidDateOrNull(m._dateAdapter.deserialize(t.value)),n=m._model?m._model.selection.start:null;return!e||!n||m._dateAdapter.compareDate(e,n)>=0?null:{matEndDateInvalid:{start:n,actual:e}}},m._validator=mS.compose([].concat(l(r((p=a(m),i(n.prototype)),"_getValidators",p).call(p)),[m._endValidator])),m._canEmitChangeEvent=function(t){return t.source!==m._rangeInput._startInput},m}return b(n,[{key:"_getValueFromModel",value:function(t){return t.end}},{key:"_assignValueToModel",value:function(t){if(this._model){var e=new HV(this._model.selection.start,t);this._model.updateSelection(e,this),this._cvaOnChange(t)}}},{key:"_onKeydown",value:function(t){8!==t.keyCode||this._elementRef.nativeElement.value||this._rangeInput._startInput.focus(),r(i(n.prototype),"_onKeydown",this).call(this,t)}}]),n}(kB);return t.\u0275fac=function(e){return new(e||t)(rs(bB),rs(_u),rs(FC),rs(Uo),rs(lE,8),rs(CE,8),rs(xC,8),rs(SC,8))},t.\u0275dir=Be({type:t,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-date-range-input-inner"],hostVars:5,hostBindings:function(t,e){1&t&&gs("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("keydown",(function(t){return e._onKeydown(t)}))("blur",(function(){return e._onBlur()})),2&t&&(Qs("disabled",e.disabled),ts("aria-haspopup",e._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==e._rangeInput.rangePicker?null:e._rangeInput.rangePicker.opened)&&e._rangeInput.rangePicker.id||null)("min",e._getMinDate()?e._dateAdapter.toIso8601(e._getMinDate()):null)("max",e._getMaxDate()?e._dateAdapter.toIso8601(e._getMaxDate()):null))},features:[pu([{provide:$x,useExisting:t,multi:!0},{provide:dS,useExisting:t,multi:!0}]),eu]}),t}(),xB=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"_forwardContentValues",value:function(t){r(i(n.prototype),"_forwardContentValues",this).call(this,t);var e=this._datepickerInput;e&&(t.comparisonStart=e.comparisonStart,t.comparisonEnd=e.comparisonEnd)}}]),n}(cB);return t.\u0275fac=function(e){return SB(e||t)},t.\u0275cmp=Me({type:t,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[pu([YV]),eu],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t}(),SB=Vi(xB),EB=0,DB=function(){var t=function(){function t(e,n,i,r,a){if(y(this,t),this._changeDetectorRef=e,this._elementRef=n,this._dateAdapter=r,this._formField=a,this.stateChanges=new U,this.id="mat-date-range-input-".concat(EB++),this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this._stateChanges=new U,!r)throw PV("DateAdapter");this.ngControl=i}return b(t,[{key:"setDescribedByIds",value:function(t){this._ariaDescribedBy=t.length?t.join(" "):null}},{key:"onContainerClick",value:function(){this.focused||this.disabled||(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}},{key:"ngAfterContentInit",value:function(){var t=this;if(!this._startInput)throw Error("mat-date-range-input must contain a matStartDate input");if(!this._endInput)throw Error("mat-date-range-input must contain a matEndDate input");this._model&&this._registerModel(this._model),ht(this._startInput.stateChanges,this._endInput.stateChanges).subscribe((function(){t._stateChanges.next(void 0)}))}},{key:"ngOnChanges",value:function(){this._stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._stateChanges.unsubscribe()}},{key:"getStartValue",value:function(){return this.value?this.value.start:null}},{key:"getThemePalette",value:function(){return this._formField?this._formField.color:void 0}},{key:"getConnectedOverlayOrigin",value:function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}},{key:"_getInputMirrorValue",value:function(){return this._startInput?this._startInput.getMirrorValue():""}},{key:"_shouldHidePlaceholders",value:function(){return!!this._startInput&&!this._startInput.isEmpty()}},{key:"_handleChildValueChange",value:function(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}},{key:"_openDatepicker",value:function(){this._rangePicker&&this._rangePicker.open()}},{key:"_shouldHideSeparator",value:function(){return(!this._formField||this._formField._hideControlPlaceholder())&&this.empty}},{key:"_getAriaLabelledby",value:function(){var t=this._formField;return t&&t._hasFloatingLabel()?t._labelId:null}},{key:"_getValidDateOrNull",value:function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}},{key:"_revalidate",value:function(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}},{key:"_registerModel",value:function(t){this._startInput&&this._startInput._registerModel(t),this._endInput&&this._endInput._registerModel(t)}},{key:"value",get:function(){return this._model?this._model.selection:null}},{key:"shouldLabelFloat",get:function(){return this.focused||!this.empty}},{key:"placeholder",get:function(){var t,e,n=(null===(t=this._startInput)||void 0===t?void 0:t._getPlaceholder())||"",i=(null===(e=this._endInput)||void 0===e?void 0:e._getPlaceholder())||"";return n||i?"".concat(n," ").concat(this.separator," ").concat(i):""}},{key:"rangePicker",get:function(){return this._rangePicker},set:function(t){t&&(this._model=t._registerInput(this),this._rangePicker=t,this._registerModel(this._model))}},{key:"required",get:function(){return!!this._required},set:function(t){this._required=Kg(t)}},{key:"dateFilter",get:function(){return this._dateFilter},set:function(t){this._dateFilter=t,this._revalidate()}},{key:"min",get:function(){return this._min},set:function(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._revalidate()}},{key:"max",get:function(){return this._max},set:function(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._revalidate()}},{key:"disabled",get:function(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled},set:function(t){var e=Kg(t);e!==this._groupDisabled&&(this._groupDisabled=e,this._stateChanges.next(void 0))}},{key:"errorState",get:function(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}},{key:"empty",get:function(){var t=!!this._startInput&&this._startInput.isEmpty(),e=!!this._endInput&&this._endInput.isEmpty();return t&&e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(So),rs(_u),rs(iS,10),rs(xC,8),rs(KI,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-date-range-input"]],contentQueries:function(t,e,n){var i;1&t&&(Fl(n,wB,!0),Fl(n,CB,!0)),2&t&&(Tl(i=Vl())&&(e._startInput=i.first),Tl(i=Vl())&&(e._endInput=i.first))},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:5,hostBindings:function(t,e){2&t&&(ts("id",null)("aria-labelledby",e._getAriaLabelledby())("aria-describedby",e._ariaDescribedBy),Ns("mat-date-range-input-hide-placeholders",e._shouldHidePlaceholders()))},inputs:{separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled"},exportAs:["matDateRangeInput"],features:[pu([{provide:PI,useExisting:t},{provide:bB,useExisting:t}]),Qe],ngContentSelectors:MV,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(t,e){1&t&&(Ss(RV),us(0,"div",0),gs("cdkFocusChange",(function(t){return e.focused=null!==t})),us(1,"div",1),Es(2),us(3,"span",2),Ks(4),ls(),ls(),us(5,"span",3),Ks(6),ls(),us(7,"div",4),Es(8,1),ls(),ls()),2&t&&(Yr(4),Zs(e._getInputMirrorValue()),Yr(1),Ns("mat-date-range-input-separator-hidden",e._shouldHideSeparator()),Yr(1),Zs(e.separator))},directives:[Db],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner::-ms-clear,.mat-date-range-input-inner::-ms-reveal{display:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"],encapsulation:2,changeDetection:0}),t}(),AB=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[FV,sB,{provide:KV,useClass:ZV}],imports:[[Wd,Bx,Ox,Z_,Ib,h_],Qy]}),t}(),IB=["button"],OB=["*"],TB=new re("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),RB=new re("MatButtonToggleGroup"),MB={provide:$x,useExisting:Ht((function(){return LB})),multi:!0},PB=0,FB=function t(e,n){y(this,t),this.source=e,this.value=n},LB=function(){var t=function(){function t(e,n){y(this,t),this._changeDetector=e,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=function(){},this._onTouched=function(){},this._name="mat-button-toggle-group-".concat(PB++),this.valueChange=new bl,this.change=new bl,this.appearance=n&&n.appearance?n.appearance:"standard"}return b(t,[{key:"ngOnInit",value:function(){this._selectionModel=new Yy(this.multiple,void 0,!1)}},{key:"ngAfterContentInit",value:function(){var t;(t=this._selectionModel).select.apply(t,l(this._buttonToggles.filter((function(t){return t.checked}))))}},{key:"writeValue",value:function(t){this.value=t,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_emitChangeEvent",value:function(){var t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,n=new FB(e,this.value);this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}},{key:"_syncButtonToggle",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):r=!0,r?Promise.resolve().then((function(){return n._updateModelValue(i)})):this._updateModelValue(i)}},{key:"_isSelected",value:function(t){return this._selectionModel&&this._selectionModel.isSelected(t)}},{key:"_isPrechecked",value:function(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some((function(e){return null!=t.value&&e===t.value})):t.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this._rawValue=t,this._buttonToggles)if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),t.forEach((function(t){return e._selectValue(t)}))}else this._clearSelection(),this._selectValue(t)}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach((function(t){return t.checked=!1}))}},{key:"_selectValue",value:function(t){var e=this._buttonToggles.find((function(e){return null!=e.value&&e.value===t}));e&&(e.checked=!0,this._selectionModel.select(e))}},{key:"_updateModelValue",value:function(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}},{key:"name",get:function(){return this._name},set:function(t){var e=this;this._name=t,this._buttonToggles&&this._buttonToggles.forEach((function(t){t.name=e._name,t._markForCheck()}))}},{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=Kg(t)}},{key:"value",get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map((function(t){return t.value})):t[0]?t[0].value:void 0},set:function(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}},{key:"selected",get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=Kg(t)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Kg(t),this._buttonToggles&&this._buttonToggles.forEach((function(t){return t._markForCheck()}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(So),rs(TB,8))},t.\u0275dir=Be({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,VB,!0),2&t&&Tl(i=Vl())&&(e._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(ts("aria-disabled",e.disabled),Ns("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[pu([MB,{provide:RB,useExisting:t}])]}),t}(),NB=yC((function t(){y(this,t)})),VB=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s){var u;y(this,n),(u=e.call(this))._changeDetectorRef=i,u._elementRef=r,u._focusMonitor=a,u._isSingleSelector=!1,u._checked=!1,u.ariaLabelledby=null,u._disabled=!1,u.change=new bl;var l=Number(o);return u.tabIndex=l||0===l?l:null,u.buttonToggleGroup=t,u.appearance=s&&s.appearance?s.appearance:"standard",u}return b(n,[{key:"ngOnInit",value:function(){var t=this.buttonToggleGroup;this._isSingleSelector=t&&!t.multiple,this.id=this.id||"mat-button-toggle-".concat(PB++),this._isSingleSelector&&(this.name=t.name),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(t){this._buttonElement.nativeElement.focus(t)}},{key:"_onButtonClick",value:function(){var t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new FB(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(t){this._appearance=t}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(t){var e=Kg(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(t){this._disabled=Kg(t)}}]),n}(NB);return t.\u0275fac=function(e){return new(e||t)(rs(RB,8),rs(So),rs(_u),rs(Sb),as("tabindex"),rs(TB,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&Ml(IB,!0),2&t&&Tl(n=Vl())&&(e._buttonElement=n.first)},hostAttrs:[1,"mat-button-toggle"],hostVars:11,hostBindings:function(t,e){1&t&&gs("focus",(function(){return e.focus()})),2&t&&(ts("tabindex",-1)("id",e.id)("name",null),Ns("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[eu],ngContentSelectors:OB,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(Ss(),us(0,"button",0,1),gs("click",(function(){return e._onButtonClick()})),us(2,"div",2),Es(3),ls(),ls(),cs(4,"div",3),cs(5,"div",4)),2&t){var n=is(1);os("id",e.buttonId)("disabled",e.disabled||null),ts("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Yr(5),os("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[qC],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),t}(),BB=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[mC,GC],mC]}),t}();function jB(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Edit rule"),ls())}function zB(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New rule"),ls())}function HB(t,e){if(1&t&&(us(0,"mat-option",22),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.value," ")}}function UB(t,e){if(1&t&&(us(0,"mat-option",22),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.value," ")}}function WB(t,e){if(1&t&&(us(0,"mat-button-toggle",22),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.value," ")}}function qB(t,e){if(1&t){var n=ps();us(0,"div",23),us(1,"span",24),us(2,"uds-translate"),Ks(3,"Weekdays"),ls(),ls(),us(4,"mat-button-toggle-group",25),gs("ngModelChange",(function(t){return xn(n),Cs().wDays=t})),ns(5,WB,2,2,"mat-button-toggle",8),ls(),ls()}if(2&t){var i=Cs();Yr(4),os("ngModel",i.wDays),Yr(1),os("ngForOf",i.weekDays)}}function GB(t,e){if(1&t){var n=ps();us(0,"mat-form-field",9),us(1,"mat-label"),us(2,"uds-translate"),Ks(3,"Repeat every"),ls(),ls(),us(4,"input",6),gs("ngModelChange",(function(t){return xn(n),Cs().rule.interval=t})),ls(),us(5,"div",26),Ks(6),ls(),ls()}if(2&t){var i=Cs();Yr(4),os("ngModel",i.rule.interval),Yr(2),$s("\xa0",i.frequency(),"")}}var YB={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")]},KB={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},ZB=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")];function $B(t,e){void 0===e&&(e=!1);for(var n=new Array,i=0;i<7;i++)1&t&&n.push(ZB[i].substr(0,e?100:3)),t>>=1;return n.length?n.join(", "):django.gettext("(no days)")}var XB=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.dunits=Object.keys(KB).map((function(t){return{id:t,value:KB[t]}})),this.freqs=Object.keys(YB).map((function(t){return{id:t,value:YB[t][2]}})),this.weekDays=ZB.map((function(t,e){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+KB[this.rule.duration_unit]:django.gettext("with no duration")}return t.replace("$FIELD",n)},t.prototype.save=function(){var t=this;this.rules.save(this.rule).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-calendar-rule"]],decls:73,vars:21,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(t,e){if(1&t&&(us(0,"h4",0),ns(1,jB,2,0,"uds-translate",1),ns(2,zB,2,0,"uds-translate",1),ls(),us(3,"mat-dialog-content"),us(4,"div",2),us(5,"mat-form-field"),us(6,"mat-label"),us(7,"uds-translate"),Ks(8,"Name"),ls(),ls(),us(9,"input",3),gs("ngModelChange",(function(t){return e.rule.name=t})),ls(),ls(),us(10,"mat-form-field"),us(11,"mat-label"),us(12,"uds-translate"),Ks(13,"Comments"),ls(),ls(),us(14,"input",3),gs("ngModelChange",(function(t){return e.rule.comments=t})),ls(),ls(),us(15,"h3"),us(16,"uds-translate"),Ks(17,"Event"),ls(),ls(),us(18,"mat-form-field",4),us(19,"mat-label"),us(20,"uds-translate"),Ks(21,"Start time"),ls(),ls(),us(22,"input",5),gs("ngModelChange",(function(t){return e.startTime=t})),ls(),ls(),us(23,"mat-form-field",4),us(24,"mat-label"),us(25,"uds-translate"),Ks(26,"Duration"),ls(),ls(),us(27,"input",6),gs("ngModelChange",(function(t){return e.rule.duration=t})),ls(),ls(),us(28,"mat-form-field",4),us(29,"mat-label"),us(30,"uds-translate"),Ks(31,"Duration units"),ls(),ls(),us(32,"mat-select",7),gs("ngModelChange",(function(t){return e.rule.duration_unit=t})),ns(33,HB,2,2,"mat-option",8),ls(),ls(),us(34,"h3"),Ks(35," Repetition "),ls(),us(36,"mat-form-field",9),us(37,"mat-label"),us(38,"uds-translate"),Ks(39," Start date "),ls(),ls(),us(40,"input",10),gs("ngModelChange",(function(t){return e.startDate=t})),ls(),cs(41,"mat-datepicker-toggle",11),cs(42,"mat-datepicker",null,12),ls(),us(44,"mat-form-field",9),us(45,"mat-label"),us(46,"uds-translate"),Ks(47," Repeat until date "),ls(),ls(),us(48,"input",13),gs("ngModelChange",(function(t){return e.endDate=t})),ls(),cs(49,"mat-datepicker-toggle",11),cs(50,"mat-datepicker",null,14),ls(),us(52,"div",15),us(53,"mat-form-field",9),us(54,"mat-label"),us(55,"uds-translate"),Ks(56,"Frequency"),ls(),ls(),us(57,"mat-select",16),gs("ngModelChange",(function(t){return e.rule.frequency=t}))("valueChange",(function(){return e.rule.interval=1})),ns(58,UB,2,2,"mat-option",8),ls(),ls(),ns(59,qB,6,2,"div",17),ns(60,GB,7,2,"mat-form-field",18),ls(),us(61,"h3"),us(62,"uds-translate"),Ks(63,"Summary"),ls(),ls(),us(64,"div",19),Ks(65),ls(),ls(),ls(),us(66,"mat-dialog-actions"),us(67,"button",20),us(68,"uds-translate"),Ks(69,"Cancel"),ls(),ls(),us(70,"button",21),gs("click",(function(){return e.save()})),us(71,"uds-translate"),Ks(72,"Ok"),ls(),ls(),ls()),2&t){var n=is(43),i=is(51);Yr(1),os("ngIf",e.rule.id),Yr(1),os("ngIf",!e.rule.id),Yr(7),os("ngModel",e.rule.name),Yr(5),os("ngModel",e.rule.comments),Yr(8),os("ngModel",e.startTime),Yr(5),os("ngModel",e.rule.duration),Yr(5),os("ngModel",e.rule.duration_unit),Yr(1),os("ngForOf",e.dunits),Yr(7),os("matDatepicker",n)("ngModel",e.startDate),Yr(1),os("for",n),Yr(7),os("matDatepicker",i)("ngModel",e.endDate)("placeholder",e.FOREVER_STRING),Yr(1),os("for",i),Yr(8),os("ngModel",e.rule.frequency),Yr(1),os("ngForOf",e.freqs),Yr(1),os("ngIf","WEEKDAYS"===e.rule.frequency),Yr(1),os("ngIf","WEEKDAYS"!==e.rule.frequency),Yr(5),$s(" ",e.summary()," "),Yr(5),os("disabled",null!==e.updateRuleData()||""===e.rule.name)}},directives:[Ex,ld,Dx,ZI,BI,jx,PR,eS,uS,gE,wS,mO,sd,gB,_B,WI,hB,Ax,Nx,Sx,ox,LB,VB],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:rgba(35,35,133,.5);color:#fff}"]}),t}();function QB(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Rules"),ls())}function JB(t,e){if(1&t){var n=ps();us(0,"div",6),us(1,"div",7),us(2,"mat-tab-group",8),us(3,"mat-tab"),ns(4,QB,2,0,"ng-template",9),us(5,"div",10),us(6,"uds-table",11),gs("newAction",(function(t){return xn(n),Cs().onNewRule(t)}))("editAction",(function(t){return xn(n),Cs().onEditRule(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteRule(t)})),ls(),ls(),ls(),ls(),ls(),ls()}if(2&t){var i=Cs();Yr(2),os("@.disabled",!0),Yr(4),os("rest",i.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","calendars-d-rules"+i.calendar.id)}}var tj=function(t){return["/pools","calendars",t]},ej=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(e).subscribe((function(e){t.calendar=e,t.calendarRules=t.rest.calendars.detail(e.id,"rules")}))},t.prototype.onNewRule=function(t){XB.launch(this.api,this.calendarRules).subscribe((function(){return t.table.overview()}))},t.prototype.onEditRule=function(t){XB.launch(this.api,this.calendarRules,t.table.selection.selected[0]).subscribe((function(){return t.table.overview()}))},t.prototype.onDeleteRule=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar rule"))},t.prototype.processElement=function(t){!function(t){t.interval="WEEKDAYS"===t.frequency?$B(t.interval):t.interval+" "+YB[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+KB[t.duration_unit]}(t)},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","newAction","editAction","deleteAction"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"a",2),us(3,"i",3),Ks(4,"arrow_back"),ls(),ls(),Ks(5," \xa0"),cs(6,"img",4),Ks(7),ls(),ns(8,JB,7,6,"div",5),ls()),2&t&&(Yr(2),os("routerLink",cl(4,tj,e.calendar?e.calendar.id:"")),Yr(4),os("src",e.api.staticURL("admin/img/icons/calendars.png"),Er),Yr(1),$s(" ",null==e.calendar?null:e.calendar.name," "),Yr(1),os("ngIf",e.calendar))},directives:[xg,ld,TD,kD,gD,TP,jx],styles:[".mat-column-end, .mat-column-frequency, .mat-column-start{max-width:9rem} .mat-column-duration, .mat-column-interval{max-width:11rem}"]}),t}(),nj='event'+django.gettext("Set time mark")+"",ij=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"timemark",html:nj,type:gA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New account"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit account"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account"))},t.prototype.onTimeMark=function(t){var e=this,n=t.table.selection.selected[0];this.api.gui.yesno(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).subscribe((function(i){i&&e.rest.accounts.timemark(n.id).subscribe((function(){e.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()}))}))},t.prototype.onDetail=function(t){this.api.navigation.gotoAccountDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("account"))},t.prototype.processElement=function(t){t.time_mark=78793200===t.time_mark?django.gettext("No time mark"):sM("SHORT_DATE_FORMAT",t.time_mark)},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-accounts"]],decls:1,vars:6,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(us(0,"uds-table",0),gs("customButtonAction",(function(t){return e.onTimeMark(t)}))("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),ls()),2&t&&os("rest",e.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("onItem",e.processElement)},directives:[TP],styles:[""]}),t}();function rj(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Account usage"),ls())}function aj(t,e){if(1&t){var n=ps();us(0,"div",6),us(1,"div",7),us(2,"mat-tab-group",8),us(3,"mat-tab"),ns(4,rj,2,0,"ng-template",9),us(5,"div",10),us(6,"uds-table",11),gs("deleteAction",(function(t){return xn(n),Cs().onDeleteUsage(t)})),ls(),ls(),ls(),ls(),ls(),ls()}if(2&t){var i=Cs();Yr(2),os("@.disabled",!0),Yr(4),os("rest",i.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","account-d-usage"+i.account.id)}}var oj=function(t){return["/pools","accounts",t]},sj=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(e).subscribe((function(e){t.account=e,t.accountUsage=t.rest.accounts.detail(e.id,"usage")}))},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account usage"))},t.prototype.processElement=function(t){t.running=this.api.yesno(t.running)},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"a",2),us(3,"i",3),Ks(4,"arrow_back"),ls(),ls(),Ks(5," \xa0"),cs(6,"img",4),Ks(7),ls(),ns(8,aj,7,6,"div",5),ls()),2&t&&(Yr(2),os("routerLink",cl(4,oj,e.account?e.account.id:"")),Yr(4),os("src",e.api.staticURL("admin/img/icons/accounts.png"),Er),Yr(1),$s(" ",null==e.account?null:e.account.name," "),Yr(1),os("ngIf",e.account))},directives:[xg,ld,TD,kD,gD,TP,jx],styles:[""]}),t}();function uj(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New image for"),ls())}function lj(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Edit for"),ls())}var cj=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.preview="",this.image={id:void 0,data:"",name:""},i.image&&(this.image.id=i.image.id)}return t.launch=function(e,n){void 0===n&&(n=null);var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave},t.prototype.onFileChanged=function(t){var e=this,n=t.target.files[0];if(n.size>262144)this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));else if(["image/jpeg","image/png","image/gif"].includes(n.type)){var i=new FileReader;i.onload=function(t){var r=i.result;e.preview=r,e.image.data=r.substr(r.indexOf("base64,")+7),e.image.name||(e.image.name=n.name)},i.readAsDataURL(n)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))},t.prototype.ngOnInit=function(){var t=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe((function(e){switch(t.image=e,t.image.data.substr(2)){case"iV":t.preview="data:image/png;base64,"+t.image.data;break;case"/9":t.preview="data:image/jpeg;base64,"+t.image.data;break;default:t.preview="data:image/gif;base64,"+t.image.data}}))},t.prototype.background=function(){var t=this.api.config.image_size[0],e=this.api.config.image_size[1],n={"width.px":t,"height.px":e,"background-size":t+"px "+e+"px"};return this.preview&&(n["background-image"]="url("+this.preview+")"),n},t.prototype.save=function(){var t=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe((function(){t.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){if(1&t){var n=ps();us(0,"h4",0),ns(1,uj,2,0,"uds-translate",1),ns(2,lj,2,0,"uds-translate",1),ls(),us(3,"mat-dialog-content"),us(4,"div",2),us(5,"mat-form-field"),us(6,"mat-label"),us(7,"uds-translate"),Ks(8,"Image name"),ls(),ls(),us(9,"input",3),gs("ngModelChange",(function(t){return e.image.name=t})),ls(),ls(),us(10,"input",4,5),gs("change",(function(t){return e.onFileChanged(t)})),ls(),us(12,"mat-form-field"),us(13,"mat-label"),us(14,"uds-translate"),Ks(15,"Image (click to change)"),ls(),ls(),us(16,"input",6),gs("click",(function(){return xn(n),is(11).click()})),ls(),us(17,"div",7),gs("click",(function(){return xn(n),is(11).click()})),cs(18,"div",8),ls(),ls(),us(19,"div",9),us(20,"uds-translate"),Ks(21,' For optimal results, use "squared" images. '),ls(),us(22,"uds-translate"),Ks(23," The image will be resized on upload to "),ls(),Ks(24),ls(),ls(),ls(),us(25,"mat-dialog-actions"),us(26,"button",10),us(27,"uds-translate"),Ks(28,"Cancel"),ls(),ls(),us(29,"button",11),gs("click",(function(){return e.save()})),us(30,"uds-translate"),Ks(31,"Ok"),ls(),ls(),ls()}2&t&&(Yr(1),os("ngIf",!e.image.id),Yr(1),os("ngIf",e.image.id),Yr(7),os("ngModel",e.image.name),Yr(7),os("hidden",!0),Yr(2),os("ngStyle",e.background()),Yr(6),Xs(" ",e.api.config.image_size[0],"x",e.api.config.image_size[1]," "))},directives:[Ex,ld,Dx,ZI,BI,jx,PR,eS,uS,gE,yd,Ax,Nx,Sx],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%], .preview[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.image-preview[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.3)}"]}),t}(),hj=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){cj.launch(this.api).subscribe((function(){return t.table.overview()}))},t.prototype.onEdit=function(t){cj.launch(this.api,t.table.selection.selected[0]).subscribe((function(){return t.table.overview()}))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete image"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("image"))},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-gallery"]],decls:1,vars:4,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls()),2&t&&os("rest",e.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)},directives:[TP],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),t}(),dj='assessment'+django.gettext("Generate report")+"",fj=function(){function t(t,e){this.rest=t,this.api=e,this.customButtons=[{id:"genreport",html:dj,type:gA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},t.prototype.generateReport=function(t){var e=this,n=new bl;n.subscribe((function(n){e.api.gui.snackbar.open(django.gettext("Generating report...")),e.rest.reports.save(n,t.table.selection.selected[0].id).subscribe((function(t){for(var n=t.encoded?window.atob(t.data):t.data,i=n.length,r=new Uint8Array(i),a=0;a div[_ngcontent-%COMP%]{width:50%}.mat-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),t}(),Tj=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-actor-tokens"]],decls:2,vars:3,consts:[["icon","maleta",3,"rest","multiSelect","allowExport"]],template:function(t,e){1&t&&(us(0,"div"),cs(1,"uds-table",0),ls()),2&t&&(Yr(1),os("rest",e.rest.actorToken)("multiSelect",!0)("allowExport",!0))},directives:[TP],styles:[""]}),t}(),Rj=[{path:"",canActivate:[jA],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:dI},{path:"providers",component:FP},{path:"providers/:provider/detail",component:aF},{path:"providers/:provider",component:FP},{path:"providers/:provider/detail/:service",component:aF},{path:"authenticators",component:oF},{path:"authenticators/:authenticator/detail",component:ML},{path:"authenticators/:authenticator",component:oF},{path:"authenticators/:authenticator/detail/groups/:group",component:ML},{path:"authenticators/:authenticator/detail/users/:user",component:ML},{path:"osmanagers",component:PL},{path:"osmanagers/:osmanager",component:PL},{path:"transports",component:FL},{path:"transports/:transport",component:FL},{path:"networks",component:LL},{path:"networks/:network",component:LL},{path:"proxies",component:NL},{path:"proxies/:proxy",component:NL},{path:"pools/service-pools",component:VL},{path:"pools/service-pools/:pool",component:VL},{path:"pools/service-pools/:pool/detail",component:QN},{path:"pools/meta-pools",component:JN},{path:"pools/meta-pools/:metapool",component:JN},{path:"pools/meta-pools/:metapool/detail",component:pV},{path:"pools/pool-groups",component:mV},{path:"pools/pool-groups/:poolgroup",component:mV},{path:"pools/calendars",component:vV},{path:"pools/calendars/:calendar",component:vV},{path:"pools/calendars/:calendar/detail",component:ej},{path:"pools/accounts",component:ij},{path:"pools/accounts/:account",component:ij},{path:"pools/accounts/:account/detail",component:sj},{path:"tools/gallery",component:hj},{path:"tools/gallery/:image",component:hj},{path:"tools/reports",component:fj},{path:"tools/reports/:report",component:fj},{path:"tools/configuration",component:Oj},{path:"tools/actor_tokens",component:Tj}]},{path:"**",redirectTo:"summary"}],Mj=function(){function t(){}return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Vg.forRoot(Rj)],Vg]}),t}(),Pj=["input"],Fj=function(){return{enterDuration:150}},Lj=["*"],Nj=new re("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),Vj=new re("mat-checkbox-click-action"),Bj=0,jj={provide:$x,useExisting:Ht((function(){return Uj})),multi:!0},zj=function t(){y(this,t)},Hj=_C(gC(yC(vC((function t(e){y(this,t),this._elementRef=e}))))),Uj=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u,l){var c;return y(this,n),(c=e.call(this,t))._changeDetectorRef=i,c._focusMonitor=r,c._ngZone=a,c._clickAction=s,c._animationMode=u,c._options=l,c.ariaLabel="",c.ariaLabelledby=null,c._uniqueId="mat-checkbox-".concat(++Bj),c.id=c._uniqueId,c.labelPosition="after",c.name=null,c.change=new bl,c.indeterminateChange=new bl,c._onTouched=function(){},c._currentAnimationClass="",c._currentCheckState=0,c._controlValueAccessorChangeFn=function(){},c._checked=!1,c._disabled=!1,c._indeterminate=!1,c._options=c._options||{},c._options.color&&(c.color=c._options.color),c.tabIndex=parseInt(o)||0,c._clickAction=c._clickAction||c._options.clickAction,c}return b(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){e||Promise.resolve().then((function(){t._onTouched(),t._changeDetectorRef.markForCheck()}))})),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(t){var e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){n.classList.remove(i)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var t=new zj;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(t){var e=this;t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,t,e)}},{key:"_onInteractionEvent",value:function(t){t.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(t,e){if("NoopAnimations"===this._animationMode)return"";var n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(t){var e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(t){this._required=Kg(t)}},{key:"checked",get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){var e=Kg(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=Kg(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),n}(Hj);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(Sb),rs(cc),as("tabindex"),rs(Vj,8),rs(iC,8),rs(Nj,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(Ml(Pj,!0),Ml(qC,!0)),2&t&&(Tl(n=Vl())&&(e._inputElement=n.first),Tl(n=Vl())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(Qs("id",e.id),ts("tabindex",null),Ns("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[pu([jj]),eu],ngContentSelectors:Lj,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(Ss(),us(0,"label",0,1),us(2,"div",2),us(3,"input",3,4),gs("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),ls(),us(5,"div",5),cs(6,"div",6),ls(),cs(7,"div",7),us(8,"div",8),Xn(),us(9,"svg",9),cs(10,"path",10),ls(),Qn(),cs(11,"div",11),ls(),ls(),us(12,"span",12,13),gs("cdkObserveContent",(function(){return e._onLabelTextChange()})),us(14,"span",14),Ks(15,"\xa0"),ls(),Es(16),ls(),ls()),2&t){var n=is(1),i=is(13);ts("for",e.inputId),Yr(2),Ns("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),Yr(1),os("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),ts("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),Yr(2),os("matRippleTrigger",n)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",ll(19,Fj))}},directives:[qC,nb],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t}(),Wj={provide:dS,useExisting:Ht((function(){return qj})),multi:!0},qj=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(PE);return t.\u0275fac=function(e){return Gj(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[pu([Wj]),eu]}),t}(),Gj=Vi(qj),Yj=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),Kj=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[GC,mC,ib,Yj],mC,Yj]}),t}(),Zj=["*"],$j=new re("MatChipRemove"),Xj=new re("MatChipAvatar"),Qj=new re("MatChipTrailingIcon"),Jj=_C(gC(yC((function t(e){y(this,t),this._elementRef=e})),"primary"),-1),tz=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[pu([{provide:Xj,useExisting:t}])]}),t}(),ez=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[pu([{provide:Qj,useExisting:t}])]}),t}(),nz=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o,s,u,l,c){var h;return y(this,n),(h=e.call(this,t))._elementRef=t,h._ngZone=i,h._changeDetectorRef=u,h._hasFocus=!1,h.chipListSelectable=!0,h._chipListMultiple=!1,h._chipListDisabled=!1,h._selected=!1,h._selectable=!0,h._disabled=!1,h._removable=!0,h._onFocus=new U,h._onBlur=new U,h.selectionChange=new bl,h.destroyed=new bl,h.removed=new bl,h._addHostClassName(),h._chipRippleTarget=(c||document).createElement("div"),h._chipRippleTarget.classList.add("mat-chip-ripple"),h._elementRef.nativeElement.appendChild(h._chipRippleTarget),h._chipRipple=new zC(a(h),i,h._chipRippleTarget,r),h._chipRipple.setupTriggerEvents(t),h.rippleConfig=o||{},h._animationsDisabled="NoopAnimations"===s,h.tabIndex=null!=l&&parseInt(l)||-1,h}return b(n,[{key:"_addHostClassName",value:function(){var t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}},{key:"toggleSelected",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.asObservable().pipe(Lp(1)).subscribe((function(){t._ngZone.run((function(){t._hasFocus=!1,t._onBlur.next({chip:t})}))}))}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}},{key:"_markForCheck",value:function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=Kg(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=Kg(t)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(t){this._disabled=Kg(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=Kg(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),n}(Jj);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(cc),rs(Py),rs(WC,8),rs(iC,8),rs(So),as("tabindex"),rs(Wc,8))},t.\u0275dir=Be({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){var i;1&t&&(Fl(n,Xj,!0),Fl(n,Qj,!0),Fl(n,$j,!0)),2&t&&(Tl(i=Vl())&&(e.avatar=i.first),Tl(i=Vl())&&(e.trailingIcon=i.first),Tl(i=Vl())&&(e.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&gs("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(ts("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),Ns("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[eu]}),t}(),iz=function(){var t=function(){function t(e,n){y(this,t),this._parentChip=e,n&&"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return b(t,[{key:"_handleClick",value:function(t){var e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(nz),rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&gs("click",(function(t){return e._handleClick(t)}))},features:[pu([{provide:$j,useExisting:t}])]}),t}(),rz=new re("mat-chips-default-options"),az=bC((function t(e,n,i,r){y(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r})),oz=0,sz=function t(e,n){y(this,t),this.source=e,this.value=n},uz=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o,s,u,l){var c;return y(this,n),(c=e.call(this,u,o,s,l))._elementRef=t,c._changeDetectorRef=i,c._dir=r,c.ngControl=l,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new U,c._uid="mat-chip-list-".concat(oz++),c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(t,e){return t===e},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new bl,c.valueChange=new bl,c.ngControl&&(c.ngControl.valueAccessor=a(c)),c}return b(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new hb(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Cy(this._destroyed)).subscribe((function(e){return t._keyManager.withHorizontalOrientation(e)})),this._keyManager.tabOut.pipe(Cy(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.chips.changes.pipe($p(null),Cy(this._destroyed)).subscribe((function(){t.disabled&&Promise.resolve().then((function(){t._syncChipsState()})),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()}))}},{key:"ngOnInit",value:function(){this._selectionModel=new Yy(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value:function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(36===t.keyCode?(this._keyManager.setFirstItemActive(),t.preventDefault()):35===t.keyCode?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(t){return t>=0&&t1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach((function(t){return t.deselect()})),Array.isArray(t))t.forEach((function(t){return e._selectValue(t,n)})),this._sortValues();else{var i=this._selectValue(t,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find((function(n){return null!=n.value&&e._compareWith(n.value,t)}));return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then((function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())}))}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach((function(e){e!==t&&e.deselect()})),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach((function(e){e.selected&&t._selectionModel.select(e)})),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.change.emit(new sz(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout((function(){t.focused||t._markAsTouched()})):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout((function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()})))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe((function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach((function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()})),e.isUserInput&&t._propagateChanges()}))}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe((function(e){var n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&t._keyManager.updateActiveItem(n),t.stateChanges.next()})),this._chipBlurSubscription=this.chipBlurChanges.subscribe((function(){t._blur(),t.stateChanges.next()}))}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe((function(e){var n=e.chip,i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&n._hasFocus&&(t._lastDestroyedChipIndex=i)}))}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some((function(t){return t._hasFocus}))}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach((function(e){e._chipListDisabled=t._disabled,e._chipListMultiple=t.multiple}))}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=Kg(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=Kg(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=Kg(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=Kg(t),this.chips&&this.chips.forEach((function(t){return t.chipListSelectable=e._selectable}))}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return ht.apply(void 0,l(this.chips.map((function(t){return t.selectionChange}))))}},{key:"chipFocusChanges",get:function(){return ht.apply(void 0,l(this.chips.map((function(t){return t._onFocus}))))}},{key:"chipBlurChanges",get:function(){return ht.apply(void 0,l(this.chips.map((function(t){return t._onBlur}))))}},{key:"chipRemoveChanges",get:function(){return ht.apply(void 0,l(this.chips.map((function(t){return t.destroyed}))))}}]),n}(az);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(Hy,8),rs(lE,8),rs(CE,8),rs(FC),rs(oS,10))},t.\u0275cmp=Me({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,nz,!0),2&t&&Tl(i=Vl())&&(e.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&gs("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(Qs("id",e._uid),ts("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),Ns("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[pu([{provide:PI,useExisting:t}]),eu],ngContentSelectors:Zj,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(Ss(),us(0,"div",0),Es(1),ls())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t}(),lz=0,cz=function(){var t=function(){function t(e,n){y(this,t),this._elementRef=e,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new bl,this.placeholder="",this.id="mat-chip-list-input-".concat(lz++),this._disabled=!1,this._inputElement=this._elementRef.nativeElement}return b(t,[{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"_keydown",value:function(t){t&&9===t.keyCode&&!m_(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this._inputElement.focus(t)}},{key:"_isSeparatorKey",value:function(t){if(m_(t))return!1;var e=this.separatorKeyCodes,n=t.keyCode;return Array.isArray(e)?e.indexOf(n)>-1:e.has(n)}},{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=Kg(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=Kg(t)}},{key:"empty",get:function(){return!this._inputElement.value}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(rz))},t.\u0275dir=Be({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&gs("keydown",(function(t){return e._keydown(t)}))("blur",(function(){return e._blur()}))("focus",(function(){return e._focus()}))("input",(function(){return e._onInput()})),2&t&&(Qs("id",e.id),ts("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Qe]}),t}(),hz={separatorKeyCodes:[13]},dz=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[FC,{provide:rz,useValue:hz}]}),t}(),fz=0,pz=new re("CdkAccordion"),mz=function(){var t=function(){function t(){y(this,t),this._stateChanges=new U,this._openCloseAllActions=new U,this.id="cdk-accordion-".concat(fz++),this._multi=!1}return b(t,[{key:"openAll",value:function(){this._openCloseAll(!0)}},{key:"closeAll",value:function(){this._openCloseAll(!1)}},{key:"ngOnChanges",value:function(t){this._stateChanges.next(t)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_openCloseAll",value:function(t){this.multi&&this._openCloseAllActions.next(t)}},{key:"multi",get:function(){return this._multi},set:function(t){this._multi=Kg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[pu([{provide:pz,useExisting:t}]),Qe]}),t}(),vz=0,gz=function(){var t=function(){function t(e,n,i){var r=this;y(this,t),this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=E.EMPTY,this.closed=new bl,this.opened=new bl,this.destroyed=new bl,this.expandedChange=new bl,this.id="cdk-accordion-child-".concat(vz++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen((function(t,e){r.accordion&&!r.accordion.multi&&r.accordion.id===e&&r.id!==t&&(r.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return b(t,[{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var t=this;return this.accordion._openCloseAllActions.subscribe((function(e){t.disabled||(t.expanded=e)}))}},{key:"expanded",get:function(){return this._expanded},set:function(t){t=Kg(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Kg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(pz,12),rs(So),rs(Ky))},t.\u0275dir=Be({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[pu([{provide:pz,useValue:void 0}])]}),t}(),yz=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),_z=["body"];function bz(t,e){}var kz=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],wz=["mat-expansion-panel-header","*","mat-action-row"];function Cz(t,e){1&t&&cs(0,"span",2),2&t&&os("@indicatorRotate",Cs()._getExpandedState())}var xz=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Sz=["mat-panel-title","mat-panel-description","*"],Ez=new re("MAT_ACCORDION"),Dz={indicatorRotate:Mb("indicatorRotate",[Vb("collapsed, void",Nb({transform:"rotate(0deg)"})),Vb("expanded",Nb({transform:"rotate(180deg)"})),jb("expanded <=> collapsed, void => collapsed",Pb("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:Mb("bodyExpansion",[Vb("collapsed, void",Nb({height:"0px",visibility:"hidden"})),Vb("expanded",Nb({height:"*",visibility:"visible"})),jb("expanded <=> collapsed, void => collapsed",Pb("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},Az=function(){var t=function t(e){y(this,t),this._template=e};return t.\u0275fac=function(e){return new(e||t)(rs(Uu))},t.\u0275dir=Be({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t}(),Iz=0,Oz=new re("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Tz=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u){var l;return y(this,n),(l=e.call(this,t,i,r))._viewContainerRef=a,l._animationMode=s,l._hideToggle=!1,l.afterExpand=new bl,l.afterCollapse=new bl,l._inputChanges=new U,l._headerId="mat-expansion-panel-header-".concat(Iz++),l._bodyAnimationDone=new U,l.accordion=t,l._document=o,l._bodyAnimationDone.pipe(dy((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){"void"!==t.fromState&&("expanded"===t.toState?l.afterExpand.emit():"collapsed"===t.toState&&l.afterCollapse.emit())})),u&&(l.hideToggle=u.hideToggle),l}return b(n,[{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var t=this;this._lazyContent&&this.opened.pipe($p(null),Df((function(){return t.expanded&&!t._portal})),Lp(1)).subscribe((function(){t._portal=new i_(t._lazyContent._template,t._viewContainerRef)}))}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}},{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=Kg(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}}]),n}(gz);return t.\u0275fac=function(e){return new(e||t)(rs(Ez,12),rs(So),rs(Ky),rs(qu),rs(Wc),rs(iC,8),rs(Oz,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,Az,!0),2&t&&Tl(i=Vl())&&(e._lazyContent=i.first)},viewQuery:function(t,e){var n;1&t&&Ml(_z,!0),2&t&&Tl(n=Vl())&&(e._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&Ns("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[pu([{provide:Ez,useValue:void 0}]),eu,Qe],ngContentSelectors:wz,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(Ss(kz),Es(0),us(1,"div",0,1),gs("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),us(3,"div",2),Es(4,1),ns(5,bz,0,0,"ng-template",3),ls(),Es(6,2),ls()),2&t&&(Yr(1),os("@bodyExpansion",e._getExpandedState())("id",e.id),ts("aria-labelledby",e._headerId),Yr(4),os("cdkPortalOutlet",e._portal))},directives:[u_],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Dz.bodyExpansion]},changeDetection:0}),t}(),Rz=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),t}(),Mz=function(){var t=function(){function t(e,n,i,r,a,o){var s=this;y(this,t),this.panel=e,this._element=n,this._focusMonitor=i,this._changeDetectorRef=r,this._animationMode=o,this._parentChangeSubscription=E.EMPTY;var u=e.accordion?e.accordion._stateChanges.pipe(Df((function(t){return!(!t.hideToggle&&!t.togglePosition)}))):yp;this._parentChangeSubscription=ht(e.opened,e.closed,u,e._inputChanges.pipe(Df((function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)})))).subscribe((function(){return s._changeDetectorRef.markForCheck()})),e.closed.pipe(Df((function(){return e._containsFocus()}))).subscribe((function(){return i.focusVia(n,"program")})),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}return b(t,[{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(t){switch(t.keyCode){case 32:case 13:m_(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._element,t,e)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._element).subscribe((function(e){e&&t.panel.accordion&&t.panel.accordion._handleHeaderFocus(t)}))}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}},{key:"disabled",get:function(){return this.panel.disabled}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Tz,1),rs(_u),rs(Sb),rs(So),rs(Oz,8),rs(iC,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&gs("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(ts("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),Ls("height",e._getHeaderHeight()),Ns("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:Sz,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(Ss(xz),us(0,"span",0),Es(1),Es(2,1),Es(3,2),ls(),ns(4,Cz,1,1,"span",1)),2&t&&(Yr(4),os("ngIf",e._showToggle()))},directives:[ld],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[Dz.indicatorRotate]},changeDetection:0}),t}(),Pz=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t}(),Fz=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t}(),Lz=function(){var t=function(t){f(n,t);var e=g(n);function n(){var t;return y(this,n),(t=e.apply(this,arguments))._ownHeaders=new wl,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return b(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe($p(this._headers)).subscribe((function(e){t._ownHeaders.reset(e.filter((function(e){return e.panel.accordion===t}))),t._ownHeaders.notifyOnChanges()})),this._keyManager=new hb(this._ownHeaders).withWrap()}},{key:"_handleHeaderKeydown",value:function(t){var e=t.keyCode,n=this._keyManager;36===e?m_(t)||(n.setFirstItemActive(),t.preventDefault()):35===e?m_(t)||(n.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}},{key:"_handleHeaderFocus",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"hideToggle",get:function(){return this._hideToggle},set:function(t){this._hideToggle=Kg(t)}}]),n}(mz);return t.\u0275fac=function(e){return Nz(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,Mz,!0),2&t&&Tl(i=Vl())&&(e._headers=i)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&Ns("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[pu([{provide:Ez,useExisting:t}]),eu]}),t}(),Nz=Vi(Lz),Vz=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Wd,yz,h_]]}),t}(),Bz=["*",[["mat-toolbar-row"]]],jz=["*","mat-toolbar-row"],zz=gC((function t(e){y(this,t),this._elementRef=e})),Hz=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t}(),Uz=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t))._platform=i,a._document=r,a}return b(n,[{key:"ngAfterViewInit",value:function(){var t=this;tr()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return t._checkToolbarMixedModes()})))}},{key:"_checkToolbarMixedModes",value:function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))})).filter((function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)})).some((function(t){return!(!t.textContent||!t.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()}}]),n}(zz);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Py),rs(Wc))},t.\u0275cmp=Me({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,Hz,!0),2&t&&Tl(i=Vl())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&Ns("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[eu],ngContentSelectors:jz,decls:2,vars:0,template:function(t,e){1&t&&(Ss(Bz),Es(0),Es(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}(),Wz=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[mC],mC]}),t}(),qz=function(){function t(){}return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[{provide:YI,useValue:{floatLabel:"always"}},{provide:CC,useValue:udsData.language}],imports:[Wd,YE,KE,Wz,Bx,HM,SO,Vz,Ox,$I,FR,vO,AB,PC,vR,NO,$O,kM,Kj,UD,dz,BB,WF,bF,LA,WM]}),t}();function Gz(t,e){if(1&t){var n=ps();us(0,"button",6),gs("click",(function(){xn(n);var t=e.$implicit;return Cs().changeLang(t)})),Ks(1),ls()}if(2&t){var i=e.$implicit;Yr(1),Zs(i.name)}}function Yz(t,e){if(1&t&&(us(0,"button",12),us(1,"i",7),Ks(2,"face"),ls(),Ks(3),ls()),2&t){var n=Cs();os("matMenuTriggerFor",is(7)),Yr(3),Zs(n.api.user.user)}}function Kz(t,e){if(1&t&&(us(0,"button",18),Ks(1),us(2,"i",7),Ks(3,"arrow_drop_down"),ls(),ls()),2&t){var n=Cs();os("matMenuTriggerFor",is(7)),Yr(1),$s("",n.api.user.user," ")}}var Zz=function(){function t(t){this.api=t,this.isNavbarCollapsed=!0;var e=t.config.language;this.langs=[];for(var n=0,i=t.config.available_languages;n .mat-button[_ngcontent-%COMP%]{padding-left:1.5rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em 0 0}"]}),t}();function tH(t,e){1&t&&cs(0,"div",1),2&t&&os("innerHTML",Cs().messages,Sr)}var eH=function(){function t(t){this.api=t,this.messages="",this.visible=!1}return t.prototype.ngOnInit=function(){var t=this;if(this.api.notices.length>0){var e='
';this.messages='
'+e+this.api.notices.map((function(t){return t.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")})).join("
"+e)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe((function(){t.visible=!0}))}},t.\u0275fac=function(e){return new(e||t)(rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(t,e){1&t&&ns(0,tH,1,1,"div",0),2&t&&os("ngIf",e.visible)},directives:[ld],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:#4682b4;border-radius:3px;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(70,93,156,.4);box-sizing:border-box;color:#fff;margin:1rem 2rem 0;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),t}(),nH=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,e){1&t&&(us(0,"div"),Ks(1,"\xa9 2012-2020 "),us(2,"a",0),Ks(3,"Virtual Cable S.L.U."),ls(),ls())},styles:[""]}),t}(),iH=function(){function t(){this.title="uds admin"}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-root"]],decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(cs(0,"uds-navbar"),cs(1,"uds-sidebar"),us(2,"div",0),us(3,"div",1),cs(4,"uds-notices"),cs(5,"router-outlet"),ls(),us(6,"div",2),cs(7,"uds-footer"),ls(),ls())},directives:[Zz,Jz,eH,Dg,nH],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 56px - 8px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),t}(),rH=function(t){function e(){var e=t.call(this)||this;return e.itemsPerPageLabel=django.gettext("Items per page"),e}return HA(e,t),e.\u0275prov=It({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(RO),aH=function(){function t(){}return t.prototype.transform=function(t,e){return Array.from(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"iterable",type:t,pure:!0}),t}(),oH=function(){function t(){this.changed=new bl}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:6,consts:[["appearance","standard"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","ngModelChange","change"]],template:function(t,e){1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"input",1),gs("ngModelChange",(function(t){return e.field.value=t}))("change",(function(){return e.changed.emit(e)})),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("maxlength",e.field.gui.length||128))},directives:[ZI,BI,PR,eS,uS,gE,ME,zE],styles:[""]}),t}(),sH=function(){function t(){this.changed=new bl}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"input",1),gs("ngModelChange",(function(t){return e.field.value=t}))("change",(function(){return e.changed.emit(e)})),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly))},directives:[ZI,BI,PR,wS,eS,uS,gE,ME],styles:[""]}),t}(),uH=function(){function t(){this.passwordType="password",this.changed=new bl}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["appearance","standard","floatLabel","always"],["matInput","","autocomplete","off",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"]],template:function(t,e){1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"input",1),gs("ngModelChange",(function(t){return e.field.value=t}))("change",(function(){return e.changed.emit(e)})),ls(),us(4,"a",2),gs("click",(function(){return e.passwordType="text"===e.passwordType?"password":"text"})),us(5,"i",3),Ks(6,"remove_red_eye"),ls(),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("type",e.passwordType))},directives:[ZI,BI,PR,eS,uS,gE,ME,Vx,WI],styles:[""]}),t}(),lH=function(){function t(){}return t.prototype.ngOnInit=function(){""!==this.field.value&&void 0!==this.field.value||(this.field.value=this.field.gui.defvalue)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),cH=function(){function t(){}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","readonly","ngModelChange"]],template:function(t,e){1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"textarea",1),gs("ngModelChange",(function(t){return e.field.value=t})),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",e.field.gui.required)("readonly",e.field.gui.rdonly))},directives:[ZI,BI,PR,eS,uS,gE,ME],styles:[""]}),t}();function hH(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",3),gs("changed",(function(t){return xn(n),Cs().filter=t})),ls()}}function dH(t,e){if(1&t&&(us(0,"mat-option",4),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.text," ")}}var fH=function(){function t(){this.filter="",this.changed=new bl}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>0&&(this.field.value=this.field.gui.values[0].id),this.field.value=""+this.field.value},t.prototype.filteredValues=function(){if(""===this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter((function(e){return e.text.toLocaleLowerCase().includes(t)}))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"mat-select",0),gs("ngModelChange",(function(t){return e.field.value=t}))("valueChange",(function(){return e.changed.emit(e)})),ns(4,hH,1,0,"uds-mat-select-search",1),ns(5,dH,2,2,"mat-option",2),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Yr(1),os("ngIf",e.field.gui.values.length>10),Yr(1),os("ngForOf",e.filteredValues()))},directives:[ZI,BI,mO,uS,gE,ME,ld,sd,jR,ox],styles:[""]}),t}();function pH(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",3),gs("changed",(function(t){return xn(n),Cs().filter=t})),ls()}}function mH(t,e){if(1&t&&(us(0,"mat-option",4),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.text," ")}}var vH=function(){function t(){this.filter="",this.changed=new bl}return t.prototype.ngOnInit=function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach((function(t,e,n){n[e]=""+t.id})):this.field.values=new Array},t.prototype.filteredValues=function(){if(""===this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter((function(e){return e.text.toLocaleLowerCase().includes(t)}))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"mat-select",0),gs("ngModelChange",(function(t){return e.field.values=t}))("valueChange",(function(){return e.changed.emit(e)})),ns(4,pH,1,0,"uds-mat-select-search",1),ns(5,mH,2,2,"mat-option",2),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("ngModel",e.field.values)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Yr(1),os("ngIf",e.field.gui.values.length>10),Yr(1),os("ngForOf",e.filteredValues()))},directives:[ZI,BI,mO,uS,gE,ME,ld,sd,jR,ox],styles:[""]}),t}();function gH(t,e){if(1&t){var n=ps();us(0,"div",12),us(1,"div",13),Ks(2),ls(),us(3,"div",14),Ks(4," \xa0"),us(5,"a",15),gs("click",(function(){xn(n);var t=e.index;return Cs().removeElement(t)})),us(6,"i",16),Ks(7,"close"),ls(),ls(),ls(),ls()}if(2&t){var i=e.$implicit;Yr(2),$s(" ",i," ")}}var yH=function(){function t(t,e,n,i){var r=this;this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.values=[],this.input="",this.onSave=new bl(!0),this.data.values.forEach((function(t){return r.values.push(t)}))}return t.launch=function(e,n,i){var r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:i},disableClose:!0}).componentInstance.onSave},t.prototype.addElements=function(){var t=this;this.input.split(",").forEach((function(e){t.values.push(e)})),this.input=""},t.prototype.checkKey=function(t){"Enter"===t.code&&this.addElements()},t.prototype.removeAll=function(){this.values.length=0},t.prototype.removeElement=function(t){this.values.splice(t,1)},t.prototype.save=function(){var t=this;this.data.values.length=0,this.values.forEach((function(e){return t.data.values.push(e)})),this.onSave.emit(this.values),this.dialogRef.close()},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","",1,"material-icons",3,"click"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(us(0,"h4",0),Ks(1),ls(),us(2,"mat-dialog-content"),us(3,"div",1),us(4,"div",2),ns(5,gH,8,1,"div",3),ls(),us(6,"div",4),us(7,"button",5),gs("click",(function(){return e.removeAll()})),us(8,"uds-translate"),Ks(9,"Remove all"),ls(),ls(),ls(),us(10,"div",6),us(11,"mat-form-field",7),us(12,"input",8),gs("keyup",(function(t){return e.checkKey(t)}))("ngModelChange",(function(t){return e.input=t})),ls(),us(13,"button",9),gs("click",(function(){return e.addElements()})),us(14,"uds-translate"),Ks(15,"Add"),ls(),ls(),ls(),ls(),ls(),ls(),us(16,"mat-dialog-actions"),us(17,"button",10),us(18,"uds-translate"),Ks(19,"Cancel"),ls(),ls(),us(20,"button",11),gs("click",(function(){return e.save()})),us(21,"uds-translate"),Ks(22,"Ok"),ls(),ls(),ls()),2&t&&(Yr(1),$s(" ",e.data.title,"\n"),Yr(4),os("ngForOf",e.values),Yr(7),os("ngModel",e.input))},directives:[Ex,Dx,sd,Nx,jx,ZI,PR,eS,uS,gE,WI,Ax,Sx],styles:[".content[_ngcontent-%COMP%]{width:100%;justify-content:space-between;justify-self:center}.content[_ngcontent-%COMP%], .list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.list[_ngcontent-%COMP%]{margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),_H=function(){function t(t){this.api=t,this.changed=new bl}return t.prototype.ngOnInit=function(){},t.prototype.launch=function(){var t=this;void 0===this.field.values&&(this.field.values=[]),yH.launch(this.api,this.field.gui.label,this.field.values).subscribe((function(e){t.changed.emit({field:t.field})}))},t.prototype.getValue=function(){if(void 0===this.field.values)return"";var t=this.field.values.filter((function(t,e,n){return e<5})).join(", ");return this.field.values.length>5&&(t+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),t},t.\u0275fac=function(e){return new(e||t)(rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled","click"]],template:function(t,e){1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"input",1),gs("click",(function(){return e.launch()})),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("readonly",!0)("value",e.getValue())("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly))},directives:[ZI,BI,PR],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),bH=function(){function t(){this.changed=new bl}return t.prototype.ngOnInit=function(){var t;this.field.value=uM(""===(t=this.field.value)||null==t?this.field.gui.defvalue:this.field.value)},t.prototype.getValue=function(){return uM(this.field.value)?django.gettext("Yes"):django.gettext("No")},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:5,vars:5,consts:[[1,"mat-form-field-infix"],[1,"label"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"span",1),Ks(2),ls(),us(3,"mat-slide-toggle",2),gs("ngModelChange",(function(t){return e.field.value=t}))("change",(function(){return e.changed.emit(e)})),Ks(4),ls(),ls()),2&t&&(Yr(2),Zs(e.field.gui.label),Yr(1),os("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Yr(1),$s(" ",e.getValue()," "))},directives:[BF,zF,uS,gE,ME],styles:[".label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function kH(t,e){if(1&t&&cs(0,"div",5),2&t){var n=Cs().$implicit;os("innerHTML",Cs().asIcon(n),Sr)}}function wH(t,e){if(1&t&&(us(0,"div"),ns(1,kH,1,1,"div",4),ls()),2&t){var n=e.$implicit,i=Cs();Yr(1),os("ngIf",n.id==i.field.value)}}function CH(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",6),gs("changed",(function(t){return xn(n),Cs().filter=t})),ls()}}function xH(t,e){if(1&t&&(us(0,"mat-option",7),cs(1,"div",5),ls()),2&t){var n=e.$implicit,i=Cs();os("value",n.id),Yr(1),os("innerHTML",i.asIcon(n),Sr)}}var SH=function(){function t(t){this.api=t,this.filter="",this.changed=new bl}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>=0&&(this.field.value=this.field.gui.values[0].id)},t.prototype.asIcon=function(t){return this.api.safeString(this.api.gui.icon(t.img)+t.text)},t.prototype.filteredValues=function(){if(""===this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter((function(e){return e.text.toLocaleLowerCase().includes(t)}))},t.\u0275fac=function(e){return new(e||t)(rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"mat-select",0),gs("valueChange",(function(){return e.changed.emit(e)}))("ngModelChange",(function(t){return e.field.value=t})),us(4,"mat-select-trigger"),ns(5,wH,2,1,"div",1),ls(),ns(6,CH,1,0,"uds-mat-select-search",2),ns(7,xH,2,2,"mat-option",3),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("placeholder",e.field.gui.tooltip)("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Yr(2),os("ngForOf",e.field.gui.values),Yr(1),os("ngIf",e.field.gui.values.length>10),Yr(1),os("ngForOf",e.filteredValues()))},directives:[ZI,BI,mO,uS,gE,ME,pO,sd,ld,jR,ox],styles:[""]}),t}(),EH=function(){function t(){this.changed=new bl,this.value=new Date}return Object.defineProperty(t.prototype,"date",{get:function(){return this.value},set:function(t){this.value!==t&&(this.value=t,this.field.value=nM("%Y-%m-%d",this.value))},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=nM("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=nM("%Y-12-31"));var t=this.field.value.split("-");3===t.length&&(this.value=new Date(+t[0],+t[1]-1,+t[2]))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(t,e){if(1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"input",1),gs("ngModelChange",(function(t){return e.date=t})),ls(),cs(4,"mat-datepicker-toggle",2),cs(5,"mat-datepicker",null,3),ls()),2&t){var n=is(6);Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("matDatepicker",n)("ngModel",e.date)("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly),Yr(1),os("for",n)}},directives:[ZI,BI,PR,gB,eS,uS,gE,_B,WI,hB],styles:[""]}),t}();function DH(t,e){if(1&t){var n=ps();us(0,"mat-chip",5),gs("removed",(function(){xn(n);var t=e.$implicit;return Cs().remove(t)})),Ks(1),us(2,"i",6),Ks(3,"cancel"),ls(),ls()}if(2&t){var i=e.$implicit,r=Cs();os("selectable",!1)("removable",!0!==r.field.gui.rdonly),Yr(1),$s(" ",i," ")}}var AH,IH,OH,TH=function(){function t(){this.separatorKeysCodes=[13,188],this.changed=new bl}return t.prototype.ngOnInit=function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach((function(t,e,n){""===t.trim()&&n.splice(e,1)}))},t.prototype.add=function(t){var e=t.input,n=t.value;(n||"").trim()&&this.field.values.push(n.trim()),e&&(e.value="")},t.prototype.remove=function(t){var e=this.field.values.indexOf(t);e>=0&&this.field.values.splice(e,1)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:8,consts:[["appearance","standard","floatLabel","always"],[3,"selectable","disabled","change"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(t,e){if(1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"mat-chip-list",1,2),gs("change",(function(){return e.changed.emit(e)})),ns(5,DH,4,3,"mat-chip",3),us(6,"input",4),gs("matChipInputTokenEnd",(function(t){return e.add(t)})),ls(),ls(),ls()),2&t){var n=is(4);Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("selectable",!1)("disabled",!0===e.field.gui.rdonly),Yr(2),os("ngForOf",e.field.values),Yr(1),os("placeholder",e.field.gui.tooltip)("matChipInputFor",n)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[ZI,BI,uz,sd,cz,nz,iz],styles:[".mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),t}(),RH=function(){function t(){}return t.\u0275mod=Ne({type:t,bootstrap:[iH]}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[BA,uI,{provide:RO,useClass:rH}],imports:[[xf,up,Mj,oC,qz]]}),t}();AH=[rd,ad,sd,ld,_d,yd,fd,pd,md,vd,gd,Dg,Cg,xg,Eg,ug,yE,FS,BS,eS,wS,DS,Qx,PS,VS,SS,uS,lS,ME,BE,zE,UE,PE,NE,gE,pE,lE,kE,CE,OE,SE,DE,Uz,Hz,Uy,Nx,Vx,$y,LM,OM,jM,DM,CO,xO,Lz,Tz,Rz,Mz,Fz,Pz,Az,mx,Sx,Ex,Dx,Ax,RI,ZI,VI,BI,jI,HI,WI,SR,ER,PR,AR,mO,pO,ox,tx,iB,NV,hB,lB,gB,_B,yB,$V,eB,XV,nB,DB,wB,CB,xB,zT,qT,tR,ZT,UT,rR,YT,nR,XT,JT,QT,oR,cR,uR,dR,pR,LO,HO,ZO,_M,bM,Uj,qj,TD,gD,kD,BD,HD,mD,uz,nz,cz,iz,tz,ez,LB,VB,zF,BF,pF,_F,mF,FA,UM,iH,Zz,jx,Gx,nH,dI,Jz,TP,FP,aF,oF,VL,fA,cA,nA,oH,sH,uH,lH,cH,fH,vH,jR,_H,bH,SH,EH,TH,qP,XR,YR,XP,QN,yH,ZP,ML,fL,CL,AF,iL,PL,FL,LL,NL,IN,HL,tN,rN,aN,wN,ZL,oN,CN,JN,pV,rV,mV,vV,ej,XB,ij,sj,hj,cj,fj,Oj,Tj,eH],IH=[xd,Ad,Sd,Md,Ud,Nd,Vd,Dd,Bd,Id,Td,Rd,Fd,zx,aH,qM],(OH=nA.\u0275cmp).directiveDefs=function(){return AH.map(Pe)},OH.pipeDefs=function(){return IH.map(Fe)},function(){if(Ji)throw new Error("Cannot enable prod mode after platform setup.");Qi=!1}(),wf().bootstrapModule(RH).catch((function(t){return console.log(t)}))}},[[0,0]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"1gqn":function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},KKCa:function(t,e){t.exports="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},MCLT:function(t,e,n){var i=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],n=0;n=a)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}})),u=r[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),f(n)?i.showHidden=n:n&&e._extend(i,n),g(i.showHidden)&&(i.showHidden=!1),g(i.depth)&&(i.depth=2),g(i.colors)&&(i.colors=!1),g(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=s),l(i,t,i.depth)}function s(t,e){var n=o.styles[e];return n?"\x1b["+o.colors[n][0]+"m"+t+"\x1b["+o.colors[n][1]+"m":t}function u(t,e){return t}function l(t,n,i){if(t.customInspect&&n&&w(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,t);return v(r)||(r=l(t,r,i)),r}var a=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(v(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return m(e)?t.stylize(""+e,"number"):f(e)?t.stylize(""+e,"boolean"):p(e)?t.stylize("null","null"):void 0}(t,n);if(a)return a;var o=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),k(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return c(n);if(0===o.length){if(w(n))return t.stylize("[Function"+(n.name?": "+n.name:"")+"]","special");if(y(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(b(n))return t.stylize(Date.prototype.toString.call(n),"date");if(k(n))return c(n)}var u,_="",C=!1,x=["{","}"];return d(n)&&(C=!0,x=["[","]"]),w(n)&&(_=" [Function"+(n.name?": "+n.name:"")+"]"),y(n)&&(_=" "+RegExp.prototype.toString.call(n)),b(n)&&(_=" "+Date.prototype.toUTCString.call(n)),k(n)&&(_=" "+c(n)),0!==o.length||C&&0!=n.length?i<0?y(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),u=C?function(t,e,n,i,r){for(var a=[],o=0,s=e.length;o60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(u,_,x)):x[0]+_+x[1]}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,i,r,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?s=t.stylize(u.set?"[Getter/Setter]":"[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),D(i,r)||(o="["+r+"]"),s||(t.seen.indexOf(u.value)<0?(s=p(n)?l(t,u.value,null):l(t,u.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),g(o)){if(a&&r.match(/^\d+$/))return s;(o=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function d(t){return Array.isArray(t)}function f(t){return"boolean"==typeof t}function p(t){return null===t}function m(t){return"number"==typeof t}function v(t){return"string"==typeof t}function g(t){return void 0===t}function y(t){return _(t)&&"[object RegExp]"===C(t)}function _(t){return"object"==typeof t&&null!==t}function b(t){return _(t)&&"[object Date]"===C(t)}function k(t){return _(t)&&("[object Error]"===C(t)||t instanceof Error)}function w(t){return"function"==typeof t}function C(t){return Object.prototype.toString.call(t)}function x(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(g(r)&&(r=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!a[t])if(new RegExp("\\b"+t+"\\b","i").test(r)){var n=process.pid;a[t]=function(){var i=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,i)}}else a[t]=function(){};return a[t]},e.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=f,e.isNull=p,e.isNullOrUndefined=function(t){return null==t},e.isNumber=m,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=g,e.isRegExp=y,e.isObject=_,e.isDate=b,e.isError=k,e.isFunction=w,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n("1gqn");var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(){var t=new Date,e=[x(t.getHours()),x(t.getMinutes()),x(t.getSeconds())].join(":");return[t.getDate(),S[t.getMonth()],e].join(" ")}function D(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",E(),e.format.apply(e,arguments))},e.inherits=n("KKCa"),e._extend=function(t,e){if(!e||!_(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t}},crnd:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},dunZ:function(t,e,n){var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:this;function r(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){s(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function a(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(n){}return e.status>=200&&e.status<=299}function o(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype?function(t,e,n){var s=i.URL||i.webkitURL,u=document.createElement("a");u.download=e=e||t.name||"download",u.rel="noopener","string"==typeof t?(u.href=t,u.origin!==location.origin?a(u.href)?r(t,e,n):o(u,u.target="_blank"):o(u)):(u.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){o(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(a(t))r(t,e,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout((function(){o(i)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var o="application/octet-stream"===t.type,s=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||o&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},l.readAsDataURL(t)}else{var c=i.URL||i.webkitURL,h=c.createObjectURL(t);a?a.location=h:location.href=h,a=null,setTimeout((function(){c.revokeObjectURL(h)}),4e4)}});i.saveAs=s.saveAs=s,t.exports=s},zUnb:function(t,e,n){"use strict";function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t,e,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}(t,e);if(r){var a=Object.getOwnPropertyDescriptor(r,e);return a.get?a.get.call(n):a.value}})(t,e,n||t)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}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 i,r,a=!0,o=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?a(t):e}function g(t){var e=p();return function(){var n,r=i(t);if(e){var a=i(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v(this,n)}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(i){return i.pipe(ot((function(n,i){return nt(t(n,i)).pipe(G((function(t,r){return e(n,t,i,r)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new st(t,n))})}var st=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;y(this,t),this.project=e,this.concurrent=n}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new ut(t,this.project,this.concurrent))}}]),t}(),ut=function(t){f(n,t);var e=g(n);function n(t,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return y(this,n),(r=e.call(this,t)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return b(n,[{key:"_next",value:function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(rt);function lt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return ot(L,t)}function ct(t,e){return e?et(t,e):new V(Z(t))}function ht(){for(var t=Number.POSITIVE_INFINITY,e=null,n=arguments.length,i=new Array(n),r=0;r1&&"number"==typeof i[i.length-1]&&(t=i.pop())):"number"==typeof a&&(t=i.pop()),null===e&&1===i.length&&i[0]instanceof V?i[0]:lt(t)(ct(i,e))}function dt(){return function(t){return t.lift(new ft(t))}}var ft=function(){function t(e){y(this,t),this.connectable=e}return b(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var i=new pt(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),t}(),pt=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).connectable=i,r}return b(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(M),mt=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this)).source=t,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return b(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new E).add(this.source.subscribe(new gt(this.getSubject(),this))),t.closed&&(this._connection=null,t=E.EMPTY)),t}},{key:"refCount",value:function(){return dt()(this)}}]),n}(V),vt=function(){var t=mt.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}}}(),gt=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).connectable=i,r}return b(n,[{key:"_error",value:function(t){this._unsubscribe(),r(i(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),r(i(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),n}(H);function yt(){return new U}function _t(t){return{toString:t}.toString()}var bt="__parameters__";function kt(t,e,n){return _t((function(){var i=function(t){return function(){if(t){var e=t.apply(void 0,arguments);for(var n in e)this[n]=e[n]}}}(e);function r(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:Et.Default;if(void 0===le)throw new Error("inject() must be called from an injection context");return null===le?me(t,void 0,e):le.get(t,e&Et.Optional?null:void 0,e)}function fe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et.Default;return(qt||de)(Ut(t),e)}var pe=fe;function me(t,e,n){var i=Tt(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&Et.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND [".concat(Bt(t),"]"))}function ve(t){for(var e=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:oe;if(e===oe){var n=new Error("NullInjectorError: No provider for ".concat(Bt(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}();function ye(t,e,n,i){var r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=Bt(e);if(Array.isArray(e))r=e.map(Bt).join(" -> ");else if("object"==typeof e){var a=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):Bt(s)))}r="{".concat(a.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(t.replace(se,"\n "))}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}var _e=function t(){y(this,t)},be=function t(){y(this,t)};function ke(t,e){t.forEach((function(t){return Array.isArray(t)?ke(t,e):e(t)}))}function we(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ce(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function xe(t,e){for(var n=[],i=0;i=0?t[1|i]=n:function(t,e,n,i){var r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i=~i,e,n),i}function Ee(t,e){var n=De(t,e);if(n>=0)return t[1|n]}function De(t,e){return function(t,e,n){for(var i=0,r=t.length>>1;r!==i;){var a=i+(r-i>>1),o=t[a<<1];if(e===o)return a<<1;o>e?r=a:i=a+1}return~(r<<1)}(t,e)}var Ae=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Ie=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Oe={},Te=[],Re=0;function Me(t){return _t((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===Ae.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Te,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ie.Emulated,id:"c",styles:t.styles||Te,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,a=t.pipes;return n.id+=Re++,n.inputs=Ve(t.inputs,e),n.outputs=Ve(t.outputs),r&&r.forEach((function(t){return t(n)})),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(Pe)}:null,n.pipeDefs=a?function(){return("function"==typeof a?a():a).map(Fe)}:null,n}))}function Pe(t){return ze(t)||function(t){return t[Qt]||null}(t)}function Fe(t){return function(t){return t[Jt]||null}(t)}var Le={};function Ne(t){var e={type:t.type,bootstrap:t.bootstrap||Te,declarations:t.declarations||Te,imports:t.imports||Te,exports:t.exports||Te,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&_t((function(){Le[t.id]=t.type})),e}function Ve(t,e){if(null==t)return Oe;var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,e&&(e[r]=a)}return n}var Be=Me;function je(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ze(t){return t[Xt]||null}function He(t,e){return t.hasOwnProperty(ne)?t[ne]:null}function Ue(t,e){var n=t[te]||null;if(!n&&!0===e)throw new Error("Type ".concat(Bt(t)," does not have '\u0275mod' property."));return n}function We(t){return Array.isArray(t)&&"object"==typeof t[1]}function qe(t){return Array.isArray(t)&&!0===t[1]}function Ge(t){return 0!=(8&t.flags)}function Ye(t){return 2==(2&t.flags)}function Ke(t){return 1==(1&t.flags)}function Ze(t){return null!==t.template}function $e(t){return 0!=(512&t[2])}var Xe=function(){function t(e,n,i){y(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=i}return b(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function Qe(){return Je}function Je(t){return t.type.prototype.ngOnChanges&&(t.setInput=en),tn}function tn(){var t=nn(this),e=null==t?void 0:t.current;if(e){var n=t.previous;if(n===Oe)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}}function en(t,e,n,i){var r=nn(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Oe,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[n],u=o[s];a[s]=new Xe(u&&u.currentValue,e,o===Oe),t[i]=e}function nn(t){return t.__ngSimpleChanges__||null}Qe.ngInherit=!0;var rn=void 0;function an(){return void 0!==rn?rn:"undefined"!=typeof document?document:void 0}function on(t){return!!t.listen}var sn={createRenderer:function(t,e){return an()}};function un(t){for(;Array.isArray(t);)t=t[0];return t}function ln(t,e){return un(e[t+20])}function cn(t,e){return un(e[t.index])}function hn(t,e){return t.data[e+20]}function dn(t,e){return t[e+20]}function fn(t,e){var n=e[t];return We(n)?n:n[0]}function pn(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function mn(t){return 4==(4&t[2])}function vn(t){return 128==(128&t[2])}function gn(t,e){return null===t||null==e?null:t[e]}function yn(t){t[18]=0}function _n(t,e){t[5]+=e;for(var n=t,i=t[3];null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}var bn={lFrame:Un(null),bindingsEnabled:!0,checkNoChangesMode:!1};function kn(){return bn.bindingsEnabled}function wn(){return bn.lFrame.lView}function Cn(){return bn.lFrame.tView}function xn(t){bn.lFrame.contextLView=t}function Sn(){return bn.lFrame.previousOrParentTNode}function En(t,e){bn.lFrame.previousOrParentTNode=t,bn.lFrame.isParent=e}function Dn(){return bn.lFrame.isParent}function An(){bn.lFrame.isParent=!1}function In(){return bn.checkNoChangesMode}function On(t){bn.checkNoChangesMode=t}function Tn(){var t=bn.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Rn(){return bn.lFrame.bindingIndex}function Mn(){return bn.lFrame.bindingIndex++}function Pn(t){var e=bn.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Fn(t,e){var n=bn.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ln(e)}function Ln(t){bn.lFrame.currentDirectiveIndex=t}function Nn(t){var e=bn.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Vn(){return bn.lFrame.currentQueryIndex}function Bn(t){bn.lFrame.currentQueryIndex=t}function jn(t,e){var n=Hn();bn.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function zn(t,e){var n=Hn(),i=t[1];bn.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function Hn(){var t=bn.lFrame,e=null===t?null:t.child;return null===e?Un(t):e}function Un(t){var e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Wn(){var t=bn.lFrame;return bn.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}var qn=Wn;function Gn(){var t=Wn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Yn(t){return(bn.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,bn.lFrame.contextLView))[8]}function Kn(){return bn.lFrame.selectedIndex}function Zn(t){bn.lFrame.selectedIndex=t}function $n(){var t=bn.lFrame;return hn(t.tView,t.selectedIndex)}function Xn(){bn.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Qn(){bn.lFrame.currentNamespace=null}function Jn(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[o]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e&&(t[2]+=2048,a.call(o)):a.call(o)}var ai=function t(e,n,i){y(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function oi(t,e,n){for(var i=on(t),r=0;re){o=a-1;break}}}for(;a>16}function pi(t,e){for(var n=fi(t),i=e;n>0;)i=i[15],n--;return i}function mi(t){return"string"==typeof t?t:null==t?"":""+t}function vi(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():mi(t)}var gi=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind($t)}();function yi(t){return{name:"body",target:t.ownerDocument.body}}function _i(t){return t instanceof Function?t():t}var bi=!0;function ki(t){var e=bi;return bi=t,e}var wi=0;function Ci(t,e){var n=Si(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,xi(i.data,t),xi(e,null),xi(i.blueprint,null));var r=Ei(t,e),a=t.injectorIndex;if(hi(r))for(var o=di(r),s=pi(r,e),u=s[1].data,l=0;l<8;l++)e[a+l]=s[o+l]|u[o+l];return e[a+8]=r,a}function xi(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Si(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Ei(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[6],i=1;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function Di(t,e,n){!function(t,e,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ie)&&(i=n[ie]),null==i&&(i=n[ie]=wi++);var r=255&i,a=1<3&&void 0!==arguments[3]?arguments[3]:Et.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var a=Mi(n);if("function"==typeof a){jn(e,t);try{var o=a();if(null!=o||i&Et.Optional)return o;throw new Error("No provider for ".concat(vi(n),"!"))}finally{qn()}}else if("number"==typeof a){if(-1===a)return new Li(t,e);var s=null,u=Si(t,e),l=-1,c=i&Et.Host?e[16][6]:null;for((-1===u||i&Et.SkipSelf)&&(l=-1===u?Ei(t,e):e[u+8],Fi(i,!1)?(s=e[1],u=di(l),e=pi(l,e)):u=-1);-1!==u;){l=e[u+8];var h=e[1];if(Pi(a,u,h.data)){var d=Oi(u,e,n,s,i,c);if(d!==Ii)return d}Fi(i,e[1].data[u+8]===c)&&Pi(a,u,e)?(s=h,u=di(l),e=pi(l,e)):u=-1}}}if(i&Et.Optional&&void 0===r&&(r=null),0==(i&(Et.Self|Et.Host))){var f=e[9],p=he(void 0);try{return f?f.get(n,r,i&Et.Optional):me(n,r,i&Et.Optional)}finally{he(p)}}if(i&Et.Optional)return r;throw new Error("NodeInjector: NOT_FOUND [".concat(vi(n),"]"))}var Ii={};function Oi(t,e,n,i,r,a){var o=e[1],s=o.data[t+8],u=Ti(s,o,n,null==i?Ye(s)&&bi:i!=o&&3===s.type,r&Et.Host&&a===s);return null!==u?Ri(e,o,u,s):Ii}function Ti(t,e,n,i,r){for(var a=t.providerIndexes,o=e.data,s=1048575&a,u=t.directiveStart,l=a>>20,c=r?s+l:t.directiveEnd,h=i?s:s+l;h=u&&d.type===n)return h}if(r){var f=o[u];if(f&&Ze(f)&&f.type===n)return u}return null}function Ri(t,e,n,i){var r=t[n],a=e.data;if(r instanceof ai){var o=r;if(o.resolving)throw new Error("Circular dep for ".concat(vi(a[n])));var s,u=ki(o.canSeeViewProviders);o.resolving=!0,o.injectImpl&&(s=he(o.injectImpl)),jn(t,i);try{r=t[n]=o.factory(void 0,a,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.type.prototype,r=i.ngOnInit,a=i.ngDoCheck;if(i.ngOnChanges){var o=Je(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,a[n],e)}finally{o.injectImpl&&he(s),ki(u),o.resolving=!1,qn()}}return r}function Mi(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(ie)?t[ie]:void 0;return"number"==typeof e&&e>0?255&e:e}function Pi(t,e,n){var i=64&t,r=32&t;return!!((128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e])&1<1?e-1:0),i=1;i";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}}}]),t}(),nr=function(){function t(e){if(y(this,t),this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return b(t,[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;var n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();fr.hasOwnProperty(e)&&!lr.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(kr(t))}},{key:"checkClobberedElement",value:function(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: ".concat(t.outerHTML));return e}}]),t}(),_r=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,br=/([^\#-~ |!])/g;function kr(t){return t.replace(/&/g,"&").replace(_r,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(br,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}function wr(t,e){var n=null;try{ur=ur||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new er:new nr(t)}(t);var i=e?String(e):"";n=ur.getInertBodyElement(i);var r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=ur.getInertBodyElement(i)}while(i!==a);var o=new yr,s=o.sanitizeChildren(Cr(n)||n);return tr()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=Cr(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function Cr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var xr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Sr(t){var e=Dr();return e?e.sanitize(xr.HTML,t)||"":$i(t,"HTML")?Zi(t):wr(an(),mi(t))}function Er(t){var e=Dr();return e?e.sanitize(xr.URL,t)||"":$i(t,"URL")?Zi(t):ar(mi(t))}function Dr(){var t=wn();return t&&t[12]}function Ar(t,e){t.__ngContext__=e}function Ir(t){throw new Error("Multiple components match node with tagname ".concat(t.tagName))}function Or(){throw new Error("Cannot mix multi providers and regular providers")}function Tr(t,e,n){for(var i=t.length;;){var r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){var a=e.length;if(r+a===i||t.charCodeAt(r+a)<=32)return r}n=r+1}}function Rr(t,e,n){for(var i=0;ia?"":r[c+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==Tr(d,l,0)||2&i&&l!==h){if(Lr(i))return!1;o=!0}}}}else{if(!o&&!Lr(i)&&!Lr(u))return!1;if(o&&Lr(u))continue;o=!1,i=u|1&i}}return Lr(i)||o}function Lr(t){return 0==(1&t)}function Nr(t,e,n,i){if(null===e)return-1;var r=0;if(i||!n){for(var a=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||Lr(o)||(e+=jr(a,r),r=""),i=o,a=a||!Lr(i);n++}return""!==r&&(e+=jr(a,r)),e}var Hr={};function Ur(t){var e=t[3];return qe(e)?e[3]:e}function Wr(t){return Gr(t[13])}function qr(t){return Gr(t[4])}function Gr(t){for(;null!==t&&!qe(t);)t=t[4];return t}function Yr(t){Kr(Cn(),wn(),Kn()+t,In())}function Kr(t,e,n,i){if(!i)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&ti(e,r,n)}else{var a=t.preOrderHooks;null!==a&&ei(e,a,0,n)}Zn(n)}function Zr(t,e){return t<<17|e<<2}function $r(t){return t>>17&32767}function Xr(t){return 2|t}function Qr(t){return(131068&t)>>2}function Jr(t,e){return-131069&t|e<<2}function ta(t){return 1|t}function ea(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;i20&&Kr(t,e,0,In()),n(i,r)}finally{Zn(a)}}function la(t,e,n){if(Ge(e))for(var i=e.directiveEnd,r=e.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:cn,i=e.localNames;if(null!==i)for(var r=e.index+1,a=0;a0&&function t(e){for(var n=Wr(e);null!==n;n=qr(n))for(var i=10;i0&&t(r)}var o=e[1].components;if(null!==o)for(var s=0;s0&&t(u)}}(n)}}function Ra(t,e){var n=fn(e,t),i=n[1];!function(t,e){for(var n=e.length;n0&&(t[n-1][4]=i[4]);var a=Ce(t,10+e);Ka(i[1],i,!1,null);var o=a[19];null!==o&&o.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Xa(t,e){if(!(256&e[2])){var n=e[11];on(n)&&n.destroyNode&&lo(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Ja(t[1],t);for(;e;){var n=null;if(We(e))n=e[13];else{var i=e[10];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)We(e)&&Ja(e[1],e),e=Qa(e,t);null===e&&(e=t),We(e)&&Ja(e[1],e),n=e&&e[4]}e=n}}(e)}}function Qa(t,e){var n;return We(t)&&(n=t[6])&&2===n.type?Wa(n,t):t[3]===e?null:t[3]}function Ja(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var i=0;i=0?i[s]():i[-s].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);e[7]=null}}(t,e);var n=e[6];n&&3===n.type&&on(e[11])&&e[11].destroy();var i=e[17];if(null!==i&&qe(e[3])){i!==e[3]&&Za(i,e);var r=e[19];null!==r&&r.detachView(t)}}}function to(t,e,n){for(var i=e.parent;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){var r=n[6];return 2===r.type?qa(r,n):n[0]}if(e&&5===e.type&&4&e.flags)return cn(e,n).parentNode;if(2&i.flags){var a=t.data,o=a[a[i.index].directiveStart].encapsulation;if(o!==Ie.ShadowDom&&o!==Ie.Native)return null}return cn(i,n)}function eo(t,e,n,i){on(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function no(t,e,n){on(t)?t.appendChild(e,n):e.appendChild(n)}function io(t,e,n,i){null!==i?eo(t,e,n,i):no(t,e,n)}function ro(t,e){return on(t)?t.parentNode(e):e.parentNode}function ao(t,e){if(2===t.type){var n=Wa(t,e);return null===n?null:so(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?cn(t,e):null}function oo(t,e,n,i){var r=to(t,i,e);if(null!=r){var a=e[11],o=ao(i.parent||e[6],e);if(Array.isArray(n))for(var s=0;s-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Xa(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){pa(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){Pa(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Fa(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){On(!0);try{Fa(t,e,n)}finally{On(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,lo(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}},{key:"rootNodes",get:function(){var t=this._lView;return null==t[0]?function t(e,n,i,r){for(var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==i;){var o=n[i.index];if(null!==o&&r.push(un(o)),qe(o))for(var s=10;s0;)this.remove(this.length-1)}},{key:"get",value:function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}},{key:"createEmbeddedView",value:function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i}},{key:"createComponent",value:function(t,e,n,i,r){var a=n||this.parentInjector;if(!r&&null==t.ngModule&&a){var o=a.get(_e,null);o&&(r=o)}var s=t.create(a,i,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),qe(n[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var a=n[3],o=new go(a,a[6],a[3]);o.detach(o.indexOf(t))}}var s=this._adjustIndex(e);return function(t,e,n,i){var r=10+i,a=n.length;i>0&&(n[r-1][4]=e),i1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return bo(e,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Li(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var t=Ei(this._hostTNode,this._hostView),e=pi(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var i=n.parent.injectorIndex,r=n.parent;null!=r.parent&&i==r.parent.injectorIndex;)r=r.parent;return r}for(var a=fi(t),o=e,s=e[6];a>1;)s=(o=o[15])[6],a--;return s}(t,this._hostView,this._hostTNode);return hi(t)&&null!=n?new Li(n,e):new Li(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),i}(t));var a=i[n.index];if(qe(a))r=a;else{var o;if(4===n.type)o=un(a);else if(o=i[11].createComment(""),$e(i)){var s=i[11],u=cn(n,i);eo(s,ro(s,u),o,function(t,e){return on(t)?t.nextSibling(e):e.nextSibling}(s,u))}else oo(i[1],i,o,n);i[n.index]=r=Oa(a,i,o,n),Ma(i,r)}return new go(r,n,i)}function Co(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return xo(Sn(),wn(),t)}function xo(t,e,n){if(!n&&Ye(t)){var i=fn(t.index,e);return new yo(i,i)}return 3===t.type||0===t.type||4===t.type||5===t.type?new yo(e[16],e):null}var So=function(){var t=function t(){y(this,t)};return t.__NG_ELEMENT_ID__=function(){return Eo()},t}(),Eo=Co,Do=Function,Ao=new re("Set Injector scope."),Io={},Oo={},To=[],Ro=void 0;function Mo(){return void 0===Ro&&(Ro=new ge),Ro}function Po(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Fo(t,n,e||Mo(),i)}var Fo=function(){function t(e,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;y(this,t),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&ke(n,(function(t){return r.processProvider(t,e,n)})),ke([e],(function(t){return r.processInjectorType(t,[],o)})),this.records.set(ae,Vo(void 0,this));var s=this.records.get(Ao);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof e?null:Bt(e))}return b(t,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(t){return t.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et.Default;this.assertNotDestroyed();var i=ce(this);try{if(!(n&Et.SkipSelf)){var r=this.records.get(t);if(void 0===r){var a=zo(t)&&Tt(t);r=a&&this.injectableDefInScope(a)?Vo(Lo(t),Io):null,this.records.set(t,r)}if(null!=r)return this.hydrate(t,r)}var o=n&Et.Self?Mo():this.parent;return o.get(t,e=n&Et.Optional&&e===oe?null:e)}catch(u){if("NullInjectorError"===u.name){var s=u.ngTempTokenPath=u.ngTempTokenPath||[];if(s.unshift(Bt(t)),i)throw u;return ye(u,t,"R3InjectorError",this.source)}throw u}finally{ce(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach((function(e){return t.get(e)}))}},{key:"toString",value:function(){var t=[];return this.records.forEach((function(e,n){return t.push(Bt(n))})),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var i=this;if(!(t=Ut(t)))return!1;var r=Mt(t),a=null==r&&t.ngModule||void 0,o=void 0===a?t:a,s=-1!==n.indexOf(o);if(void 0!==a&&(r=Mt(a)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(o);try{ke(r.imports,(function(t){i.processInjectorType(t,e,n)&&(void 0===u&&(u=[]),u.push(t))}))}finally{}if(void 0!==u)for(var l=function(t){var e=u[t],n=e.ngModule,r=e.providers;ke(r,(function(t){return i.processProvider(t,n,r||To)}))},c=0;c0){var n=xe(e,"?");throw new Error("Can't resolve all parameters for ".concat(Bt(t),": (").concat(n.join(", "),")."))}var i=function(t){var e=t&&(t[Pt]||t[Nt]||t[Lt]&&t[Lt]());if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" 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(n,'" class.')),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function No(t,e,n){var i,r=void 0;if(jo(t)){var a=Ut(t);return He(a)||Lo(a)}if(Bo(t))r=function(){return Ut(t.useValue)};else if((i=t)&&i.useFactory)r=function(){return t.useFactory.apply(t,l(ve(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return fe(Ut(t.useExisting))};else{var o=Ut(t&&(t.useClass||t.provide));if(o||function(t,e,n){var i="";if(t&&e){var r=e.map((function(t){return t==n?"?"+n+"?":"..."}));i=" - only instances of Provider and Type are allowed, got: [".concat(r.join(", "),"]")}throw new Error("Invalid provider for the NgModule '".concat(Bt(t),"'")+i)}(e,n,t),!function(t){return!!t.deps}(t))return He(o)||Lo(o);r=function(){return k(o,l(ve(t.deps)))}}return r}function Vo(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function Bo(t){return null!==t&&"object"==typeof t&&ue in t}function jo(t){return"function"==typeof t}function zo(t){return"function"==typeof t||"object"==typeof t&&t instanceof re}var Ho=function(t,e,n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Po(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)},Uo=function(){var t=function(){function t(){y(this,t)}return b(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?Ho(t,e,""):Ho(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=oe,t.NULL=new ge,t.\u0275prov=It({token:t,providedIn:"any",factory:function(){return fe(ae)}}),t.__NG_ELEMENT_ID__=-1,t}(),Wo=new re("AnalyzeForEntryComponents");function qo(t,e,n){var i=n?t.styles:null,r=n?t.classes:null,a=0;if(null!==e)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:Et.Default,n=wn();if(null==n)return fe(t,e);var i=Sn();return Ai(i,n,Ut(t),e)}function as(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;var n=t.attrs;if(n)for(var i=n.length,r=0;r2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=wn(),a=Cn(),o=Sn();return bs(a,r,r[11],o,t,e,n,i),gs}function ys(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=Sn(),a=wn(),o=Cn(),s=Nn(o.data),u=ja(s,r,a);return bs(o,a,u,r,t,e,n,i),ys}function _s(t,e,n,i){var r=t.cleanup;if(null!=r)for(var a=0;au?s[u]:null}"string"==typeof o&&(a+=2)}return null}function bs(t,e,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=Ke(i),l=t.firstCreatePass,c=l&&(t.cleanup||(t.cleanup=[])),h=Ba(e),d=!0;if(3===i.type){var f=cn(i,e),p=s?s(f):Oe,m=p.target||f,v=h.length,g=s?function(t){return s(un(t[i.index])).target}:i.index;if(on(n)){var y=null;if(!s&&u&&(y=_s(t,e,r,i.index)),null!==y){var _=y.__ngLastListenerFn__||y;_.__ngNextListenerFn__=a,y.__ngLastListenerFn__=a,d=!1}else{a=ws(i,e,a,!1);var b=n.listen(p.name||m,r,a);h.push(a,b),c&&c.push(r,g,v,v+1)}}else a=ws(i,e,a,!0),m.addEventListener(r,a,o),h.push(a),c&&c.push(r,g,v,o)}var k,w=i.outputs;if(d&&null!==w&&(k=w[r])){var C=k.length;if(C)for(var x=0;x0&&void 0!==arguments[0]?arguments[0]:1;return Yn(t)}function xs(t,e){for(var n=null,i=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=wn(),r=Cn(),a=ra(r,i[6],t,1,null,n||null);null===a.projection&&(a.projection=e),An(),co(r,i,a)}function Ds(t,e,n){return As(t,"",e,"",n),Ds}function As(t,e,n,i,r){var a=wn(),o=es(a,e,n,i);return o!==Hr&&ga(Cn(),$n(),a,t,o,a[11],r,!1),As}var Is=[];function Os(t,e,n,i,r){for(var a=t[n+1],o=null===e,s=i?$r(a):Qr(a),u=!1;0!==s&&(!1===u||o);){var l=t[s+1];Ts(t[s],e)&&(u=!0,t[s+1]=i?ta(l):Xr(l)),s=i?$r(l):Qr(l)}u&&(t[n+1]=i?Xr(a):ta(a))}function Ts(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&De(t,e)>=0}var Rs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ms(t){return t.substring(Rs.key,Rs.keyEnd)}function Ps(t,e){var n=Rs.textEnd;return n===e?-1:(e=Rs.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Rs.key=e,n),Fs(t,e,n))}function Fs(t,e,n){for(;e=0;n=Ps(e,n))Se(t,Ms(e),!0)}function Bs(t,e,n,i){var r=wn(),a=Cn(),o=Pn(2);a.firstUpdatePass&&zs(a,t,o,i),e!==Hr&&Qo(r,o,e)&&Ws(a,a.data[Kn()+20],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=Bt(Zi(t)))),t}(e,n),i,o)}function js(t,e){return e>=t.expandoStartIndex}function zs(t,e,n,i){var r=t.data;if(null===r[n+1]){var a=r[Kn()+20],o=js(t,n);Ys(a,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){var r=Nn(t),a=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=Us(n=Hs(null,t,e,n,i),e.attrs,i),a=null);else{var o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=Hs(r,t,e,n,i),null===a){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==Qr(i))return t[$r(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[$r(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=Us(s=Hs(null,t,e,s[1],i),e.attrs,i))}else a=function(t,e,n){for(var i=void 0,r=e.directiveEnd,a=1+e.directiveStylingLast;a0)&&(c=!0):l=n,r)if(0!==u){var h=$r(t[s+1]);t[i+1]=Zr(h,s),0!==h&&(t[h+1]=Jr(t[h+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=Zr(s,0),0!==s&&(t[s+1]=Jr(t[s+1],i)),s=i;else t[i+1]=Zr(u,0),0===s?s=i:t[u+1]=Jr(t[u+1],i),u=i;c&&(t[i+1]=Xr(t[i+1])),Os(t,l,i,!0),Os(t,l,i,!1),function(t,e,n,i,r){var a=r?t.residualClasses:t.residualStyles;null!=a&&"string"==typeof e&&De(a,e)>=0&&(n[i+1]=ta(n[i+1]))}(e,l,t,i,a),o=Zr(s,u),a?e.classBindings=o:e.styleBindings=o}(r,a,e,n,o,i)}}function Hs(t,e,n,i,r){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=t[r],l=Array.isArray(u),c=l?u[1]:u,h=null===c,d=n[r+1];d===Hr&&(d=h?Is:void 0);var f=h?Ee(d,i):c===i?d:void 0;if(l&&!Gs(f)&&(f=Ee(u,i)),Gs(f)&&(s=f,o))return s;var p=t[r+1];r=o?$r(p):Qr(p)}if(null!==e){var m=a?e.residualClasses:e.residualStyles;null!=m&&(s=Ee(m,i))}return s}function Gs(t){return void 0!==t}function Ys(t,e){return 0!=(t.flags&(e?16:32))}function Ks(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=wn(),i=Cn(),r=t+20,a=i.firstCreatePass?ra(i,n[6],t,3,null,null):i.data[r],o=n[r]=Ya(e,n[11]);oo(i,n,o,a),En(a,!1)}function Zs(t){return $s("",t,""),Zs}function $s(t,e,n){var i=wn(),r=es(i,t,e,n);return r!==Hr&&Ua(i,Kn(),r),$s}function Xs(t,e,n,i,r){var a=wn(),o=function(t,e,n,i,r,a){var o=Jo(t,Rn(),n,r);return Pn(2),o?e+mi(n)+i+mi(r)+a:Hr}(a,t,e,n,i,r);return o!==Hr&&Ua(a,Kn(),o),Xs}function Qs(t,e,n){var i=wn();return Qo(i,Mn(),e)&&ga(Cn(),$n(),i,t,e,i[11],n,!0),Qs}function Js(t,e,n){var i=wn();if(Qo(i,Mn(),e)){var r=Cn(),a=$n();ga(r,a,i,t,e,ja(Nn(r.data),a,i),n,!0)}return Js}function tu(t,e){var n=pn(t)[1],i=n.data.length-1;Jn(n,{directiveStart:i,directiveEnd:i+1})}function eu(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,i=[t];e;){var r=void 0;if(Ze(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);var a=t;a.inputs=nu(t.inputs),a.declaredInputs=nu(t.declaredInputs),a.outputs=nu(t.outputs);var o=r.hostBindings;o&&au(t,o);var s=r.viewQuery,u=r.contentQueries;if(s&&iu(t,s),u&&ru(t,u),At(t.inputs,r.inputs),At(t.declaredInputs,r.declaredInputs),At(t.outputs,r.outputs),Ze(r)&&r.data.animation){var l=t.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var h=0;h=0;i--){var r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=li(r.hostAttrs,n=li(n,r.hostAttrs))}}(i)}function nu(t){return t===Oe?{}:t===Te?[]:t}function iu(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function ru(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,r){e(t,i,r),n(t,i,r)}:e}function au(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}function ou(t,e,n){var i=Cn();if(i.firstCreatePass){var r=Ze(t);su(n,i.data,i.blueprint,r,!0),su(e,i.data,i.blueprint,r,!1)}}function su(t,e,n,i,r){if(t=Ut(t),Array.isArray(t))for(var a=0;a>20;if(jo(t)||!t.multi){var p=new ai(l,r,rs),m=cu(u,e,r?h:h+f,d);-1===m?(Di(Ci(c,s),o,u),uu(o,t,e.length),e.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{var v=cu(u,e,h+f,d),g=cu(u,e,h,h+f),y=g>=0&&n[g];if(r&&!y||!r&&!(v>=0&&n[v])){Di(Ci(c,s),o,u);var _=function(t,e,n,i,r){var a=new ai(t,n,rs);return a.multi=[],a.index=e,a.componentProviders=0,lu(a,r,i&&!n),a}(r?du:hu,n.length,r,i,l);!r&&y&&(n[g].providerFactory=_),uu(o,t,e.length,0),e.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(_),s.push(_)}else uu(o,t,v>-1?v:g,lu(n[r?g:v],l,!r&&i));!r&&i&&y&&n[g].componentProviders++}}}function uu(t,e,n,i){var r=jo(e);if(r||e.useClass){var a=(e.useClass||e).prototype.ngOnDestroy;if(a){var o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=o.indexOf(n);-1===s?o.push(n,[i,a]):o[s+1].push(i,a)}else o.push(n,a)}}}function lu(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function cu(t,e,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return ou(n,i?i(t):t,e)}}}var mu=function t(){y(this,t)},vu=function t(){y(this,t)},gu=function(){function t(){y(this,t)}return b(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(Bt(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),yu=function(){var t=function t(){y(this,t)};return t.NULL=new gu,t}(),_u=function(){var t=function t(e){y(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=function(){return bu(t)},t}(),bu=function(t){return bo(t,Sn(),wn())},ku=function t(){y(this,t)},wu=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),Cu=function(){var t=function t(){y(this,t)};return t.__NG_ELEMENT_ID__=function(){return xu()},t}(),xu=function(){var t=wn(),e=fn(Sn().index,t);return function(t){var e=t[11];if(on(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(We(e)?e:t)},Su=function(){var t=function t(){y(this,t)};return t.\u0275prov=It({token:t,providedIn:"root",factory:function(){return null}}),t}(),Eu=function t(e){y(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},Du=new Eu("10.0.8"),Au=function(){function t(){y(this,t)}return b(t,[{key:"supports",value:function(t){return Zo(t)}},{key:"create",value:function(t){return new Ou(t)}}]),t}(),Iu=function(t,e){return e},Ou=function(){function t(e){y(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=e||Iu}return b(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,i=0,r=null;e||n;){var a=!n||e&&e.currentIndex0&&po(l,h,_.join(" "))}if(a=hn(p,0),void 0!==e)for(var b=a.projection=[],k=0;k ".concat(null," ").concat("!="," ").concat(e," <=Actual]"))}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var ol=new Map,sl=function(t){f(n,t);var e=g(n);function n(t,i){var r;y(this,n),(r=e.call(this))._parent=i,r._bootstrapComponents=[],r.injector=a(r),r.destroyCbs=[],r.componentFactoryResolver=new Ku(a(r));var o=Ue(t),s=t[ee]||null;return s&&al(s),r._bootstrapComponents=_i(o.bootstrap),r._r3Injector=Po(t,i,[{provide:_e,useValue:a(r)},{provide:yu,useValue:r.componentFactoryResolver}],Bt(t)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(t),r}return b(n,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Et.Default;return t===Uo||t===_e||t===ae?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(_e),ul=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this)).moduleType=t,null!==Ue(t)&&function t(e){if(null!==e.\u0275mod.id){var n=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(Bt(e)," vs ").concat(Bt(e.name)))})(n,ol.get(n),e),ol.set(n,e)}var i=e.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach((function(e){return t(e)}))}(t),i}return b(n,[{key:"create",value:function(t){return new sl(this.moduleType,t)}}]),n}(be);function ll(t,e,n){var i=Tn()+t,r=wn();return r[i]===Hr?Xo(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function cl(t,e,n,i){return fl(wn(),Tn(),t,e,n,i)}function hl(t,e,n,i,r){return pl(wn(),Tn(),t,e,n,i,r)}function dl(t,e){var n=t[e];return n===Hr?void 0:n}function fl(t,e,n,i,r,a){var o=e+n;return Qo(t,o,r)?Xo(t,o+1,a?i.call(a,r):i(r)):dl(t,o+1)}function pl(t,e,n,i,r,a,o){var s=e+n;return Jo(t,s,r,a)?Xo(t,s+2,o?i.call(o,r,a):i(r,a)):dl(t,s+2)}function ml(t,e){var n,i=Cn(),r=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var i=e[n];if(t===i.name)return i}throw new Error("The pipe '".concat(t,"' could not be found!"))}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var a=n.factory||(n.factory=He(n.type)),o=he(rs),s=ki(!1),u=a();return ki(s),he(o),function(t,e,n,i){var r=n+20;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}(i,wn(),t,u),u}function vl(t,e,n){var i=wn(),r=dn(i,t);return _l(i,yl(i,t)?fl(i,Tn(),e,r.transform,n,r):r.transform(n))}function gl(t,e,n,i){var r=wn(),a=dn(r,t);return _l(r,yl(r,t)?pl(r,Tn(),e,a.transform,n,i,a):a.transform(n,i))}function yl(t,e){return t[1].data[e+20].pure}function _l(t,e){return Ko.isWrapped(e)&&(e=Ko.unwrap(e),t[Rn()]=Hr),e}var bl=function(t){f(n,t);var e=g(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return y(this,n),(t=e.call(this)).__isAsync=i,t}return b(n,[{key:"emit",value:function(t){r(i(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,a){var o,s=function(t){return null},u=function(){return null};t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout((function(){return t.next(e)}))}:function(e){t.next(e)},t.error&&(s=this.__isAsync?function(e){setTimeout((function(){return t.error(e)}))}:function(e){t.error(e)}),t.complete&&(u=this.__isAsync?function(){setTimeout((function(){return t.complete()}))}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)},e&&(s=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)}),a&&(u=this.__isAsync?function(){setTimeout((function(){return a()}))}:function(){a()}));var l=r(i(n.prototype),"subscribe",this).call(this,o,s,u);return t instanceof E&&t.add(l),l}}]),n}(U);function kl(){return this._results[Yo()]()}var wl=function(){function t(){y(this,t),this.dirty=!0,this._results=[],this.changes=new bl,this.length=0;var e=Yo(),n=t.prototype;n[e]||(n[e]=kl)}return b(t,[{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t){this._results=function t(e,n){void 0===n&&(n=e);for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];y(this,t),this.queries=e}return b(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var i=null!==e.contentQueries?e.contentQueries[0]:n.length,r=[],a=0;a3&&void 0!==arguments[3]?arguments[3]:null;y(this,t),this.predicate=e,this.descendants=n,this.isStatic=i,this.read=r},El=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];y(this,t),this.queries=e}return b(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;y(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return b(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{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(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,i=0;i0)r.push(s[u/2]);else{for(var c=o[u+1],h=n[-l],d=10;d0&&(r=setTimeout((function(){i._callbacks=i._callbacks.filter((function(t){return t.timeoutId!==r})),t(i._didWork,i.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(cc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),bc=function(){var t=function(){function t(){y(this,t),this._applications=new Map,kc.addToWindow(this)}return b(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||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(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return kc.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),kc=new(function(){function t(){y(this,t)}return b(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),wc=function(t,e,n){var i=new ul(n);return Promise.resolve(i)},Cc=new re("AllowMultipleToken"),xc=function t(e,n){y(this,t),this.name=e,this.token=n};function Sc(t){if(gc&&!gc.destroyed&&!gc.injector.get(Cc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");gc=t.get(Ic);var e=t.get(Kl,null);return e&&e.forEach((function(t){return t()})),gc}function Ec(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(e),r=new re(i);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=Ac();if(!a||a.injector.get(Cc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var o=n.concat(e).concat({provide:r,useValue:!0},{provide:Ao,useValue:"platform"});Sc(Uo.create({providers:o,name:i}))}return Dc(r)}}function Dc(t){var e=Ac();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function Ac(){return gc&&!gc.destroyed?gc:null}var Ic=function(){var t=function(){function t(e){y(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return b(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,i,r=this,a=(i=e&&e.ngZoneEventCoalescing||!1,"noop"===(n=e?e.ngZone:void 0)?new yc:("zone.js"===n?void 0:n)||new cc({enableLongStackTrace:tr(),shouldCoalesceEventChangeDetection:i})),o=[{provide:cc,useValue:a}];return a.run((function(){var e=Uo.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),i=n.injector.get(Hi,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Rc(r._modules,n)})),a.runOutsideAngular((function(){return a.onError.subscribe({next:function(t){i.handleError(t)}})})),function(t,e,i){try{var a=((o=n.injector.get(Wl)).runInitializers(),o.donePromise.then((function(){return al(n.injector.get(Ql,"en-US")||"en-US"),r._moduleDoBootstrap(n),n})));return ms(a)?a.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):a}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var o}(i,a)}))}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Oc({},n);return wc(0,0,t).then((function(t){return e.bootstrapModuleFactory(t,i)}))}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Tc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(Bt(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(t){return t.destroy()})),this._destroyListeners.forEach((function(t){return t()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Uo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}();function Oc(t,e){return Array.isArray(e)?e.reduce(Oc,t):Object.assign(Object.assign({},t),e)}var Tc=function(){var t=function(){function t(e,n,i,r,a,o){var s=this;y(this,t),this._zone=e,this._console=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=a,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=tr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new V((function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){t.next(s._stable),t.complete()}))})),l=new V((function(t){var e;s._zone.runOutsideAngular((function(){e=s._zone.onStable.subscribe((function(){cc.assertNotInAngularZone(),lc((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){cc.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=ht(u,l.pipe((function(t){return dt()((e=yt,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,vt);return i.source=t,i.subjectFactory=n,i})(t));var e})))}return b(t,[{key:"bootstrap",value:function(t,e){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof vu?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(_e),a=n.create(Uo.NULL,[],e||n.selector,r);a.onDestroy((function(){i._unloadComponent(a)}));var o=a.injector.get(_c,null);return o&&a.injector.get(bc).registerApplication(a.location.nativeElement,o),this._loadComponent(a),tr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),a}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=h(this._views);try{for(n.s();!(e=n.n()).done;)e.value.detectChanges()}catch(a){n.e(a)}finally{n.f()}if(this._enforceNoNewChanges){var i,r=h(this._views);try{for(r.s();!(i=r.n()).done;)i.value.checkNoChanges()}catch(a){r.e(a)}finally{r.f()}}}catch(o){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(o)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Rc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get($l,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))}},{key:"_unloadComponent",value:function(t){this.detachView(t.hostView),Rc(this.components,t)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(t){return t.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(cc),fe(Xl),fe(Uo),fe(Hi),fe(yu),fe(Wl))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}();function Rc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Mc=function t(){y(this,t)},Pc=function t(){y(this,t)},Fc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Lc=function(){var t=function(){function t(e,n){y(this,t),this._compiler=e,this._config=n||Fc}return b(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,i=u(t.split("#"),2),r=i[0],a=i[1];return void 0===a&&(a="default"),n("crnd")(r).then((function(t){return t[a]})).then((function(t){return Nc(t,r,a)})).then((function(t){return e._compiler.compileModuleAsync(t)}))}},{key:"loadFactory",value:function(t){var e=u(t.split("#"),2),i=e[0],r=e[1],a="NgFactory";return void 0===r&&(r="default",a=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then((function(t){return t[r+a]})).then((function(t){return Nc(t,i,r)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(sc),fe(Pc,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}();function Nc(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var Vc=Ec(null,"core",[{provide:Zl,useValue:"unknown"},{provide:Ic,deps:[Uo]},{provide:bc,deps:[]},{provide:Xl,deps:[]}]),Bc=[{provide:Tc,useClass:Tc,deps:[cc,Xl,Uo,Hi,yu,Wl]},{provide:$u,deps:[cc],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:Wl,useClass:Wl,deps:[[new Ct,Ul]]},{provide:sc,useClass:sc,deps:[]},Gl,{provide:Vu,useFactory:function(){return zu},deps:[]},{provide:Bu,useFactory:function(){return Hu},deps:[]},{provide:Ql,useFactory:function(t){return al(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new wt(Ql),new Ct,new St]]},{provide:Jl,useValue:"USD"}],jc=function(){var t=function t(e){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)(fe(Tc))},providers:Bc}),t}(),zc=null;function Hc(){return zc}var Uc=function t(){y(this,t)},Wc=new re("DocumentToken"),qc=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:Gc,token:t,providedIn:"platform"}),t}();function Gc(){return fe(Kc)}var Yc=new re("Location Initialized"),Kc=function(){var t=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this))._doc=t,i._init(),i}return b(n,[{key:"_init",value:function(){this.location=Hc().getLocation(),this._history=Hc().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Hc().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){Hc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}},{key:"onHashChange",value:function(t){Hc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}},{key:"pushState",value:function(t,e,n){Zc()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){Zc()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(qc);return t.\u0275fac=function(e){return new(e||t)(fe(Wc))},t.\u0275prov=It({factory:$c,token:t,providedIn:"platform"}),t}();function Zc(){return!!window.history.pushState}function $c(){return new Kc(fe(Wc))}function Xc(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Qc(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Jc(t){return t&&"?"!==t[0]?"?"+t:t}var th=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:eh,token:t,providedIn:"root"}),t}();function eh(t){var e=fe(Wc).location;return new ih(fe(qc),e&&e.origin||"")}var nh=new re("appBaseHref"),ih=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;if(y(this,n),(r=e.call(this))._platformLocation=t,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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 r._baseHref=i,r}return b(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return Xc(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+Jc(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+Jc(i));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+Jc(i));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(th);return t.\u0275fac=function(e){return new(e||t)(fe(qc),fe(nh,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),rh=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this))._platformLocation=t,r._baseHref="",null!=i&&(r._baseHref=i),r}return b(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=Xc(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+Jc(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+Jc(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(th);return t.\u0275fac=function(e){return new(e||t)(fe(qc),fe(nh,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),ah=function(){var t=function(){function t(e,n){var i=this;y(this,t),this._subject=new bl,this._urlChangeListeners=[],this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Qc(sh(r)),this._platformStrategy.onPopState((function(t){i._subject.emit({url:i.path(!0),pop:!0,state:t.state,type:t.type})}))}return b(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+Jc(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,sh(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Jc(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Jc(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)})))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(t,e)}))}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(th),fe(qc))},t.normalizeQueryParams=Jc,t.joinWithSlash=Xc,t.stripTrailingSlash=Qc,t.\u0275prov=It({factory:oh,token:t,providedIn:"root"}),t}();function oh(){return new ah(fe(th),fe(qc))}function sh(t){return t.replace(/\/index.html$/,"")}var uh={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},lh=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),ch=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),hh=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),dh=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),fh=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),ph=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function mh(t,e){return wh(nl(t)[rl.DateFormat],e)}function vh(t,e){return wh(nl(t)[rl.TimeFormat],e)}function gh(t,e){return wh(nl(t)[rl.DateTimeFormat],e)}function yh(t,e){var n=nl(t),i=n[rl.NumberSymbols][e];if(void 0===i){if(e===ph.CurrencyDecimal)return n[rl.NumberSymbols][ph.Decimal];if(e===ph.CurrencyGroup)return n[rl.NumberSymbols][ph.Group]}return i}function _h(t,e){return nl(t)[rl.NumberFormats][e]}function bh(t){return nl(t)[rl.Currencies]}function kh(t){if(!t[rl.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[rl.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function wh(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Ch(t){var e=u(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}function xh(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",i=bh(n)[t]||uh[t]||[],r=i[1];return"narrow"===e&&"string"==typeof r?r:i[0]||t}var Sh=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Eh={},Dh=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Ah=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Ih=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Oh=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Th(t,e,n,i){var r=function(t){if(qh(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();var e,n=parseFloat(t);if(!isNaN(t-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var i=u(t.split("-").map((function(t){return+t})),3);return new Date(i[0],i[1]-1,i[2])}if(e=t.match(Sh))return function(t){var e=new Date(0),n=0,i=0,r=t[8]?e.setUTCFullYear:e.setFullYear,a=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var o=Number(t[4]||0)-n,s=Number(t[5]||0)-i,u=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return a.call(e,o,s,u,l),e}(e)}var r=new Date(t);if(!qh(r))throw new Error('Unable to convert "'.concat(t,'" into a date'));return r}(t);e=function t(e,n){var i=function(t){return nl(t)[rl.LocaleId]}(e);if(Eh[i]=Eh[i]||{},Eh[i][n])return Eh[i][n];var r="";switch(n){case"shortDate":r=mh(e,fh.Short);break;case"mediumDate":r=mh(e,fh.Medium);break;case"longDate":r=mh(e,fh.Long);break;case"fullDate":r=mh(e,fh.Full);break;case"shortTime":r=vh(e,fh.Short);break;case"mediumTime":r=vh(e,fh.Medium);break;case"longTime":r=vh(e,fh.Long);break;case"fullTime":r=vh(e,fh.Full);break;case"short":var a=t(e,"shortTime"),o=t(e,"shortDate");r=Rh(gh(e,fh.Short),[a,o]);break;case"medium":var s=t(e,"mediumTime"),u=t(e,"mediumDate");r=Rh(gh(e,fh.Medium),[s,u]);break;case"long":var l=t(e,"longTime"),c=t(e,"longDate");r=Rh(gh(e,fh.Long),[l,c]);break;case"full":var h=t(e,"fullTime"),d=t(e,"fullDate");r=Rh(gh(e,fh.Full),[h,d])}return r&&(Eh[i][n]=r),r}(n,e)||e;for(var a,o=[];e;){if(!(a=Dh.exec(e))){o.push(e);break}var s=(o=o.concat(a.slice(1))).pop();if(!s)break;e=s}var l=r.getTimezoneOffset();i&&(l=Wh(i,l),r=function(t,e,n){var i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Wh(e,i)-i))}(r,i));var c="";return o.forEach((function(t){var e=function(t){if(Uh[t])return Uh[t];var e;switch(t){case"G":case"GG":case"GGG":e=Nh(Oh.Eras,dh.Abbreviated);break;case"GGGG":e=Nh(Oh.Eras,dh.Wide);break;case"GGGGG":e=Nh(Oh.Eras,dh.Narrow);break;case"y":e=Fh(Ih.FullYear,1,0,!1,!0);break;case"yy":e=Fh(Ih.FullYear,2,0,!0,!0);break;case"yyy":e=Fh(Ih.FullYear,3,0,!1,!0);break;case"yyyy":e=Fh(Ih.FullYear,4,0,!1,!0);break;case"M":case"L":e=Fh(Ih.Month,1,1);break;case"MM":case"LL":e=Fh(Ih.Month,2,1);break;case"MMM":e=Nh(Oh.Months,dh.Abbreviated);break;case"MMMM":e=Nh(Oh.Months,dh.Wide);break;case"MMMMM":e=Nh(Oh.Months,dh.Narrow);break;case"LLL":e=Nh(Oh.Months,dh.Abbreviated,hh.Standalone);break;case"LLLL":e=Nh(Oh.Months,dh.Wide,hh.Standalone);break;case"LLLLL":e=Nh(Oh.Months,dh.Narrow,hh.Standalone);break;case"w":e=Hh(1);break;case"ww":e=Hh(2);break;case"W":e=Hh(1,!0);break;case"d":e=Fh(Ih.Date,1);break;case"dd":e=Fh(Ih.Date,2);break;case"E":case"EE":case"EEE":e=Nh(Oh.Days,dh.Abbreviated);break;case"EEEE":e=Nh(Oh.Days,dh.Wide);break;case"EEEEE":e=Nh(Oh.Days,dh.Narrow);break;case"EEEEEE":e=Nh(Oh.Days,dh.Short);break;case"a":case"aa":case"aaa":e=Nh(Oh.DayPeriods,dh.Abbreviated);break;case"aaaa":e=Nh(Oh.DayPeriods,dh.Wide);break;case"aaaaa":e=Nh(Oh.DayPeriods,dh.Narrow);break;case"b":case"bb":case"bbb":e=Nh(Oh.DayPeriods,dh.Abbreviated,hh.Standalone,!0);break;case"bbbb":e=Nh(Oh.DayPeriods,dh.Wide,hh.Standalone,!0);break;case"bbbbb":e=Nh(Oh.DayPeriods,dh.Narrow,hh.Standalone,!0);break;case"B":case"BB":case"BBB":e=Nh(Oh.DayPeriods,dh.Abbreviated,hh.Format,!0);break;case"BBBB":e=Nh(Oh.DayPeriods,dh.Wide,hh.Format,!0);break;case"BBBBB":e=Nh(Oh.DayPeriods,dh.Narrow,hh.Format,!0);break;case"h":e=Fh(Ih.Hours,1,-12);break;case"hh":e=Fh(Ih.Hours,2,-12);break;case"H":e=Fh(Ih.Hours,1);break;case"HH":e=Fh(Ih.Hours,2);break;case"m":e=Fh(Ih.Minutes,1);break;case"mm":e=Fh(Ih.Minutes,2);break;case"s":e=Fh(Ih.Seconds,1);break;case"ss":e=Fh(Ih.Seconds,2);break;case"S":e=Fh(Ih.FractionalSeconds,1);break;case"SS":e=Fh(Ih.FractionalSeconds,2);break;case"SSS":e=Fh(Ih.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Bh(Ah.Short);break;case"ZZZZZ":e=Bh(Ah.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Bh(Ah.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Bh(Ah.Long);break;default:return null}return Uh[t]=e,e}(t);c+=e?e(r,n,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),c}function Rh(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function Mh(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,a="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,a=n));for(var o=String(t);o.length2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,o){var s=Lh(t,a);if((n>0||s>-n)&&(s+=n),t===Ih.Hours)0===s&&-12===n&&(s=12);else if(t===Ih.FractionalSeconds)return Ph(s,e);var u=yh(o,ph.MinusSign);return Mh(s,e,u,i,r)}}function Lh(t,e){switch(t){case Ih.FullYear:return e.getFullYear();case Ih.Month:return e.getMonth();case Ih.Date:return e.getDate();case Ih.Hours:return e.getHours();case Ih.Minutes:return e.getMinutes();case Ih.Seconds:return e.getSeconds();case Ih.FractionalSeconds:return e.getMilliseconds();case Ih.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}function Nh(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hh.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,a){return Vh(r,a,t,e,n,i)}}function Vh(t,e,n,i,r,a){switch(n){case Oh.Months:return function(t,e,n){var i=nl(t),r=wh([i[rl.MonthsFormat],i[rl.MonthsStandalone]],e);return wh(r,n)}(e,r,i)[t.getMonth()];case Oh.Days:return function(t,e,n){var i=nl(t),r=wh([i[rl.DaysFormat],i[rl.DaysStandalone]],e);return wh(r,n)}(e,r,i)[t.getDay()];case Oh.DayPeriods:var o=t.getHours(),s=t.getMinutes();if(a){var l=function(t){var e=nl(t);return kh(e),(e[rl.ExtraData][2]||[]).map((function(t){return"string"==typeof t?Ch(t):[Ch(t[0]),Ch(t[1])]}))}(e),c=function(t,e,n){var i=nl(t);kh(i);var r=wh([i[rl.ExtraData][0],i[rl.ExtraData][1]],e)||[];return wh(r,n)||[]}(e,r,i),h=l.findIndex((function(t){if(Array.isArray(t)){var e=u(t,2),n=e[0],i=e[1],r=o>=n.hours&&s>=n.minutes,a=o0?Math.floor(r/60):Math.ceil(r/60);switch(t){case Ah.Short:return(r>=0?"+":"")+Mh(o,2,a)+Mh(Math.abs(r%60),2,a);case Ah.ShortGMT:return"GMT"+(r>=0?"+":"")+Mh(o,1,a);case Ah.Long:return"GMT"+(r>=0?"+":"")+Mh(o,2,a)+":"+Mh(Math.abs(r%60),2,a);case Ah.Extended:return 0===i?"Z":(r>=0?"+":"")+Mh(o,2,a)+":"+Mh(Math.abs(r%60),2,a);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function jh(t){var e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}function zh(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Hh(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r;if(e){var a=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,o=n.getDate();r=1+Math.floor((o+a)/7)}else{var s=jh(n.getFullYear()),u=zh(n).getTime()-s.getTime();r=1+Math.round(u/6048e5)}return Mh(r,t,yh(i,ph.MinusSign))}}var Uh={};function Wh(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function qh(t){return t instanceof Date&&!isNaN(t.valueOf())}var Gh=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Yh(t,e,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",u=!1;if(isFinite(t)){var l=Xh(t);o&&(l=$h(l));var c=e.minInt,h=e.minFrac,d=e.maxFrac;if(a){var f=a.match(Gh);if(null===f)throw new Error("".concat(a," is not a valid digit info"));var p=f[1],m=f[3],v=f[5];null!=p&&(c=Jh(p)),null!=m&&(h=Jh(m)),null!=v?d=Jh(v):null!=m&&h>d&&(d=h)}Qh(l,h,d);var g=l.digits,y=l.integerLen,_=l.exponent,b=[];for(u=g.every((function(t){return!t}));y0?b=g.splice(y,g.length):(b=g,g=[0]);var k=[];for(g.length>=e.lgSize&&k.unshift(g.splice(-e.lgSize,g.length).join(""));g.length>e.gSize;)k.unshift(g.splice(-e.gSize,g.length).join(""));g.length&&k.unshift(g.join("")),s=k.join(yh(n,i)),b.length&&(s+=yh(n,r)+b.join("")),_&&(s+=yh(n,ph.Exponential)+"+"+_)}else s=yh(n,ph.Infinity);return t<0&&!u?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}function Kh(t,e,n,i,r){var a=Zh(_h(e,lh.Currency),yh(e,ph.MinusSign));return a.minFrac=function(t){var e,n=uh[t];return n&&(e=n[2]),"number"==typeof e?e:2}(i),a.maxFrac=a.minFrac,Yh(t,a,e,ph.CurrencyGroup,ph.CurrencyDecimal,r).replace("\xa4",n).replace("\xa4","").trim()}function Zh(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],a=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=o[0],u=o[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var l=0;l-1&&(o=o.replace(".","")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;"0"===o.charAt(i);i++);if(i===(a=o.length))e=[0],n=1;else{for(a--;"0"===o.charAt(a);)a--;for(n-=i,e=[],r=0;i<=a;i++,r++)e[r]=Number(o.charAt(i))}return n>22&&(e=e.splice(0,21),s=n-1,n=1),{digits:e,exponent:s,integerLen:n}}function Qh(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction (".concat(e,") is higher than the maximum (").concat(n,")."));var i=t.digits,r=i.length-t.integerLen,a=Math.min(Math.max(e,r),n),o=a+t.integerLen,s=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(var u=o;u=5)if(o-1<0){for(var c=0;c>o;c--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;r=d?i.pop():h=!1),e>=10?1:0}),0);f&&(i.unshift(f),t.integerLen++)}function Jh(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var td=function t(){y(this,t)};function ed(t,e,n,i){var r="=".concat(t);if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t,i),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(t,'"'))}var nd=function(){var t=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this)).locale=t,i}return b(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return nl(t)[rl.PluralCase]}(e||this.locale)(t)){case ch.Zero:return"zero";case ch.One:return"one";case ch.Two:return"two";case ch.Few:return"few";case ch.Many:return"many";default:return"other"}}}]),n}(td);return t.\u0275fac=function(e){return new(e||t)(fe(Ql))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}();function id(t,e){e=encodeURIComponent(e);var n,i=h(t.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,a=r.indexOf("="),o=u(-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],2),s=o[1];if(o[0].trim()===e)return decodeURIComponent(s)}}catch(l){i.e(l)}finally{i.f()}return null}var rd=function(){var t=function(){function t(e,n,i,r){y(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return b(t,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Bt(t.item)));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(n){return e._toggleClass(n,!!t[n])})))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))}},{key:"_toggleClass",value:function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)}))}},{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Zo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Vu),rs(Bu),rs(_u),rs(Cu))},t.\u0275dir=Be({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),ad=function(){var t=function(){function t(e){y(this,t),this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}return b(t,[{key:"ngOnChanges",value:function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(_e);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(yu)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(qu))},t.\u0275dir=Be({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[Qe]}),t}(),od=function(){function t(e,n,i,r){y(this,t),this.$implicit=e,this.ngForOf=n,this.index=i,this.count=r}return b(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}(),sd=function(){var t=function(){function t(e,n,i){y(this,t),this._viewContainer=e,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return b(t,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation((function(t,i,r){if(null==t.previousIndex){var a=e._viewContainer.createEmbeddedView(e._template,new od(null,e._ngForOf,-1,-1),null===r?void 0:r),o=new ud(t,a);n.push(o)}else if(null==r)e._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=e._viewContainer.get(i);e._viewContainer.move(s,r);var u=new ud(t,s);n.push(u)}}));for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:Et.Default,e=Co(!0);if(null!=e||t&Et.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=je({name:"async",type:t,pure:!1}),t}(),Sd=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"transform",value:function(e){if(!e)return e;if("string"!=typeof e)throw bd(t,e);return e.toLowerCase()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"lowercase",type:t,pure:!0}),t}(),Ed=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,Dd=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"transform",value:function(e){if(!e)return e;if("string"!=typeof e)throw bd(t,e);return e.replace(Ed,(function(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"titlecase",type:t,pure:!0}),t}(),Ad=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"transform",value:function(e){if(!e)return e;if("string"!=typeof e)throw bd(t,e);return e.toUpperCase()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"uppercase",type:t,pure:!0}),t}(),Id=function(){var t=function(){function t(e){y(this,t),this.locale=e}return b(t,[{key:"transform",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return Th(e,n,r||this.locale,i)}catch(a){throw bd(t,a.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Ql))},t.\u0275pipe=je({name:"date",type:t,pure:!0}),t}(),Od=/#/g,Td=function(){var t=function(){function t(e){y(this,t),this._localization=e}return b(t,[{key:"transform",value:function(e,n,i){if(null==e)return"";if("object"!=typeof n||null===n)throw bd(t,n);return n[ed(e,Object.keys(n),this._localization,i)].replace(Od,e.toString())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(td))},t.\u0275pipe=je({name:"i18nPlural",type:t,pure:!0}),t}(),Rd=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"transform",value:function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw bd(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"i18nSelect",type:t,pure:!0}),t}(),Md=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"transform",value:function(t){return JSON.stringify(t,null,2)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"json",type:t,pure:!1}),t}();function Pd(t,e){return{key:t,value:e}}var Fd=function(){var t=function(){function t(e){y(this,t),this.differs=e,this.keyValues=[]}return b(t,[{key:"transform",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ld;if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());var i=this.differ.diff(t);return i&&(this.keyValues=[],i.forEachItem((function(t){e.keyValues.push(Pd(t.key,t.currentValue))})),this.keyValues.sort(n)),this.keyValues}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Bu))},t.\u0275pipe=je({name:"keyvalue",type:t,pure:!1}),t}();function Ld(t,e){var n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n1&&void 0!==arguments[1]?arguments[1]:"USD";y(this,t),this._locale=e,this._defaultCurrencyCode=n}return b(t,[{key:"transform",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;if(jd(e))return null;a=a||this._locale,"boolean"==typeof i&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),i=i?"symbol":"code");var o=n||this._defaultCurrencyCode;"code"!==i&&(o="symbol"===i||"symbol-narrow"===i?xh(o,"symbol"===i?"wide":"narrow",a):i);try{var s=zd(e);return Kh(s,a,o,n,r)}catch(u){throw bd(t,u.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Ql),rs(Jl))},t.\u0275pipe=je({name:"currency",type:t,pure:!0}),t}();function jd(t){return null==t||""===t||t!=t}function zd(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error("".concat(t," is not a number"));return t}var Hd,Ud=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"transform",value:function(e,n,i){if(null==e)return e;if(!this.supports(e))throw bd(t,e);return e.slice(n,i)}},{key:"supports",value:function(t){return"string"==typeof t||Array.isArray(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"slice",type:t,pure:!1}),t}(),Wd=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[{provide:td,useClass:nd}]}),t}(),qd=function(){var t=function t(){y(this,t)};return t.\u0275prov=It({token:t,providedIn:"root",factory:function(){return new Gd(fe(Wc),window,fe(Hi))}}),t}(),Gd=function(){function t(e,n,i){y(this,t),this.document=e,this.window=n,this.errorHandler=i,this.offset=function(){return[0,0]}}return b(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var e=this.document.querySelector("#".concat(t));if(e)return void this.scrollToElement(e);var n=this.document.querySelector("[name='".concat(t,"']"));if(n)return void this.scrollToElement(n)}catch(i){this.errorHandler.handleError(i)}}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}]),t}(),Yd=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"getProperty",value:function(t,e){return t[e]}},{key:"log",value:function(t){window.console&&window.console.log&&window.console.log(t)}},{key:"logGroup",value:function(t){window.console&&window.console.group&&window.console.group(t)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){return t.parentNode&&t.parentNode.removeChild(t),t}},{key:"getValue",value:function(t){return t.value}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(t){var e,n=Kd||(Kd=document.querySelector("base"))?Kd.getAttribute("href"):null;return null==n?null:(e=n,Hd||(Hd=document.createElement("a")),Hd.setAttribute("href",e),"/"===Hd.pathname.charAt(0)?Hd.pathname:"/"+Hd.pathname)}},{key:"resetBaseElement",value:function(){Kd=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(t){return id(document.cookie,t)}}],[{key:"makeCurrent",value:function(){var t;t=new n,zc||(zc=t)}}]),n}(function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.call(this)}return b(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(Uc)),Kd=null,Zd=new re("TRANSITION_ID"),$d=[{provide:Ul,useFactory:function(t,e,n){return function(){n.get(Wl).donePromise.then((function(){var n=Hc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter((function(e){return e.getAttribute("ng-transition")===t})).forEach((function(t){return n.remove(t)}))}))}},deps:[Zd,Wc,Uo],multi:!0}],Xd=function(){function t(){y(this,t)}return b(t,[{key:"addToWindow",value:function(t){$t.getAngularTestability=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},$t.getAllAngularTestabilities=function(){return t.getAllTestabilities()},$t.getAllAngularRootElements=function(){return t.getAllRootElements()},$t.frameworkStabilizers||($t.frameworkStabilizers=[]),$t.frameworkStabilizers.push((function(t){var e=$t.getAllAngularTestabilities(),n=e.length,i=!1,r=function(e){i=i||e,0==--n&&t(i)};e.forEach((function(t){t.whenStable(r)}))}))}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?Hc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,kc=e}}]),t}(),Qd=new re("EventManagerPlugins"),Jd=function(){var t=function(){function t(e,n){var i=this;y(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach((function(t){return t.manager=i})),this._plugins=e.slice().reverse()}return b(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,i=0;i-1&&(e.splice(n,1),a+=t+".")})),a+=r,0!=e.length||0===r.length)return null;var o={};return o.domEventName=i,o.fullKey=a,o}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&gf.hasOwnProperty(e)&&(e=gf[e]))}return vf[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),mf.forEach((function(i){i!=n&&(0,yf[i])(t)&&(e+=i+".")})),e+=n}},{key:"eventCallback",value:function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded((function(){return e(r)}))}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(tf);return t.\u0275fac=function(e){return new(e||t)(fe(Wc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),bf=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return fe(kf)},token:t,providedIn:"root"}),t}(),kf=function(){var t=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this))._doc=t,i}return b(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case xr.NONE:return e;case xr.HTML:return $i(e,"HTML")?Zi(e):wr(this._doc,String(e));case xr.STYLE:return $i(e,"Style")?Zi(e):e;case xr.SCRIPT:if($i(e,"Script"))return Zi(e);throw new Error("unsafe value used in a script context");case xr.URL:return Xi(e),$i(e,"URL")?Zi(e):ar(String(e));case xr.RESOURCE_URL:if($i(e,"ResourceURL"))return Zi(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return new Wi(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return new qi(t)}},{key:"bypassSecurityTrustScript",value:function(t){return new Gi(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return new Yi(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return new Ki(t)}}]),n}(bf);return t.\u0275fac=function(e){return new(e||t)(fe(Wc))},t.\u0275prov=It({factory:function(){return t=fe(ae),new kf(t.get(Wc));var t},token:t,providedIn:"root"}),t}(),wf=Ec(Vc,"browser",[{provide:Zl,useValue:"browser"},{provide:Kl,useValue:function(){Yd.makeCurrent(),Xd.init()},multi:!0},{provide:Wc,useFactory:function(){return function(t){rn=t}(document),document},deps:[]}]),Cf=[[],{provide:Ao,useValue:"root"},{provide:Hi,useFactory:function(){return new Hi},deps:[]},{provide:Qd,useClass:pf,multi:!0,deps:[Wc,cc,Zl]},{provide:Qd,useClass:_f,multi:!0,deps:[Wc]},[],{provide:cf,useClass:cf,deps:[Jd,nf,ql]},{provide:ku,useExisting:cf},{provide:ef,useExisting:nf},{provide:nf,useClass:nf,deps:[Wc]},{provide:_c,useClass:_c,deps:[cc]},{provide:Jd,useClass:Jd,deps:[Qd,cc]},[]],xf=function(){var t=function(){function t(e){if(y(this,t),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 b(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:ql,useValue:e.appId},{provide:Zd,useExisting:ql},$d]}}}]),t}();return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)(fe(t,12))},providers:Cf,imports:[Wd,jc]}),t}();function Sf(){for(var t=arguments.length,e=new Array(t),n=0;n0){var i=t.slice(0,e),r=i.toLowerCase(),a=t.slice(e+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(a):n.headers.set(r,[a])}}))}:function(){n.headers=new Map,Object.keys(e).forEach((function(t){var i=e[t],r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(t,r))}))}:this.headers=new Map}return b(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{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(t){return e.applyUpdate(t)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))}))}},{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(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,l(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var a=this.headers.get(e);if(!a)return;0===(a=a.filter((function(t){return-1===r.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return t(e.normalizedNames.get(n),e.headers.get(n))}))}}]),t}(),Mf=function(){function t(){y(this,t)}return b(t,[{key:"encodeKey",value:function(t){return Ff(t)}},{key:"encodeValue",value:function(t){return Ff(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function Pf(t,e){var n=new Map;return t.length>0&&t.split("&").forEach((function(t){var i=t.indexOf("="),r=u(-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],2),a=r[0],o=r[1],s=n.get(a)||[];s.push(o),n.set(a,s)})),n}function Ff(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Lf=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(y(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Mf,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Pf(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach((function(t){var i=n.fromObject[t];e.map.set(t,Array.isArray(i)?i:[i])}))):this.map=null}return b(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map((function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return n+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).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 t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var i=t.map.get(e.param)||[],r=i.indexOf(e.value);-1!==r&&i.splice(r,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)}}]),t}();function Nf(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Vf(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Bf(t){return"undefined"!=typeof FormData&&t instanceof FormData}var jf=function(){function t(e,n,i,r){var a;if(y(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){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,a=r):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new Rf),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,i=e.url||this.url,r=e.responseType||this.responseType,a=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,u=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce((function(t,n){return t.set(n,e.setHeaders[n])}),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((function(t,n){return t.set(n,e.setParams[n])}),l)),new t(n,i,a,{params:l,headers:u,reportProgress:s,responseType:r,withCredentials:o})}}]),t}(),zf=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),Hf=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";y(this,t),this.headers=e.headers||new Rf,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},Uf=function(t){f(n,t);var e=g(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,n),(t=e.call(this,i)).type=zf.ResponseHeader,t}return b(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(Hf),Wf=function(t){f(n,t);var e=g(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,n),(t=e.call(this,i)).type=zf.Response,t.body=void 0!==i.body?i.body:null,t}return b(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(Hf),qf=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),i.error=t.error||null,i}return n}(Hf);function Gf(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Yf=function(){var t=function(){function t(e){y(this,t),this.handler=e}return b(t,[{key:"request",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof jf)n=t;else{var a=void 0;a=r.headers instanceof Rf?r.headers:new Rf(r.headers);var o=void 0;r.params&&(o=r.params instanceof Lf?r.params:new Lf({fromObject:r.params})),n=new jf(t,e,void 0!==r.body?r.body:null,{headers:a,params:o,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Sf(n).pipe(Ef((function(t){return i.handler.handle(t)})));if(t instanceof jf||"events"===r.observe)return s;var u=s.pipe(Df((function(t){return t instanceof Wf})));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(G((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return u.pipe(G((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return u.pipe(G((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return u.pipe(G((function(t){return t.body})))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new Lf).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,Gf(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,Gf(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,Gf(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Of))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),Kf=function(){function t(e,n){y(this,t),this.next=e,this.interceptor=n}return b(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),Zf=new re("HTTP_INTERCEPTORS"),$f=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),Xf=/^\)\]\}',?\n/,Qf=function t(){y(this,t)},Jf=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),tp=function(){var t=function(){function t(e){y(this,t),this.xhrFactory=e}return b(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new V((function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((function(t,e){return i.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(t.responseType){var a=t.responseType.toLowerCase();i.responseType="json"!==a?a:"text"}var o=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Rf(i.getAllResponseHeaders()),a=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new Uf({headers:r,status:e,statusText:n,url:a})},l=function(){var e=u(),r=e.headers,a=e.status,o=e.statusText,s=e.url,l=null;204!==a&&(l=void 0===i.response?i.responseText:i.response),0===a&&(a=l?200:0);var c=a>=200&&a<300;if("json"===t.responseType&&"string"==typeof l){var h=l;l=l.replace(Xf,"");try{l=""!==l?JSON.parse(l):null}catch(d){l=h,c&&(c=!1,l={error:d,text:l})}}c?(n.next(new Wf({body:l,headers:r,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new qf({error:l,headers:r,status:a,statusText:o,url:s||void 0}))},c=function(t){var e=u(),r=new qf({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e.url||void 0});n.error(r)},h=!1,d=function(e){h||(n.next(u()),h=!0);var r={type:zf.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(t){var e={type:zf.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",l),i.addEventListener("error",c),t.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),n.next({type:zf.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("load",l),t.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),ep=new re("XSRF_COOKIE_NAME"),np=new re("XSRF_HEADER_NAME"),ip=function t(){y(this,t)},rp=function(){var t=function(){function t(e,n,i){y(this,t),this.doc=e,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return b(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=id(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Wc),fe(Zl),fe(ep))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),ap=function(){var t=function(){function t(e,n){y(this,t),this.tokenService=e,this.headerName=n}return b(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(ip),fe(np))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),op=function(){var t=function(){function t(e,n){y(this,t),this.backend=e,this.injector=n,this.chain=null}return b(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(Zf,[]);this.chain=e.reduceRight((function(t,e){return new Kf(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Tf),fe(Uo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),sp=function(){var t=function(){function t(){y(this,t)}return b(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:ap,useClass:$f}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:ep,useValue:e.cookieName}:[],e.headerName?{provide:np,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[ap,{provide:Zf,useExisting:ap,multi:!0},{provide:ip,useClass:rp},{provide:ep,useValue:"XSRF-TOKEN"},{provide:np,useValue:"X-XSRF-TOKEN"}]}),t}(),up=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[Yf,{provide:Of,useClass:op},tp,{provide:Tf,useExisting:tp},Jf,{provide:Qf,useExisting:Jf}],imports:[[sp.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),lp=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this))._value=t,i}return b(n,[{key:"_subscribe",value:function(t){var e=r(i(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new j;return this._value}},{key:"next",value:function(t){r(i(n.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),n}(U),cp=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),hp=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"notifyNext",value:function(t,e,n,i,r){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(M),dp=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this)).parent=t,a.outerValue=i,a.outerIndex=r,a.index=0,a}return b(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(M);function fp(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new dp(t,n,i);if(!r.closed)return e instanceof V?e.subscribe(r):tt(e)(r)}var pp={};function mp(){for(var t=arguments.length,e=new Array(t),n=0;n0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:Ip;return function(e){return e.lift(new Dp(t))}}var Dp=function(){function t(e){y(this,t),this.errorFactory=e}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Ap(t,this.errorFactory))}}]),t}(),Ap=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).errorFactory=i,r.hasValue=!1,r}return b(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(M);function Ip(){return new cp}function Op(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new Tp(t))}}var Tp=function(){function t(e){y(this,t),this.defaultValue=e}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Rp(t,this.defaultValue))}}]),t}(),Rp=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).defaultValue=i,r.isEmpty=!0,r}return b(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(M);function Mp(t){return function(e){var n=new Pp(t),i=e.lift(n);return n.caught=i}}var Pp=function(){function t(e){y(this,t),this.selector=e}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Fp(t,this.selector,this.caught))}}]),t}(),Fp=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t)).selector=i,a.caught=r,a}return b(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void r(i(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var a=new it(this);this.add(a);var o=at(e,a);o!==a&&this.add(o)}}}]),n}(rt);function Lp(t){return function(e){return 0===t?_p():e.lift(new Np(t))}}var Np=function(){function t(e){if(y(this,t),this.total=e,this.total<0)throw new wp}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Vp(t,this.total))}}]),t}(),Vp=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).total=i,r.count=0,r}return b(n,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}]),n}(M);function Bp(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Df((function(e,n){return t(e,n,i)})):L,Lp(1),n?Op(e):Ep((function(){return new cp})))}}function jp(){}function zp(t,e,n){return function(i){return i.lift(new Hp(t,e,n))}}var Hp=function(){function t(e,n,i){y(this,t),this.nextOrObserver=e,this.error=n,this.complete=i}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Up(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),Up=function(t){f(n,t);var e=g(n);function n(t,i,r,o){var s;return y(this,n),(s=e.call(this,t))._tapNext=jp,s._tapError=jp,s._tapComplete=jp,s._tapError=r||jp,s._tapComplete=o||jp,x(i)?(s._context=a(s),s._tapNext=i):i&&(s._context=i,s._tapNext=i.next||jp,s._tapError=i.error||jp,s._tapComplete=i.complete||jp),s}return b(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(M),Wp=function(){function t(e,n,i){y(this,t),this.predicate=e,this.thisArg=n,this.source=i}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new qp(t,this.predicate,this.thisArg,this.source))}}]),t}(),qp=function(t){f(n,t);var e=g(n);function n(t,i,r,o){var s;return y(this,n),(s=e.call(this,t)).predicate=i,s.thisArg=r,s.source=o,s.index=0,s.thisArg=r||a(s),s}return b(n,[{key:"notifyComplete",value:function(t){this.destination.next(t),this.destination.complete()}},{key:"_next",value:function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(M);function Gp(t,e){return"function"==typeof e?function(n){return n.pipe(Gp((function(n,i){return nt(t(n,i)).pipe(G((function(t,r){return e(n,t,i,r)})))})))}:function(e){return e.lift(new Yp(t))}}var Yp=function(){function t(e){y(this,t),this.project=e}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Kp(t,this.project))}}]),t}(),Kp=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).project=i,r.index=0,r}return b(n,[{key:"_next",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}},{key:"_innerSub",value:function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new it(this),i=this.destination;i.add(n),this.innerSubscription=at(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||r(i(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&r(i(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t){this.destination.next(t)}}]),n}(rt);function Zp(){return kp()(Sf.apply(void 0,arguments))}function $p(){for(var t=arguments.length,e=new Array(t),n=0;n2&&void 0!==arguments[2]&&arguments[2];y(this,t),this.accumulator=e,this.seed=n,this.hasSeed=i}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Qp(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),Qp=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t)).accumulator=i,o._seed=r,o.hasSeed=a,o.index=0,o}return b(n,[{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=e,this.destination.next(e)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),n}(M),Jp=function(){function t(e){y(this,t),this.callback=e}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new tm(t,this.callback))}}]),t}(),tm=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).add(new E(i)),r}return n}(M),em=function t(e,n){y(this,t),this.id=e,this.url=n},nm=function(t){f(n,t);var e=g(n);function n(t,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return y(this,n),(r=e.call(this,t,i)).navigationTrigger=a,r.restoredState=o,r}return b(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(em),im=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a}return b(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(em),rm=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t,i)).reason=r,a}return b(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(em),am=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t,i)).error=r,a}return b(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(em),om=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return b(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(em),sm=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return b(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(em),um=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o){var s;return y(this,n),(s=e.call(this,t,i)).urlAfterRedirects=r,s.state=a,s.shouldActivate=o,s}return b(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(em),lm=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return b(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(em),cm=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return b(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(em),hm=function(){function t(e){y(this,t),this.route=e}return b(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),dm=function(){function t(e){y(this,t),this.route=e}return b(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),fm=function(){function t(e){y(this,t),this.snapshot=e}return b(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),pm=function(){function t(e){y(this,t),this.snapshot=e}return b(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),mm=function(){function t(e){y(this,t),this.snapshot=e}return b(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),vm=function(){function t(e){y(this,t),this.snapshot=e}return b(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),gm=function(){function t(e,n,i){y(this,t),this.routerEvent=e,this.position=n,this.anchor=i}return b(t,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),t}(),ym=function(){function t(e){y(this,t),this.params=e||{}}return b(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function _m(t){return new ym(t)}function bm(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function km(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length-1})):t===e}function xm(t){return Array.prototype.concat.apply([],t)}function Sm(t){return t.length>0?t[t.length-1]:null}function Em(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Dm(t){return vs(t)?t:ms(t)?nt(Promise.resolve(t)):Sf(t)}function Am(t,e,n){return n?function(t,e){return wm(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Rm(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((function(n){return Cm(t[n],e[n])}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,r){if(n.segments.length>r.length)return!!Rm(n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!Rm(n.segments,r))return!1;for(var a in i.children){if(!n.children[a])return!1;if(!t(n.children[a],i.children[a]))return!1}return!0}var o=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!Rm(n.segments,o)&&!!n.children.primary&&e(n.children.primary,i,s)}(e,n,n.segments)}(t.root,e.root)}var Im=function(){function t(e,n,i){y(this,t),this.root=e,this.queryParams=n,this.fragment=i}return b(t,[{key:"toString",value:function(){return Lm.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=_m(this.queryParams)),this._queryParamMap}}]),t}(),Om=function(){function t(e,n){var i=this;y(this,t),this.segments=e,this.children=n,this.parent=null,Em(n,(function(t,e){return t.parent=i}))}return b(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Nm(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),Tm=function(){function t(e,n){y(this,t),this.path=e,this.parameters=n}return b(t,[{key:"toString",value:function(){return Um(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=_m(this.parameters)),this._parameterMap}}]),t}();function Rm(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function Mm(t,e){var n=[];return Em(t.children,(function(t,i){"primary"===i&&(n=n.concat(e(t,i)))})),Em(t.children,(function(t,i){"primary"!==i&&(n=n.concat(e(t,i)))})),n}var Pm=function t(){y(this,t)},Fm=function(){function t(){y(this,t)}return b(t,[{key:"parse",value:function(t){var e=new Km(t);return new Im(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,i="/".concat(function t(e,n){if(!e.hasChildren())return Nm(e);if(n){var i=e.children.primary?t(e.children.primary,!1):"",r=[];return Em(e.children,(function(e,n){"primary"!==n&&r.push("".concat(n,":").concat(t(e,!1)))})),r.length>0?"".concat(i,"(").concat(r.join("//"),")"):i}var a=Mm(e,(function(n,i){return"primary"===i?[t(e.children.primary,!1)]:["".concat(i,":").concat(t(n,!1))]}));return"".concat(Nm(e),"/(").concat(a.join("//"),")")}(t.root,!0)),r=(e=t.queryParams,(n=Object.keys(e).map((function(t){var n=e[t];return Array.isArray(n)?n.map((function(e){return"".concat(Bm(t),"=").concat(Bm(e))})).join("&"):"".concat(Bm(t),"=").concat(Bm(n))}))).length?"?".concat(n.join("&")):""),a="string"==typeof t.fragment?"#".concat(encodeURI(t.fragment)):"";return"".concat(i).concat(r).concat(a)}}]),t}(),Lm=new Fm;function Nm(t){return t.segments.map((function(t){return Um(t)})).join("/")}function Vm(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bm(t){return Vm(t).replace(/%3B/gi,";")}function jm(t){return Vm(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zm(t){return decodeURIComponent(t)}function Hm(t){return zm(t.replace(/\+/g,"%20"))}function Um(t){return"".concat(jm(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(jm(t),"=").concat(jm(e[t]))})).join("")));var e}var Wm=/^[^\/()?;=#]+/;function qm(t){var e=t.match(Wm);return e?e[0]:""}var Gm=/^[^=?&#]+/,Ym=/^[^?&#]+/,Km=function(){function t(e){y(this,t),this.url=e,this.remaining=e}return b(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Om([],{}):new Om([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Om(t,e)),n}},{key:"parseSegment",value:function(){var t=qm(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Tm(zm(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=qm(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=qm(this.remaining);i&&this.capture(n=i)}t[zm(e)]=zm(n)}}},{key:"parseQueryParam",value:function(t){var e,n=(e=this.remaining.match(Gm))?e[0]:"";if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(Ym);return e?e[0]:""}(this.remaining);r&&this.capture(i=r)}var a=Hm(n),o=Hm(i);if(t.hasOwnProperty(a)){var s=t[a];Array.isArray(s)||(t[a]=s=[s]),s.push(o)}else t[a]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=qm(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var a=this.parseChildren();e[r]=1===Object.keys(a).length?a.primary:new Om([],a),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Zm=function(){function t(e){y(this,t),this._root=e}return b(t,[{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=$m(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=$m(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Xm(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))}},{key:"pathFromRoot",value:function(t){return Xm(t,this._root).map((function(t){return t.value}))}},{key:"root",get:function(){return this._root.value}}]),t}();function $m(t,e){if(t===e.value)return e;var n,i=h(e.children);try{for(i.s();!(n=i.n()).done;){var r=$m(t,n.value);if(r)return r}}catch(a){i.e(a)}finally{i.f()}return null}function Xm(t,e){if(t===e.value)return[e];var n,i=h(e.children);try{for(i.s();!(n=i.n()).done;){var r=Xm(t,n.value);if(r.length)return r.unshift(e),r}}catch(a){i.e(a)}finally{i.f()}return[]}var Qm=function(){function t(e,n){y(this,t),this.value=e,this.children=n}return b(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function Jm(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var tv=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).snapshot=i,sv(a(r),t),r}return b(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Zm);function ev(t,e){var n=function(t,e){var n=new av([],{},{},"",{},"primary",e,null,t.root,-1,{});return new ov("",new Qm(n,[]))}(t,e),i=new lp([new Tm("",{})]),r=new lp({}),a=new lp({}),o=new lp({}),s=new lp(""),u=new nv(i,r,o,s,a,"primary",e,n.root);return u.snapshot=n.root,new tv(new Qm(u,[]),n)}var nv=function(){function t(e,n,i,r,a,o,s,u){y(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=u}return b(t,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(G((function(t){return _m(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(G((function(t){return _m(t)})))),this._queryParamMap}}]),t}();function iv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var r=n[i],a=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return rv(n.slice(i))}function rv(t){return t.reduce((function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}var av=function(){function t(e,n,i,r,a,o,s,u,l,c,h){y(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return b(t,[{key:"toString",value:function(){var t=this.url.map((function(t){return t.toString()})).join("/"),e=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(e,"')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=_m(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=_m(this.queryParams)),this._queryParamMap}}]),t}(),ov=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,i)).url=t,sv(a(r),i),r}return b(n,[{key:"toString",value:function(){return uv(this._root)}}]),n}(Zm);function sv(t,e){e.value._routerState=t,e.children.forEach((function(e){return sv(t,e)}))}function uv(t){var e=t.children.length>0?" { ".concat(t.children.map(uv).join(", ")," } "):"";return"".concat(t.value).concat(e)}function lv(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,wm(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),wm(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;nr;){if(a-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new mv(i,!1,r-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(a,e,t),s=o.processChildren?yv(o.segmentGroup,o.index,a.commands):gv(o.segmentGroup,o.index,a.commands);return fv(o.segmentGroup,s,e,i,r)}function dv(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function fv(t,e,n,i,r){var a={};return i&&Em(i,(function(t,e){a[e]=Array.isArray(t)?t.map((function(t){return"".concat(t)})):"".concat(t)})),new Im(n.root===t?e:function t(e,n,i){var r={};return Em(e.children,(function(e,a){r[a]=e===n?i:t(e,n,i)})),new Om(e.segments,r)}(n.root,t,e),a,r)}var pv=function(){function t(e,n,i){if(y(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=i,e&&i.length>0&&dv(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(r&&r!==Sm(i))throw new Error("{outlets:{}} has to be the last command")}return b(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),mv=function t(e,n,i){y(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i};function vv(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:"".concat(t)}function gv(t,e,n){if(t||(t=new Om([],{})),0===t.segments.length&&t.hasChildren())return yv(t,e,n);var i=function(t,e,n){for(var i=0,r=e,a={match:!1,pathIndex:0,commandIndex:0};r=n.length)return a;var o=t.segments[r],s=vv(n[i]),u=i0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!wv(s,u,o))return a;i+=2}else{if(!wv(s,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex0?new Om([],c({},"primary",t)):t;return new Im(i,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(G((function(t){return new Om([],t)}))):this.expandSegment(t,n,e,n.segments,i,!0)}},{key:"expandChildren",value:function(t,e,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return Sf({});var a=[],o=[],s={};return Em(n,(function(n,r){var u,l,c=(u=r,l=n,i.expandSegmentGroup(t,e,l,u)).pipe(G((function(t){return s[r]=t})));"primary"===r?a.push(c):o.push(c)})),Sf.apply(null,a.concat(o)).pipe(kp(),function(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Df((function(e,n){return t(e,n,i)})):L,Cp(1),n?Op(e):Ep((function(){return new cp})))}}(),G((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(t,e,n,i,r,a){var o=this;return Sf.apply(void 0,l(n)).pipe(G((function(s){return o.expandSegmentAgainstRoute(t,e,n,s,i,r,a).pipe(Mp((function(t){if(t instanceof Av)return Sf(null);throw t})))})),kp(),Bp((function(t){return!!t})),Mp((function(t,n){if(t instanceof cp||"EmptyError"===t.name){if(o.noLeftoversInUrl(e,i,r))return Sf(new Om([],{}));throw new Av(e)}throw t})))}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,i,r,a,o){return Nv(i)!==a?Ov(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a):Ov(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,i){var r=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Tv(a):this.lineralizeSegments(n,a).pipe(ot((function(n){var a=new Om(n,{});return r.expandSegment(t,a,e,n,i,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,a){var o=this,s=Pv(e,i,r),u=s.consumedSegments,l=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return Ov(e);var h=this.applyRedirectCommands(u,i.redirectTo,c);return i.redirectTo.startsWith("/")?Tv(h):this.lineralizeSegments(i,h).pipe(ot((function(i){return o.expandSegment(t,e,n,i.concat(r.slice(l)),a,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,i){var r=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(G((function(t){return n._loadedConfig=t,new Om(i,{})}))):Sf(new Om(i,{}));var a=Pv(e,n,i),o=a.consumedSegments,s=a.lastChild;if(!a.matched)return Ov(e);var u=i.slice(s);return this.getChildConfig(t,n,i).pipe(ot((function(t){var n=t.module,i=t.routes,a=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some((function(n){return Lv(t,e,n)&&"primary"!==Nv(n)}))}(t,n,i)?{segmentGroup:Fv(new Om(e,function(t,e){var n={};n.primary=e;var i,r=h(t);try{for(r.s();!(i=r.n()).done;){var a=i.value;""===a.path&&"primary"!==Nv(a)&&(n[Nv(a)]=new Om([],{}))}}catch(o){r.e(o)}finally{r.f()}return n}(i,new Om(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return Lv(t,e,n)}))}(t,n,i)?{segmentGroup:Fv(new Om(t.segments,function(t,e,n,i){var r,a={},o=h(n);try{for(o.s();!(r=o.n()).done;){var s=r.value;Lv(t,e,s)&&!i[Nv(s)]&&(a[Nv(s)]=new Om([],{}))}}catch(u){o.e(u)}finally{o.f()}return Object.assign(Object.assign({},i),a)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,u,i),s=a.segmentGroup,l=a.slicedSegments;return 0===l.length&&s.hasChildren()?r.expandChildren(n,i,s).pipe(G((function(t){return new Om(o,t)}))):0===i.length&&0===l.length?Sf(new Om(o,{})):r.expandSegment(n,s,i,l,"primary",!0).pipe(G((function(t){return new Om(o.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?Sf(new Sv(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Sf(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(ot((function(n){return n?i.configLoader.load(t.injector,e).pipe(G((function(t){return e._loadedConfig=t,t}))):function(t){return new V((function(e){return e.error(bm("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):Sf(new Sv([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var i,r=this,a=e.canLoad;return a&&0!==a.length?nt(a).pipe(G((function(i){var r,a=t.get(i);if(function(t){return t&&Ev(t.canLoad)}(a))r=a.canLoad(e,n);else{if(!Ev(a))throw new Error("Invalid CanLoad guard");r=a(e,n)}return Dm(r)}))).pipe(kp(),zp((function(t){if(Dv(t)){var e=bm('Redirecting to "'.concat(r.urlSerializer.serialize(t),'"'));throw e.url=t,e}})),(i=function(t){return!0===t},function(t){return t.lift(new Wp(i,void 0,t))})):Sf(!0)}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Sf(n);if(i.numberOfChildren>1||!i.children.primary)return Rv(t.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new Im(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return Em(t,(function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t})),n}},{key:"createSegmentGroup",value:function(t,e,n,i){var r=this,a=this.createSegments(t,e.segments,n,i),o={};return Em(e.children,(function(e,a){o[a]=r.createSegmentGroup(t,e,n,i)})),new Om(a,o)}},{key:"createSegments",value:function(t,e,n,i){var r=this;return e.map((function(e){return e.path.startsWith(":")?r.findPosParam(t,e,i):r.findOrReturn(e,n)}))}},{key:"findPosParam",value:function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return i}},{key:"findOrReturn",value:function(t,e){var n,i=0,r=h(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.path===t.path)return e.splice(i),a;i++}}catch(o){r.e(o)}finally{r.f()}return t}}]),t}();function Pv(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(e.matcher||km)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Fv(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Om(t.segments.concat(e.segments),e.children)}return t}function Lv(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Nv(t){return t.outlet||"primary"}var Vv=function t(e){y(this,t),this.path=e,this.route=this.path[this.path.length-1]},Bv=function t(e,n){y(this,t),this.component=e,this.route=n};function jv(t,e,n){var i=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function zv(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Jm(e);return t.children.forEach((function(t){Hv(t,a[t.value.outlet],n,i.concat([t.value]),r),delete a[t.value.outlet]})),Em(a,(function(t,e){return Wv(t,n.getContext(e),r)})),r}function Hv(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,o=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var u=Uv(o,a,a.routeConfig.runGuardsAndResolvers);if(u?r.canActivateChecks.push(new Vv(i)):(a.data=o.data,a._resolvedData=o._resolvedData),zv(t,e,a.component?s?s.children:null:n,i,r),u){var l=s&&s.outlet&&s.outlet.component||null;r.canDeactivateChecks.push(new Bv(l,o))}}else o&&Wv(e,s,r),r.canActivateChecks.push(new Vv(i)),zv(t,null,a.component?s?s.children:null:n,i,r);return r}function Uv(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Rm(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Rm(t.url,e.url)||!wm(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cv(t,e)||!wm(t.queryParams,e.queryParams);case"paramsChange":default:return!cv(t,e)}}function Wv(t,e,n){var i=Jm(t),r=t.value;Em(i,(function(t,i){Wv(t,r.component?e?e.children.getContext(i):null:e,n)})),n.canDeactivateChecks.push(new Bv(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var qv=Symbol("INITIAL_VALUE");function Gv(){return Gp((function(t){return mp.apply(void 0,l(t.map((function(t){return t.pipe(Lp(1),$p(qv))})))).pipe(function(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Xp(t,e,n))}}((function(t,e){var n=!1;return e.reduce((function(t,i,r){if(t!==qv)return t;if(i===qv&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||Dv(i))return i}return t}),t)}),qv),Df((function(t){return t!==qv})),G((function(t){return Dv(t)?t:!0===t})),Lp(1))}))}function Yv(t,e){return null!==t&&e&&e(new mm(t)),Sf(!0)}function Kv(t,e){return null!==t&&e&&e(new fm(t)),Sf(!0)}function Zv(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Sf(i.map((function(i){return bp((function(){var r,a=jv(i,e,n);if(function(t){return t&&Ev(t.canActivate)}(a))r=Dm(a.canActivate(e,t));else{if(!Ev(a))throw new Error("Invalid CanActivate guard");r=Dm(a(e,t))}return r.pipe(Bp())}))}))).pipe(Gv()):Sf(!0)}function $v(t,e,n){var i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return bp((function(){return Sf(e.guards.map((function(r){var a,o=jv(r,e.node,n);if(function(t){return t&&Ev(t.canActivateChild)}(o))a=Dm(o.canActivateChild(i,t));else{if(!Ev(o))throw new Error("Invalid CanActivateChild guard");a=Dm(o(i,t))}return a.pipe(Bp())}))).pipe(Gv())}))}));return Sf(r).pipe(Gv())}var Xv=function t(){y(this,t)},Qv=function(){function t(e,n,i,r,a,o){y(this,t),this.rootComponentType=e,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return b(t,[{key:"recognize",value:function(){try{var t=eg(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new av([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Qm(n,e),r=new ov(this.url,i);return this.inheritParamsAndData(r._root),Sf(r)}catch(a){return new V((function(t){return t.error(a)}))}}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,i=iv(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){var n,i=this,r=Mm(e,(function(e,n){return i.processSegmentGroup(t,e,n)}));return n={},r.forEach((function(t){var e=n[t.value.outlet];if(e){var i=e.url.map((function(t){return t.toString()})).join("/"),r=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(i,"' and '").concat(r,"'."))}n[t.value.outlet]=t.value})),function(t){t.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)}))}(r),r}},{key:"processSegment",value:function(t,e,n,i){var r,a=h(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;try{return this.processSegmentAgainstRoute(o,e,n,i)}catch(s){if(!(s instanceof Xv))throw s}}}catch(u){a.e(u)}finally{a.f()}if(this.noLeftoversInUrl(e,n,i))return[];throw new Xv}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"processSegmentAgainstRoute",value:function(t,e,n,i){if(t.redirectTo)throw new Xv;if((t.outlet||"primary")!==i)throw new Xv;var r,a=[],o=[];if("**"===t.path){var s=n.length>0?Sm(n).parameters:{};r=new av(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rg(t),i,t.component,t,Jv(e),tg(e)+n.length,ag(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Xv;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||km)(n,t,e);if(!i)throw new Xv;var r={};Em(i.posParams,(function(t,e){r[e]=t.path}));var a=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a}}(e,t,n);a=u.consumedSegments,o=n.slice(u.lastChild),r=new av(a,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rg(t),i,t.component,t,Jv(e),tg(e)+a.length,ag(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),c=eg(e,a,o,l,this.relativeLinkResolution),h=c.segmentGroup,d=c.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(l,h);return[new Qm(r,f)]}if(0===l.length&&0===d.length)return[new Qm(r,[])];var p=this.processSegment(l,h,d,"primary");return[new Qm(r,p)]}}]),t}();function Jv(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function tg(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function eg(t,e,n,i,r){if(n.length>0&&function(t,e,n){return n.some((function(n){return ng(t,e,n)&&"primary"!==ig(n)}))}(t,n,i)){var a=new Om(e,function(t,e,n,i){var r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var a,o=h(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(""===s.path&&"primary"!==ig(s)){var u=new Om([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,r[ig(s)]=u}}}catch(l){o.e(l)}finally{o.f()}return r}(t,e,i,new Om(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return ng(t,e,n)}))}(t,n,i)){var o=new Om(t.segments,function(t,e,n,i,r,a){var o,s={},u=h(i);try{for(u.s();!(o=u.n()).done;){var l=o.value;if(ng(t,n,l)&&!r[ig(l)]){var c=new Om([],{});c._sourceSegment=t,c._segmentIndexShift="legacy"===a?t.segments.length:e.length,s[ig(l)]=c}}}catch(d){u.e(d)}finally{u.f()}return Object.assign(Object.assign({},r),s)}(t,e,n,i,t.children,r));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new Om(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function ng(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ig(t){return t.outlet||"primary"}function rg(t){return t.data||{}}function ag(t){return t.resolve||{}}function og(t){return function(e){return e.pipe(Gp((function(e){var n=t(e);return n?nt(n).pipe(G((function(){return e}))):nt([e])})))}}var sg=function(){function t(){y(this,t)}return b(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}(),ug=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&cs(0,"router-outlet")},directives:function(){return[Dg]},encapsulation:2}),t}();function lg(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Qv(t,e,n,i,r,a).recognize()}(t,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,e.serializeUrl(o)),r,a).pipe(G((function(t){return Object.assign(Object.assign({},i),{targetSnapshot:t})})));var o})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),zp((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),zp((function(t){var i=new om(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)})));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.extractedUrl,l=t.source,c=t.restoredState,h=t.extras,d=new nm(t.id,e.serializeUrl(u),l,c);n.next(d);var f=ev(u,e.rootComponentType).snapshot;return Sf(Object.assign(Object.assign({},t),{targetSnapshot:f,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),yp})),og((function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),zp((function(t){var n=new sm(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),G((function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,r=e.rootContexts,a=n._root,zv(a,i?i._root:null,r,[a.value]))});var n,i,r,a})),function(t,e){return function(n){return n.pipe(ot((function(n){var i=n.targetSnapshot,r=n.currentSnapshot,a=n.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?Sf(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return nt(t).pipe(ot((function(t){return function(t,e,n,i,r){var a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return a&&0!==a.length?Sf(a.map((function(a){var o,s=jv(a,e,r);if(function(t){return t&&Ev(t.canDeactivate)}(s))o=Dm(s.canDeactivate(t,e,n,i));else{if(!Ev(s))throw new Error("Invalid CanDeactivate guard");o=Dm(s(t,e,n,i))}return o.pipe(Bp())}))).pipe(Gv()):Sf(!0)}(t.component,t.route,n,e,i)})),Bp((function(t){return!0!==t}),!0))}(s,i,r,t).pipe(ot((function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return nt(e).pipe(Ef((function(e){return nt([Kv(e.route.parent,i),Yv(e.route,i),$v(t,e.path,n),Zv(t,e.route,n)]).pipe(kp(),Bp((function(t){return!0!==t}),!0))})),Bp((function(t){return!0!==t}),!0))}(i,o,t,e):Sf(n)})),G((function(t){return Object.assign(Object.assign({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),zp((function(t){if(Dv(t.guardsResult)){var n=bm('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}})),zp((function(t){var n=new um(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),Df((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var i=new rm(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0})),og((function(t){if(t.guards.canActivateChecks.length)return Sf(t).pipe(zp((function(t){var n=new lm(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),Gp((function(t){var i,r,a=!1;return Sf(t).pipe((i=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(ot((function(t){var e=t.targetSnapshot,n=t.guards.canActivateChecks;if(!n.length)return Sf(t);var a=0;return nt(n).pipe(Ef((function(t){return function(t,e,n,i){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return Sf({});var a={};return nt(r).pipe(ot((function(r){return function(t,e,n,i){var r=jv(t,e,i);return Dm(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(zp((function(t){a[r]=t})))})),Cp(1),ot((function(){return Object.keys(a).length===r.length?Sf(a):yp})))}(t._resolve,t,e,i).pipe(G((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),iv(t,n).resolve),null})))}(t.route,e,i,r)})),zp((function(){return a++})),Cp(1),ot((function(e){return a===n.length?Sf(t):yp})))})))}),zp({next:function(){return a=!0},complete:function(){if(!a){var i=new rm(t.id,e.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),t.resolve(!1)}}}))})),zp((function(t){var n=new cm(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})))})),og((function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),G((function(t){var n,i,r,a=(r=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){var r=i.value;r._futureSnapshot=n.value;var a=function(e,n,i){return n.children.map((function(n){var r,a=h(i.children);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(e.shouldReuseRoute(o.value.snapshot,n.value))return t(e,n,o)}}catch(s){a.e(s)}finally{a.f()}return t(e,n)}))}(e,n,i);return new Qm(r,a)}var o=e.retrieve(n.value);if(o){var s=o.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,r=e.fragment,a=e.preserveQueryParams,o=e.queryParamsHandling,s=e.preserveFragment;tr()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,l=s?this.currentUrlTree.fragment:r,c=null;if(o)switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}else c=a?this.currentUrlTree.queryParams:i||null;return null!==c&&(c=this.removeEmptyProps(c)),hv(u,this.currentUrlTree,t,c,l)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};tr()&&this.isNgZoneEnabled&&!cc.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Dv(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return wg(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){if(Dv(t))return Am(this.currentUrlTree,t,e);var n=this.parseUrl(t);return Am(this.currentUrlTree,n,e)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce((function(e,n){var i=t[n];return null!=i&&(e[n]=i),e}),{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new im(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)}),(function(e){t.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(t,e,n,i,r){var a,o,s,u=this.getTransition();if(u&&"imperative"!==e&&"imperative"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(u&&"hashchange"==e&&"popstate"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(u&&"popstate"==e&&"hashchange"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);r?(a=r.resolve,o=r.reject,s=r.promise):s=new Promise((function(t,e){a=t,o=e}));var l=++this.navigationId;return this.setTransition({id:l,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:a,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(t){return Promise.reject(t)}))}},{key:"setBrowserUrl",value:function(t,e,n,i){var r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Do),fe(Pm),fe(vg),fe(ah),fe(Uo),fe(Mc),fe(sc),fe(void 0))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}();function wg(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};y(this,t),this.router=e,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return b(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof nm?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof im&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof gm&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new gm(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(kg),fe(qd),fe(void 0))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),Pg=new re("ROUTER_CONFIGURATION"),Fg=new re("ROUTER_FORROOT_GUARD"),Lg=[ah,{provide:Pm,useClass:Fm},{provide:kg,useFactory:function(t,e,n,i,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new kg(null,t,e,n,i,r,a,xm(o));if(u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),s.errorHandler&&(c.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(c.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=Hc();c.events.subscribe((function(t){h.logGroup("Router Event: ".concat(t.constructor.name)),h.log(t.toString()),h.log(t),h.logGroupEnd()}))}return s.onSameUrlNavigation&&(c.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(c.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(c.relativeLinkResolution=s.relativeLinkResolution),c},deps:[Pm,vg,ah,Uo,Mc,sc,fg,Pg,[function t(){y(this,t)},new Ct],[function t(){y(this,t)},new Ct]]},vg,{provide:nv,useFactory:function(t){return t.routerState.root},deps:[kg]},{provide:Mc,useClass:Lc},Rg,Tg,Og,{provide:Pg,useValue:{enableTracing:!1}}];function Ng(){return new xc("Router",kg)}var Vg=function(){var t=function(){function t(e,n){y(this,t)}return b(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Lg,Hg(e),{provide:Fg,useFactory:zg,deps:[[kg,new Ct,new St]]},{provide:Pg,useValue:n||{}},{provide:th,useFactory:jg,deps:[qc,[new wt(nh),new Ct],Pg]},{provide:Mg,useFactory:Bg,deps:[kg,qd,Pg]},{provide:Ig,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Tg},{provide:xc,multi:!0,useFactory:Ng},[Ug,{provide:Ul,multi:!0,useFactory:Wg,deps:[Ug]},{provide:Gg,useFactory:qg,deps:[Ug]},{provide:$l,multi:!0,useExisting:Gg}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Hg(e)]}}}]),t}();return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)(fe(Fg,8),fe(kg,8))}}),t}();function Bg(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Mg(t,e,n)}function jg(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new rh(t,e):new ih(t,e)}function zg(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Hg(t){return[{provide:Wo,multi:!0,useValue:t},{provide:fg,multi:!0,useValue:t}]}var Ug=function(){var t=function(){function t(e){y(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new U}return b(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(Yc,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),i=t.injector.get(kg),r=t.injector.get(Pg);if(t.isLegacyDisabled(r)||t.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)i.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(r.initialNavigation,"'"));i.hooks.afterPreactivation=function(){return t.initNavigation?Sf(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Pg),n=this.injector.get(Rg),i=this.injector.get(Mg),r=this.injector.get(kg),a=this.injector.get(Tc);t===a.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),r.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}},{key:"isLegacyDisabled",value:function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Uo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}();function Wg(t){return t.appInitializer.bind(t)}function qg(t){return t.bootstrapListener.bind(t)}var Gg=new re("Router Initializer"),Yg=function(){function t(t){this.user=t.user,this.role=t.role,this.admin=t.admin}return Object.defineProperty(t.prototype,"isStaff",{get:function(){return"staff"===this.role||"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAdmin",{get:function(){return"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogged",{get:function(){return null!=this.user},enumerable:!1,configurable:!0}),t}();function Kg(t){return null!=t&&"false"!=="".concat(t)}function Zg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return $g(t)?Number(t):e}function $g(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Xg(t){return Array.isArray(t)?t:[t]}function Qg(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function Jg(t){return t instanceof _u?t.nativeElement:t}function ty(t,e,n,i){return x(n)&&(i=n,n=void 0),i?ty(t,e,n).pipe(G((function(t){return w(t)?i.apply(void 0,l(t)):i(t)}))):new V((function(i){!function t(e,n,i,r,a){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,i,a),o=function(){return s.removeEventListener(n,i,a)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,i),o=function(){return u.off(n,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var l=e;e.addListener(n,i),o=function(){return l.removeListener(n,i)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c1?Array.prototype.slice.call(arguments):t)}),i,n)}))}var ey=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r.pending=!1,r}return b(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),n}(function(t){f(n,t);var e=g(n);function n(t,i){return y(this,n),e.call(this)}return b(n,[{key:"schedule",value:function(t){return this}}]),n}(E)),ny=function(){var t=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;y(this,t),this.SchedulerAction=e,this.now=n}return b(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),iy=function(t){f(n,t);var e=g(n);function n(t){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ny.now;return y(this,n),(i=e.call(this,t,(function(){return n.delegate&&n.delegate!==a(i)?n.delegate.now():r()}))).actions=[],i.active=!1,i.scheduled=void 0,i}return b(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,a):r(i(n.prototype),"schedule",this).call(this,t,e,a)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}}]),n}(ny),ry=1,ay=function(){return Promise.resolve()}(),oy={};function sy(t){return t in oy&&(delete oy[t],!0)}var uy=function(t){var e=ry++;return oy[e]=!0,ay.then((function(){return sy(e)&&t()})),e},ly=function(t){sy(t)},cy=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r}return b(n,[{key:"requestAsyncId",value:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==a&&a>0?r(i(n.prototype),"requestAsyncId",this).call(this,t,e,a):(t.actions.push(this),t.scheduled||(t.scheduled=uy(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==a&&a>0||null===a&&this.delay>0)return r(i(n.prototype),"recycleAsyncId",this).call(this,t,e,a);0===t.actions.length&&(ly(e),t.scheduled=void 0)}}]),n}(ey),hy=new(function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i=0}function by(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return _y(e)?i=Number(e)<1?1:Number(e):q(e)&&(n=e),q(n)||(n=my),new V((function(e){var r=_y(t)?t:+t-n.now();return n.schedule(ky,r,{index:0,period:i,subscriber:e})}))}function ky(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function wy(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:my;return vy((function(){return by(t,e)}))}function Cy(t){return function(e){return e.lift(new xy(t))}}var xy=function(){function t(e){y(this,t),this.notifier=e}return b(t,[{key:"call",value:function(t,e){var n=new Sy(t),i=at(this.notifier,new it(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}]),t}(),Sy=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this,t)).seenValue=!1,i}return b(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(rt);function Ey(t,e){return new V(e?function(n){return e.schedule(Dy,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function Dy(t){t.subscriber.error(t.error)}var Ay,Iy=function(){var t=function(){function t(e,n,i){y(this,t),this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}return b(t,[{key:"observe",value:function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}},{key:"do",value:function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Sf(this.value);case"E":return Ey(this.error);case"C":return _p()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();try{Ay="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(MH){Ay=!1}var Oy,Ty,Ry,My,Py=function(){var t=function t(e){y(this,t),this._platformId=e,this.isBrowser=this._platformId?"browser"===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&&!Ay)&&"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)(fe(Zl))},t.\u0275prov=It({factory:function(){return new t(fe(Zl))},token:t,providedIn:"root"}),t}(),Fy=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),Ly=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ny(){if(Oy)return Oy;if("object"!=typeof document||!document)return Oy=new Set(Ly);var t=document.createElement("input");return Oy=new Set(Ly.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function Vy(t){return function(){if(null==Ty&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Ty=!0}}))}finally{Ty=Ty||!1}return Ty}()?t:!!t.capture}function By(){if("object"!=typeof document||!document)return 0;if(null==Ry){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),Ry=0,0===t.scrollLeft&&(t.scrollLeft=1,Ry=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return Ry}function jy(t){if(function(){if(null==My){var t="undefined"!=typeof document?document.head:null;My=!(!t||!t.createShadowRoot&&!t.attachShadow)}return My}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}var zy=new re("cdk-dir-doc",{providedIn:"root",factory:function(){return pe(Wc)}}),Hy=function(){var t=function(){function t(e){if(y(this,t),this.value="ltr",this.change=new bl,e){var n=(e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return b(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(zy,8))},t.\u0275prov=It({factory:function(){return new t(fe(zy,8))},token:t,providedIn:"root"}),t}(),Uy=function(){var t=function(){function t(){y(this,t),this._dir="ltr",this._isInitialized=!1,this.change=new bl}return b(t,[{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}},{key:"dir",get:function(){return this._dir},set:function(t){var e=this._dir,n=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===n||"rtl"===n?n:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&ts("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[pu([{provide:Hy,useExisting:t}])]}),t}(),Wy=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),qy=function t(){y(this,t)};function Gy(t){return t&&"function"==typeof t.connect}var Yy=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];y(this,t),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new U,i&&i.length&&(n?i.forEach((function(t){return e._markSelected(t)})):this._markSelected(i[0]),this._selectedToEmit.length=0)}return b(t,[{key:"select",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),t}(),Ky=function(){var t=function(){function t(){y(this,t),this._listeners=[]}return b(t,[{key:"notify",value:function(t,e){var n,i=h(this._listeners);try{for(i.s();!(n=i.n()).done;)(0,n.value)(t,e)}catch(r){i.e(r)}finally{i.f()}}},{key:"listen",value:function(t){var e=this;return this._listeners.push(t),function(){e._listeners=e._listeners.filter((function(e){return t!==e}))}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Zy=function(){var t=function(){function t(e,n,i){y(this,t),this._ngZone=e,this._platform=n,this._scrolled=new U,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return b(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe((function(){return e._scrolled.next(t)})))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new V((function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(wy(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):Sf()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,n){return t.deregister(n)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Df((function(t){return!t||n.indexOf(t)>-1})))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach((function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)})),n}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return ty(t._getWindow().document,"scroll").subscribe((function(){return t._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(cc),fe(Py),fe(Wc,8))},t.\u0275prov=It({factory:function(){return new t(fe(cc),fe(Py),fe(Wc,8))},token:t,providedIn:"root"}),t}(),$y=function(){var t=function(){function t(e,n,i,r){var a=this;y(this,t),this.elementRef=e,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new U,this._elementScrolled=new V((function(t){return a.ngZone.runOutsideAngular((function(){return ty(a.elementRef.nativeElement,"scroll").pipe(Cy(a._destroyed)).subscribe(t)}))}))}return b(t,[{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(t){var e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=By()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==By()?t.left=t.right:1==By()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==By()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==By()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Zy),rs(cc),rs(Hy,8))},t.\u0275dir=Be({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t}(),Xy=function(){var t=function(){function t(e,n,i){var r=this;y(this,t),this._platform=e,this._change=new U,this._changeListener=function(t){r._change.next(t)},this._document=i,n.runOutsideAngular((function(){if(e.isBrowser){var t=r._getWindow();t.addEventListener("resize",r._changeListener),t.addEventListener("orientationchange",r._changeListener)}r.change().subscribe((function(){return r._updateViewportSize()}))}))}return b(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(wy(t)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Py),fe(cc),fe(Wc,8))},t.\u0275prov=It({factory:function(){return new t(fe(Py),fe(cc),fe(Wc,8))},token:t,providedIn:"root"}),t}(),Qy=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),Jy=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Wy,Fy,Qy],Wy,Qy]}),t}();function t_(){throw Error("Host already has a portal attached")}var e_=function(){function t(){y(this,t)}return b(t,[{key:"attach",value:function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&t_(),this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),t}(),n_=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this)).component=t,o.viewContainerRef=i,o.injector=r,o.componentFactoryResolver=a,o}return n}(e_),i_=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this)).templateRef=t,a.viewContainerRef=i,a.context=r,a}return b(n,[{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,r(i(n.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,r(i(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(e_),r_=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this)).element=t instanceof _u?t.nativeElement:t,i}return n}(e_),a_=function(){function t(){y(this,t),this._isDisposed=!1,this.attachDomPortal=null}return b(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&t_(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof n_?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof i_?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof r_?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}},{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(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),o_=function(t){f(n,t);var e=g(n);function n(t,o,s,u,l){var c,h;return y(this,n),(h=e.call(this)).outletElement=t,h._componentFactoryResolver=o,h._appRef=s,h._defaultInjector=u,h.attachDomPortal=function(t){if(!h._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");var o=h._document.createComment("dom-portal");e.parentNode.insertBefore(o,e),h.outletElement.appendChild(e),r((c=a(h),i(n.prototype)),"setDisposeFn",c).call(c,(function(){o.parentNode&&o.parentNode.replaceChild(e,o)}))},h._document=l,h}return b(n,[{key:"attachComponentPortal",value:function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn((function(){return e.destroy()}))):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn((function(){n._appRef.detachView(e.hostView),e.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(e)),e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),i.detectChanges(),this.setDisposeFn((function(){var t=n.indexOf(i);-1!==t&&n.remove(t)})),i}},{key:"dispose",value:function(){r(i(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(a_),s_=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){return y(this,n),e.call(this,t,i)}return n}(i_);return t.\u0275fac=function(e){return new(e||t)(rs(Uu),rs(qu))},t.\u0275dir=Be({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[eu]}),t}(),u_=function(){var t=function(t){f(n,t);var e=g(n);function n(t,o,s){var u,l;return y(this,n),(l=e.call(this))._componentFactoryResolver=t,l._viewContainerRef=o,l._isInitialized=!1,l.attached=new bl,l.attachDomPortal=function(t){if(!l._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");var o=l._document.createComment("dom-portal");t.setAttachedHost(a(l)),e.parentNode.insertBefore(o,e),l._getRootNode().appendChild(e),r((u=a(l),i(n.prototype)),"setDisposeFn",u).call(u,(function(){o.parentNode&&o.parentNode.replaceChild(e,o)}))},l._document=s,l}return b(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,a=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),o=e.createComponent(a,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),r(i(n.prototype),"setDisposeFn",this).call(this,(function(){return o.destroy()})),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var a=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return r(i(n.prototype),"setDisposeFn",this).call(this,(function(){return e._viewContainerRef.clear()})),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&r(i(n.prototype),"detach",this).call(this),t&&r(i(n.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(a_);return t.\u0275fac=function(e){return new(e||t)(rs(yu),rs(qu),rs(Wc))},t.\u0275dir=Be({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[eu]}),t}(),l_=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(u_);return t.\u0275fac=function(e){return c_(e||t)},t.\u0275dir=Be({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[pu([{provide:u_,useExisting:t}]),eu]}),t}(),c_=Vi(l_),h_=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),d_=function(){function t(e,n){y(this,t),this._parentInjector=e,this._customTokens=n}return b(t,[{key:"get",value:function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}]),t}(),f_=function(){function t(e,n){y(this,t),this.predicate=e,this.inclusive=n}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new p_(t,this.predicate,this.inclusive))}}]),t}(),p_=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t)).predicate=i,a.inclusive=r,a.index=0,a}return b(n,[{key:"_next",value:function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(t,e)}},{key:"nextOrComplete",value:function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}]),n}(M);function m_(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;ie.height||t.scrollWidth>e.width}}]),t}();function g_(){return Error("Scroll strategy has already been attached.")}var y_=function(){function t(e,n,i,r){var a=this;y(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run((function(){return a._overlayRef.detach()}))}}return b(t,[{key:"attach",value:function(t){if(this._overlayRef)throw g_();this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.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}(),__=function(){function t(){y(this,t)}return b(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function b_(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function k_(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var w_=function(){function t(e,n,i,r){y(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return b(t,[{key:"attach",value:function(t){if(this._overlayRef)throw g_();this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;b_(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),C_=function(){var t=function t(e,n,i,r){var a=this;y(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new __},this.close=function(t){return new y_(a._scrollDispatcher,a._ngZone,a._viewportRuler,t)},this.block=function(){return new v_(a._viewportRuler,a._document)},this.reposition=function(t){return new w_(a._scrollDispatcher,a._viewportRuler,a._ngZone,t)},this._document=r};return t.\u0275fac=function(e){return new(e||t)(fe(Zy),fe(Xy),fe(cc),fe(Wc))},t.\u0275prov=It({factory:function(){return new t(fe(Zy),fe(Xy),fe(cc),fe(Wc))},token:t,providedIn:"root"}),t}(),x_=function t(e){if(y(this,t),this.scrollStrategy=new __,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,this.excludeFromOutsideClick=[],e)for(var n=0,i=Object.keys(e);n-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Wc))},t.\u0275prov=It({factory:function(){return new t(fe(Wc))},token:t,providedIn:"root"}),t}(),O_=function(){var t=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this,t))._keydownListener=function(t){for(var e=i._attachedOverlays,n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}},i}return b(n,[{key:"add",value:function(t){r(i(n.prototype),"add",this).call(this,t),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}(I_);return t.\u0275fac=function(e){return new(e||t)(fe(Wc))},t.\u0275prov=It({factory:function(){return new t(fe(Wc))},token:t,providedIn:"root"}),t}(),T_=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,n=r._attachedOverlays,i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)){var o=a.getConfig();if([].concat(l(o.excludeFromOutsideClick),[a.overlayElement]).some((function(t){return t.contains(e)})))break;a._outsidePointerEvents.next(t)}}},r}return b(n,[{key:"add",value:function(t){r(i(n.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(I_);return t.\u0275fac=function(e){return new(e||t)(fe(Wc),fe(Py))},t.\u0275prov=It({factory:function(){return new t(fe(Wc),fe(Py))},token:t,providedIn:"root"}),t}(),R_=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),M_=function(){var t=function(){function t(e,n){y(this,t),this._platform=n,this._document=e}return b(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||R_)for(var e=this._document.querySelectorAll(".".concat("cdk-overlay-container",'[platform="server"], ')+".".concat("cdk-overlay-container",'[platform="test"]')),n=0;np&&(p=g,f=v)}}catch(y){m.e(y)}finally{m.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&N_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),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();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,n){var i;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+i,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}}},{key:"_getOverlayFit",value:function(t,e,n,i){var r=t.x,a=t.y,o=this._getOffset(i,"x"),s=this._getOffset(i,"y");o&&(r+=o),s&&(a+=s);var u=0-a,l=a+e.height-n.height,c=this._subtractOverflows(e.width,0-r,r+e.width-n.width),h=this._subtractOverflows(e.height,u,l),d=c*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:c==e.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,a=V_(this._overlayRef.getConfig().minHeight),o=V_(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=a&&a<=i)&&(t.fitsInViewportHorizontally||null!=o&&o<=r)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,r,a=this._viewportRect,o=Math.max(t.x+e.width-a.right,0),s=Math.max(t.y+e.height-a.bottom,0),u=Math.max(a.top-n.top-t.y,0),l=Math.max(a.left-n.left-t.x,0);return this._previousPushAmount={x:i=e.width<=a.width?l||-o:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}if("end"===e.overlayX&&!l||"start"===e.overlayX&&l)s=u.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!l||"end"===e.overlayX&&l)o=t.x,a=u.right-t.x;else{var d=Math.min(u.right-t.x+u.left,t.x),f=this._lastBoundingBoxSize.width;o=t.x-d,(a=2*d)>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.x-f/2)}return{top:i,left:o,bottom:r,right:s,width:a,height:n}}},{key:"_setBoundingBoxStyles",value:function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=Qg(n.height),i.top=Qg(n.top),i.bottom=Qg(n.bottom),i.width=Qg(n.width),i.left=Qg(n.left),i.right=Qg(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Qg(r)),a&&(i.maxWidth=Qg(a))}this._lastBoundingBoxSize=n,N_(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){N_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){N_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();N_(n,this._getExactOverlayY(e,t,o)),N_(n,this._getExactOverlayX(e,t,o))}else n.position="static";var s="",u=this._getOffset(e,"x"),l=this._getOffset(e,"y");u&&(s+="translateX(".concat(u,"px) ")),l&&(s+="translateY(".concat(l,"px)")),n.transform=s.trim(),a.maxHeight&&(i?n.maxHeight=Qg(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=Qg(a.maxWidth):r&&(n.maxWidth="")),N_(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=a,"bottom"===t.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=Qg(r.y),i}},{key:"_getExactOverlayX",value:function(t,e,n){var i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=Qg(r.x),i}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:k_(t,n),isOriginOutsideView:b_(t,n),isOverlayClipped:k_(e,n),isOverlayOutsideView:b_(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,a=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),u=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=u?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),z_=function(){var t=function(){function t(e,n,i,r){y(this,t),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r}return b(t,[{key:"global",value:function(){return new j_}},{key:"connectedTo",value:function(t,e,n){return new B_(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new L_(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Xy),fe(Wc),fe(Py),fe(M_))},t.\u0275prov=It({factory:function(){return new t(fe(Xy),fe(Wc),fe(Py),fe(M_))},token:t,providedIn:"root"}),t}(),H_=0,U_=function(){var t=function(){function t(e,n,i,r,a,o,s,u,l,c,h){y(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=o,this._ngZone=s,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}return b(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new x_(t);return r.direction=r.direction||this._directionality.value,new P_(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(H_++),e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(Tc)),new o_(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(C_),fe(M_),fe(yu),fe(z_),fe(O_),fe(Uo),fe(cc),fe(Wc),fe(Hy),fe(ah,8),fe(T_,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),W_=[{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"}],q_=new re("cdk-connected-overlay-scroll-strategy"),G_=function(){var t=function t(e){y(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),Y_=function(){var t=function(){function t(e,n,i,r,a){y(this,t),this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=E.EMPTY,this._attachSubscription=E.EMPTY,this._detachSubscription=E.EMPTY,this._positionSubscription=E.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new bl,this.positionChange=new bl,this.attach=new bl,this.detach=new bl,this.overlayKeydown=new bl,this.overlayOutsideClick=new bl,this._templatePortal=new i_(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return b(t,[{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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=W_);var e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe((function(){return t.attach.emit()})),this._detachSubscription=e.detachments().subscribe((function(){return t.detach.emit()})),e.keydownEvents().subscribe((function(e){t.overlayKeydown.next(e),27!==e.keyCode||m_(e)||(e.preventDefault(),t._detachOverlay())})),this._overlayRef.outsidePointerEvents().subscribe((function(e){t.overlayOutsideClick.next(e)}))}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new x_({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,n=this.positions.map((function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}}));return t.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}},{key:"_attachOverlay",value:function(){var t=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(e){t.backdropClick.emit(e)})):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new f_(t,e))}}((function(){return t.positionChange.observers.length>0}))).subscribe((function(e){t.positionChange.emit(e),0===t.positionChange.observers.length&&t._positionSubscription.unsubscribe()})))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Kg(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=Kg(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=Kg(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=Kg(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=Kg(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(U_),rs(Uu),rs(qu),rs(q_),rs(Hy,8))},t.\u0275dir=Be({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Qe]}),t}(),K_={provide:q_,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Z_=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[U_,K_],imports:[[Wy,h_,Jy],Jy]}),t}();function $_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:my;return function(n){return n.lift(new X_(t,e))}}var X_=function(){function t(e,n){y(this,t),this.dueTime=e,this.scheduler=n}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new Q_(t,this.dueTime,this.scheduler))}}]),t}(),Q_=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return b(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(J_,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),n}(M);function J_(t){t.debouncedNext()}var tb=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return new t},token:t,providedIn:"root"}),t}(),eb=function(){var t=function(){function t(e){y(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return b(t,[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach((function(e,n){return t._cleanupObserver(n)}))}},{key:"observe",value:function(t){var e=this,n=Jg(t);return new V((function(t){var i=e._observeElement(n).subscribe(t);return function(){i.unsubscribe(),e._unobserveElement(n)}}))}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new U,n=this._mutationObserverFactory.create((function(t){return e.next(t)}));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}},{key:"_unobserveElement",value:function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}},{key:"_cleanupObserver",value:function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(tb))},t.\u0275prov=It({factory:function(){return new t(fe(tb))},token:t,providedIn:"root"}),t}(),nb=function(){var t=function(){function t(e,n,i){y(this,t),this._contentObserver=e,this._elementRef=n,this._ngZone=i,this.event=new bl,this._disabled=!1,this._currentSubscription=null}return b(t,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){t._currentSubscription=(t.debounce?e.pipe($_(t.debounce)):e).subscribe(t.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Kg(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=Zg(t),this._subscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(eb),rs(_u),rs(cc))},t.\u0275dir=Be({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t}(),ib=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[tb]}),t}();function rb(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var ab=0,ob=new Map,sb=null,ub=function(){var t=function(){function t(e,n){y(this,t),this._platform=n,this._document=e}return b(t,[{key:"describe",value:function(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),ob.set(e,{messageElement:e,referenceCount:0})):ob.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}},{key:"removeDescription",value:function(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){var n=ob.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e)}sb&&0===sb.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[".concat("cdk-describedby-host","]")),e=0;e-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}}))}return b(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;if(this._items.length&&this._items.some((function(t){return"function"!=typeof t.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zp((function(e){return t._pressedLetters.push(e)})),$_(e),Df((function(){return t._pressedLetters.length>0})),G((function(){return t._pressedLetters.join("")}))).subscribe((function(e){for(var n=t._getItemsArray(),i=1;i-1}));switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||m_(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{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(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof wl?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}(),cb=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(lb),hb=function(t){f(n,t);var e=g(n);function n(){var t;return y(this,n),(t=e.apply(this,arguments))._origin="program",t}return b(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(lb),db=function(){var t=function(){function t(e){y(this,t),this._platform=e}return b(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(MH){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){if(-1===pb(n))return!1;if(!this.isVisible(n))return!1}var i=t.nodeName.toLowerCase(),r=pb(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||fb(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Py))},t.\u0275prov=It({factory:function(){return new t(fe(Py))},token:t,providedIn:"root"}),t}();function fb(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function pb(t){if(!fb(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var mb=function(){function t(e,n,i,r){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];y(this,t),this._element=e,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return b(t,[{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.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(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),n=0;n=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var 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}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Lp(1)).subscribe(t)}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}}]),t}(),vb=function(){var t=function(){function t(e,n,i){y(this,t),this._checker=e,this._ngZone=n,this._document=i}return b(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new mb(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(db),fe(cc),fe(Wc))},t.\u0275prov=It({factory:function(){return new t(fe(db),fe(cc),fe(Wc))},token:t,providedIn:"root"}),t}(),gb=function(){var t=function(){function t(e,n,i){y(this,t),this._elementRef=e,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return b(t,[{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(t){var e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}},{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=Kg(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=Kg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(vb),rs(Wc))},t.\u0275dir=Be({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Qe]}),t}();"undefined"!=typeof Element&∈var yb=new re("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),_b=new re("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),bb=function(){var t=function(){function t(e,n,i,r){y(this,t),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=e||this._createLiveElement()}return b(t,[{key:"announce",value:function(t){for(var e,n,i=this,r=this._defaultOptions,a=arguments.length,o=new Array(a>1?a-1:0),s=1;s1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Sf(null);var n=Jg(t),i=jy(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject.asObservable();var a={checkChildren:e,subject:new U,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject.asObservable()}},{key:"stopMonitoring",value:function(t){var e=Jg(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var i=Jg(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach((function(e,n){return t.stopMonitoring(n)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular((function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout((function(){return e._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(t){var e=Eb(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===Eb(t))){var i=this._getFocusOrigin(t);this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run((function(){return t.next(e)}))}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,xb),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,xb)})),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,xb),t.addEventListener("mousedown",e._documentMousedownListener,xb),t.addEventListener("touchstart",e._documentTouchstartListener,xb),n.addEventListener("focus",e._windowFocusListener)}))}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,xb),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,xb),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,xb),i.removeEventListener("mousedown",this._documentMousedownListener,xb),i.removeEventListener("touchstart",this._documentTouchstartListener,xb),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(cc),fe(Py),fe(Wc,8),fe(Cb,8))},t.\u0275prov=It({factory:function(){return new t(fe(cc),fe(Py),fe(Wc,8),fe(Cb,8))},token:t,providedIn:"root"}),t}();function Eb(t){return t.composedPath?t.composedPath()[0]:t.target}var Db=function(){var t=function(){function t(e,n){y(this,t),this._elementRef=e,this._focusMonitor=n,this.cdkFocusChange=new bl}return b(t,[{key:"ngAfterViewInit",value:function(){var t=this;this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(e){return t.cdkFocusChange.emit(e)}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Sb))},t.\u0275dir=Be({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),Ab=function(){var t=function(){function t(e,n){y(this,t),this._platform=e,this._document=n}return b(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Py),fe(Wc))},t.\u0275prov=It({factory:function(){return new t(fe(Py),fe(Wc))},token:t,providedIn:"root"}),t}(),Ib=function(){var t=function t(e){y(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)(fe(Ab))},imports:[[Fy,ib]]}),t}(),Ob=new Eu("10.1.2"),Tb=function t(){y(this,t)},Rb=function t(){y(this,t)};function Mb(t,e){return{type:7,name:t,definitions:e,options:{}}}function Pb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function Fb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:t,options:e}}function Lb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function Nb(t){return{type:6,styles:t,offset:null}}function Vb(t,e,n){return{type:0,name:t,styles:e,options:n}}function Bb(t){return{type:5,steps:t}}function jb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function zb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function Hb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:n}}function Ub(t){Promise.resolve(null).then(t)}var Wb=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;y(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+n}return b(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{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 t=this;Ub((function(){return t._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(t){return t()})),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(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(t){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}(),qb=function(){function t(e){var n=this;y(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=e;var i=0,r=0,a=0,o=this.players.length;0==o?Ub((function(){return n._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++i==o&&n._onFinish()})),t.onDestroy((function(){++r==o&&n._onDestroy()})),t.onStart((function(){++a==o&&n._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return b(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(t){return t.init()}))}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(t){return t.play()}))}},{key:"pause",value:function(){this.players.forEach((function(t){return t.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(t){return t.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(t){return t.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(t){return t.destroy()})),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(t){return t.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach((function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)}))}},{key:"getPosition",value:function(){var t=0;return this.players.forEach((function(e){var n=e.getPosition();t=Math.min(n,t)})),t}},{key:"beforeDestroy",value:function(){this.players.forEach((function(t){t.beforeDestroy&&t.beforeDestroy()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}();function Gb(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Yb(t){switch(t.length){case 0:return new Wb;case 1:return t[0];default:return new qb(t)}}function Kb(t,e,n,i){var r=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(i.forEach((function(t){var n=t.offset,i=n==u,c=i&&l||{};Object.keys(t).forEach((function(n){var i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),s){case"!":s=r[n];break;case"*":s=a[n];break;default:s=e.normalizeStyleValue(n,i,s,o)}c[i]=s})),i||s.push(c),l=c,u=n})),o.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(o.join(c)))}return s}function Zb(t,e,n,i){switch(e){case"start":t.onStart((function(){return i(n&&$b(n,"start",t))}));break;case"done":t.onDone((function(){return i(n&&$b(n,"done",t))}));break;case"destroy":t.onDestroy((function(){return i(n&&$b(n,"destroy",t))}))}}function $b(t,e,n){var i=n.totalTime,r=Xb(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),a=t._data;return null!=a&&(r._data=a),r}function Xb(t,e,n,i){var r=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:e,fromState:n,toState:i,phaseName:r,totalTime:a,disabled:!!o}}function Qb(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function Jb(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var tk=function(t,e){return!1},ek=function(t,e){return!1},nk=function(t,e,n){return[]},ik=Gb();(ik||"undefined"!=typeof Element)&&(tk=function(t,e){return t.contains(e)},ek=function(){if(ik||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:ek}(),nk=function(t,e,n){var i=[];if(n)i.push.apply(i,l(t.querySelectorAll(e)));else{var r=t.querySelector(e);r&&i.push(r)}return i});var rk=null,ak=!1;function ok(t){rk||(rk=("undefined"!=typeof document?document.body:null)||{},ak=!!rk.style&&"WebkitAppearance"in rk.style);var e=!0;return rk.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in rk.style)&&ak&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in rk.style),e}var sk=ek,uk=tk,lk=nk;function ck(t){var e={};return Object.keys(t).forEach((function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]})),e}var hk=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"validateStyleProperty",value:function(t){return ok(t)}},{key:"matchesElement",value:function(t,e){return sk(t,e)}},{key:"containsElement",value:function(t,e){return uk(t,e)}},{key:"query",value:function(t,e,n){return lk(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return n||""}},{key:"animate",value:function(t,e,n,i,r){return new Wb(n,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),dk=function(){var t=function t(){y(this,t)};return t.NOOP=new hk,t}();function fk(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:pk(parseFloat(e[1]),e[2])}function pk(t,e){switch(e){case"s":return 1e3*t;default:return t}}function mk(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var i,r=0,a="";if("string"==typeof t){var o=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return e.push('The provided timing value "'.concat(t,'" is invalid.')),{duration:0,delay:0,easing:""};i=pk(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(r=pk(parseFloat(s),o[4]));var u=o[5];u&&(a=u)}else i=t;if(!n){var l=!1,c=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(c,0,'The provided timing value "'.concat(t,'" is invalid.'))}return{duration:i,delay:r,easing:a}}(t,e,n)}function vk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}function gk(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var i in t)n[i]=t[i];else vk(t,n);return n}function yk(t,e,n){return n?e+":"+n+";":""}function _k(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var a=r[1],o=r[2],s=r[3];e.push(Fk(a,s)),"<"!=o[0]||"*"==a&&"*"==s||e.push(Fk(s,a))}(t,r,i)})):r.push(n),r),animation:a,queryCount:e.queryCount,depCount:e.depCount,options:zk(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return Tk(n,t,e)})),options:zk(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,i=e.currentTime,r=0,a=t.steps.map((function(t){e.currentTime=i;var a=Tk(n,t,e);return r=Math.max(r,e.currentTime),a}));return e.currentTime=r,{type:3,steps:a,options:zk(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Hk(mk(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var r=Hk(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Hk((n=n||mk(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:Nb({});if(5==r.type)n=this.visitKeyframes(r,e);else{var a=t.styles,o=!1;if(!a){o=!0;var s={};i.easing&&(s.easing=i.easing),a=Nb(s)}e.currentTime+=i.duration+i.delay;var u=this.visitStyle(a,e);u.isEmptyStep=o,n=u}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?"*"==t?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)})):n.push(t.styles);var i=!1,r=null;return n.forEach((function(t){if(jk(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var a in e)if(e[a].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,a=e.currentTime;i&&a>0&&(a-=i.duration+i.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(i){if(n._driver.validateStyleProperty(i)){var o,s,u,l=e.collectedStyles[e.currentQuerySelector],c=l[i],h=!0;c&&(a!=r&&a>=c.startTime&&r<=c.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(c.startTime,'ms" and "').concat(c.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(r,'ms"')),h=!1),a=c.startTime),h&&(l[i]={startTime:a,endTime:r}),e.options&&(o=e.errors,s=e.options.params||{},(u=xk(t[i])).length&&u.forEach((function(t){s.hasOwnProperty(t)||o.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))})))}else e.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,a=[],o=!1,s=!1,u=0,l=t.steps.map((function(t){var i=n._makeStyleAst(t,e),l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(jk(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(jk(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,o=o||c0&&r0?r==d?1:h*r:a[r],s=o*m;e.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(t,e),t.offset=o,i.styles.push(t)})),i}},{key:"visitReference",value:function(t,e){return{type:8,animation:Tk(this,wk(t.animation),e),options:zk(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:zk(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:zk(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=u(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(Lk,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),a=r[0],o=r[1];e.currentQuerySelector=n.length?n+" "+a:a,Qb(e.collectedStyles,e.currentQuerySelector,{});var s=Tk(this,wk(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:zk(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:mk(t.timings,e.errors,!0);return{type:12,animation:Tk(this,wk(t.animation),e),timings:n,options:null}}}]),t}(),Bk=function t(e){y(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function jk(t){return!Array.isArray(t)&&"object"==typeof t}function zk(t){var e;return t?(t=vk(t)).params&&(t.params=(e=t.params)?vk(e):null):t={},t}function Hk(t,e,n){return{duration:t,delay:e,easing:n}}function Uk(t,e,n,i,r,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:e,preStyleProps:n,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var Wk=function(){function t(){y(this,t),this._map=new Map}return b(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,i=this._map.get(t);i||this._map.set(t,i=[]),(n=i).push.apply(n,l(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),qk=new RegExp(":enter","g"),Gk=new RegExp(":leave","g");function Yk(t,e,n,i,r){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 Kk).buildKeyframes(t,e,n,i,r,a,o,s,u,l)}var Kk=function(){function t(){y(this,t)}return b(t,[{key:"buildKeyframes",value:function(t,e,n,i,r,a,o,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new Wk;var c=new $k(t,e,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([a],null,c.errors,s),Tk(this,n,c);var h=c.timelines.filter((function(t){return t.containsAnimation()}));if(h.length&&Object.keys(o).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([o],null,c.errors,s)}return h.length?h.map((function(t){return t.buildKeyframes()})):[Uk(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?fk(n.duration):null,a=null!=n.delay?fk(n.delay):null;return 0!==r&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,r,a);i=Math.max(i,n.duration+n.delay)})),i}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Tk(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,i=e.subContextCount,r=e,a=t.options;if(a&&(a.params||a.delay)&&((r=e.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Zk);var o=fk(a.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach((function(t){return Tk(n,t,r)})),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,a=t.options&&t.options.delay?fk(t.options.delay):0;t.steps.forEach((function(o){var s=e.createSubContext(t.options);a&&s.delayNextStep(a),Tk(n,o,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(r),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return mk(e.params?Sk(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach((function(t){a.forwardTime((t.offset||0)*r),a.setStyles(t.styles,t.easing,e.errors,e.options),a.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},a=r.delay?fk(r.delay):0;a&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Zk);var o=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach((function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);a&&s.delayNextStep(a),i===e.element&&(u=s.currentTimeline),Tk(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,a=Math.abs(r.duration),o=a*(e.currentQueryTotal-1),s=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;Tk(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),t}(),Zk={},$k=function(){function t(e,n,i,r,a,o,s,u){y(this,t),this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Zk,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Xk(this._driver,n,0),s.push(this.currentTimeline)}return b(t,[{key:"updateOptions",value:function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=fk(i.duration)),null!=i.delay&&(r.delay=fk(i.delay));var a=i.params;if(a){var o=r.params;o||(o=this.options.params={}),Object.keys(a).forEach((function(t){e&&o.hasOwnProperty(t)||(o[t]=Sk(a[t],o,n.errors))}))}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach((function(t){n[t]=e[t]}))}}return t}},{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,r=n||this.element,a=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(e),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Zk,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new Qk(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,i,r,a){var o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(qk,"."+this._enterClassName)).replace(Gk,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),o.push.apply(o,l(s))}return r||0!=o.length||a.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),o}},{key:"params",get:function(){return this.options.params}}]),t}(),Xk=function(){function t(e,n,i,r){y(this,t),this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return b(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:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||"*",e._currentKeyframe[t]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var a=i&&i.params||{},o=function(t,e){var n,i={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){i[t]="*"})):gk(t,!1,i)})),i}(t,this._globalTimelineStyles);Object.keys(o).forEach((function(t){var e=Sk(o[t],a,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:"*"),r._updateStyle(t,e)}))}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){t._currentKeyframe[n]=e[n]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach((function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)}))}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach((function(a,o){var s=gk(a,!0);Object.keys(s).forEach((function(t){var i=s[t];"!"==i?e.add(t):"*"==i&&n.add(t)})),i||(s.offset=o/t.duration),r.push(s)}));var a=e.size?Ek(e.values()):[],o=n.size?Ek(n.values()):[];if(i){var s=r[0],u=vk(s);s.offset=0,u.offset=1,r=[s,u]}return Uk(this.element,r,a,o,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}}]),t}(),Qk=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return y(this,n),(u=e.call(this,t,i,s.delay)).element=i,u.keyframes=r,u.preStyleProps=a,u.postStyleProps=o,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return b(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=i+n,s=n/o,u=gk(t[0],!1);u.offset=0,a.push(u);var l=gk(t[0],!1);l.offset=Jk(s),a.push(l);for(var c=t.length-1,h=1;h<=c;h++){var d=gk(t[h],!1);d.offset=Jk((n+d.offset*i)/o),a.push(d)}i=o,n=0,r="",t=a}return Uk(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Xk);function Jk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var tw=function t(){y(this,t)},ew=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"normalizePropertyName",value:function(t,e){return Ak(t)}},{key:"normalizeStyleValue",value:function(t,e,n,i){var r="",a=n.toString().trim();if(nw[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return a+r}}]),n}(tw),nw=function(){return t="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(","),e={},t.forEach((function(t){return e[t]=!0})),e;var t,e}();function iw(t,e,n,i,r,a,o,s,u,l,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:a,toState:i,toStyles:o,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:d}}var rw={},aw=function(){function t(e,n,i){y(this,t),this._triggerName=e,this.ast=n,this._stateStyles=i}return b(t,[{key:"match",value:function(t,e,n,i){return function(t,e,n,i,r){return t.some((function(t){return t(e,n,i,r)}))}(this.ast.matchers,t,e,n,i)}},{key:"buildStyles",value:function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],a=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):a}},{key:"build",value:function(t,e,n,i,r,a,o,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||rw,d=this.buildStyles(n,o&&o.params||rw,c),f=s&&s.params||rw,p=this.buildStyles(i,f,c),m=new Set,v=new Map,g=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),f)},b=l?[]:Yk(t,e,this.ast.animation,r,a,d,p,_,u,c),k=0;if(b.forEach((function(t){k=Math.max(t.duration+t.delay,k)})),c.length)return iw(e,this._triggerName,n,i,y,d,p,[],[],v,g,k,c);b.forEach((function(t){var n=t.element,i=Qb(v,n,{});t.preStyleProps.forEach((function(t){return i[t]=!0}));var r=Qb(g,n,{});t.postStyleProps.forEach((function(t){return r[t]=!0})),n!==e&&m.add(n)}));var w=Ek(m.values());return iw(e,this._triggerName,n,i,y,d,p,b,w,v,g,k)}}]),t}(),ow=function(){function t(e,n){y(this,t),this.styles=e,this.defaultParams=n}return b(t,[{key:"buildStyles",value:function(t,e){var n={},i=vk(this.defaultParams);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&(i[e]=n)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach((function(t){var a=r[t];a.length>1&&(a=Sk(a,i,e)),n[t]=a}))}})),n}}]),t}(),sw=function(){function t(e,n){var i=this;y(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(t){i.states[t.name]=new ow(t.style,t.options&&t.options.params||{})})),uw(this.states,"true","1"),uw(this.states,"false","0"),n.transitions.forEach((function(t){i.transitionFactories.push(new aw(e,t,i.states))})),this.fallbackTransition=new aw(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return b(t,[{key:"matchTransition",value:function(t,e,n,i){return this.transitionFactories.find((function(r){return r.match(t,e,n,i)}))||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),t}();function uw(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var lw=new Wk,cw=function(){function t(e,n,i){y(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return b(t,[{key:"register",value:function(t,e){var n=[],i=Nk(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=i}},{key:"_buildPlayer",value:function(t,e,n){var i=t.element,r=Kb(this._driver,this._normalizer,i,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],o=this._animations[t],s=new Map;if(o?(n=Yk(this._driver,e,o,"ng-enter","ng-leave",{},{},r,lw,a)).forEach((function(t){var e=Qb(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));s.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=i._driver.computeStyle(e,n,"*")}))}));var u=n.map((function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)})),l=Yb(u);return this._playersById[t]=l,l.onDestroy((function(){return i.destroy(t)})),this.players.push(l),l}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,n,i){var r=Xb(e,"","","");return Zb(this._getPlayer(t),n,r,i),function(){}}},{key:"command",value:function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])}}]),t}(),hw=[],dw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},fw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},pw=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";y(this,t),this.namespaceId=n;var i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=_w(r),i){var a=vk(e);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return b(t,[{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach((function(t){null==n[t]&&(n[t]=e[t])}))}}},{key:"params",get:function(){return this.options.params}}]),t}(),mw=new pw("void"),vw=function(){function t(e,n,i){y(this,t),this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,xw(n,this._hostClassName)}return b(t,[{key:"listen",value:function(t,e,n,i){var r,a=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var o=Qb(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);var u=Qb(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(xw(t,"ng-trigger"),xw(t,"ng-trigger-"+e),u[e]=mw),function(){a._engine.afterFlush((function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),a._triggers[e]||delete u[e]}))}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(e),o=new yw(this.id,e,t),s=this._engine.statesByElement.get(t);s||(xw(t,"ng-trigger"),xw(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],l=new pw(n,this.id),c=n&&n.hasOwnProperty("value");!c&&u&&l.absorbOptions(u.options),s[e]=l,u||(u=mw);var h="void"===l.value;if(h||u.value!==l.value){var d=Qb(this._engine.playersByElement,t,[]);d.forEach((function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()}));var f=a.matchTransition(u.value,l.value,t,l.params),p=!1;if(!f){if(!r)return;f=a.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:u,toState:l,player:o,isFallbackTransition:p}),p||(xw(t,"ng-animate-queued"),o.onStart((function(){Sw(t,"ng-animate-queued")}))),o.onDone((function(){var e=i.players.indexOf(o);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(o);r>=0&&n.splice(r,1)}})),this.players.push(o),d.push(o),o}if(!Dw(u.params,l.params)){var m=[],v=a.matchStyles(u.value,u.params,m),g=a.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush((function(){kk(t,v),bk(t,g)}))}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach((function(e,n){delete e[t]})),this._elementListeners.forEach((function(n,i){e._elementListeners.set(i,n.filter((function(e){return e.name!=t})))}))}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach((function(t){return t.destroy()})),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach((function(t){if(!t.__ng_removed){var i=n._engine.fetchNamespacesByElement(t);i.size?i.forEach((function(n){return n.triggerLeaveAnimation(t,e,!1,!0)})):n.clearElementCache(t)}})),this._engine.afterFlushAnimationsDone((function(){return i.forEach((function(t){return n.clearElementCache(t)}))}))}},{key:"triggerLeaveAnimation",value:function(t,e,n,i){var r=this,a=this._engine.statesByElement.get(t);if(a){var o=[];if(Object.keys(a).forEach((function(e){if(r._triggers[e]){var n=r.trigger(t,e,"void",i);n&&o.push(n)}})),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Yb(o).onDone((function(){return r._engine.processLeaveNode(t)})),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t);if(n){var i=new Set;n.forEach((function(n){var r=n.name;if(!i.has(r)){i.add(r);var a=e._triggers[r].fallbackTransition,o=e._engine.statesByElement.get(t)[r]||mw,s=new pw("void"),u=new yw(e.id,r,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:r,transition:a,fromState:o,toState:s,player:u,isFallbackTransition:!0})}}))}}},{key:"removeNode",value:function(t,e){var n=this,i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var r=!1;if(i.totalAnimations){var a=i.players.length?i.playersByQueriedElement.get(t):[];if(a&&a.length)r=!0;else for(var o=t;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{var s=t.__ng_removed;s&&s!==dw||(i.afterFlush((function(){return n.clearElementCache(t)})),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){xw(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach((function(i){var r=i.player;if(!r.destroyed){var a=i.element,o=e._elementListeners.get(a);o&&o.forEach((function(e){if(e.name==i.triggerName){var n=Xb(a,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Zb(i.player,e.phase,n,e.callback)}})),r.markedForDestroy?e._engine.afterFlush((function(){r.destroy()})):n.push(i)}})),this._queue=[],n.sort((function(t,n){var i=t.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:e._engine.driver.containsElement(t.element,n.element)?1:-1}))}},{key:"destroy",value:function(t){this.players.forEach((function(t){return t.destroy()})),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find((function(e){return e.element===t}))||e}}]),t}(),gw=function(){function t(e,n,i){y(this,t),this.bodyNode=e,this.driver=n,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=function(t,e){}}return b(t,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"createNamespace",value:function(t,e){var n=new vw(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush((function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return i.destroy(e)}))}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(a,1)}if(t){var o=this._fetchNamespace(t);o&&o.insertNode(e,n)}i&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),xw(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Sw(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,n,i){if(bw(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.removeNode(e,i)}}else this._onRemovalComplete(e,i)}},{key:"markElementAsRemoved",value:function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,i,r){return bw(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}}},{key:"_buildInstruction",value:function(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise((function(e){if(t.players.length)return Yb(t.players).onDone((function(){return e()}));e()}))}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=dw,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(e,n){return t._balanceNamespaceList(e,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;D--)this._namespaceList[D].drainQueuedTransitions(e).forEach((function(t){var e=t.player,a=t.element;if(S.push(e),n.collectedEnterElements.length){var l=a.__ng_removed;if(l&&l.setForMove)return void e.destroy()}var h=!d||!n.driver.containsElement(d,a),f=C.get(a),p=m.get(a),v=n._buildInstruction(t,i,p,f,h);if(v.errors&&v.errors.length)E.push(v);else{if(h)return e.onStart((function(){return kk(a,v.fromStyles)})),e.onDestroy((function(){return bk(a,v.toStyles)})),void r.push(e);if(t.isFallbackTransition)return e.onStart((function(){return kk(a,v.fromStyles)})),e.onDestroy((function(){return bk(a,v.toStyles)})),void r.push(e);v.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),i.append(a,v.timelines),o.push({instruction:v,player:e,element:a}),v.queriedElements.forEach((function(t){return Qb(s,t,[]).push(e)})),v.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var i=u.get(e);i||u.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}})),v.postStyleProps.forEach((function(t,e){var n=Object.keys(t),i=c.get(e);i||c.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}))}}));if(E.length){var A=[];E.forEach((function(t){A.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach((function(t){return A.push("- ".concat(t,"\n"))}))})),S.forEach((function(t){return t.destroy()})),this.reportError(A)}var I=new Map,O=new Map;o.forEach((function(t){var e=t.element;i.has(e)&&(O.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,I))})),r.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){Qb(I,e,[]).push(t),t.destroy()}))}));var T=g.filter((function(t){return Aw(t,u,c)})),R=new Map;ww(R,this.driver,_,c,"*").forEach((function(t){Aw(t,u,c)&&T.push(t)}));var M=new Map;p.forEach((function(t,e){ww(M,n.driver,new Set(t),u,"!")})),T.forEach((function(t){var e=R.get(t),n=M.get(t);R.set(t,Object.assign(Object.assign({},e),n))}));var P=[],F=[],L={};o.forEach((function(t){var e=t.element,o=t.player,s=t.instruction;if(i.has(e)){if(h.has(e))return o.onDestroy((function(){return bk(e,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var u=L;if(O.size>1){for(var l=e,c=[];l=l.parentNode;){var d=O.get(l);if(d){u=d;break}c.push(l)}c.forEach((function(t){return O.set(t,u)}))}var f=n._buildAnimation(o.namespaceId,s,I,a,M,R);if(o.setRealPlayer(f),u===L)P.push(o);else{var p=n.playersByElement.get(u);p&&p.length&&(o.parentPlayer=Yb(p)),r.push(o)}}else kk(e,s.fromStyles),o.onDestroy((function(){return bk(e,s.toStyles)})),F.push(o),h.has(e)&&r.push(o)})),F.forEach((function(t){var e=a.get(t.element);if(e&&e.length){var n=Yb(e);t.setRealPlayer(n)}})),r.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var N=0;N0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Wb(t.duration,t.delay)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach((function(e){e.players.forEach((function(e){e.queued&&t.push(e)}))})),t}}]),t}(),yw=function(){function t(e,n,i){y(this,t),this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new Wb,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return b(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(n){e._queuedCallbacks[n].forEach((function(e){return Zb(t,n,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart((function(){return n.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))}},{key:"_queueEvent",value:function(t,e){Qb(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{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(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function _w(t){return null!=t?t:null}function bw(t){return t&&1===t.nodeType}function kw(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function ww(t,e,n,i,r){var a=[];n.forEach((function(t){return a.push(kw(t))}));var o=[];i.forEach((function(n,i){var a={};n.forEach((function(t){var n=a[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=fw,o.push(i))})),t.set(i,a)}));var s=0;return n.forEach((function(t){return kw(t,a[s++])})),o}function Cw(t,e){var n=new Map;if(t.forEach((function(t){return n.set(t,[])})),0==e.length)return n;var i=new Set(e),r=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var a=r.get(e);if(a)return a;var o=e.parentNode;return a=n.has(o)?o:i.has(o)?1:t(o),r.set(e,a),a}(t);1!==e&&n.get(e).push(t)})),n}function xw(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Sw(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function Ew(t,e,n){Yb(n).onDone((function(){return t.processLeaveNode(e)}))}function Dw(t,e){var n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function Ow(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=Rw(e[0]),e.length>1&&(i=Rw(e[e.length-1]))):e&&(n=Rw(e)),n||i?new Tw(t,n,i):null}var Tw=function(){var t=function(){function t(e,n,i){y(this,t),this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return b(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&bk(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(bk(this._element,this._initialStyles),this._endStyles&&(bk(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(kk(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(kk(this._element,this._endStyles),this._endStyles=null),bk(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function Rw(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Vw(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(i=Nw(n=jw(t=this._element,"").split(","),e))>=0&&(n.splice(i,1),Bw(t,"",n.join(","))))}}]),t}();function Fw(t,e,n){Bw(t,"PlayState",n,Lw(t,e))}function Lw(t,e){var n=jw(t,"");return n.indexOf(",")>0?Nw(n.split(","),e):Nw([n],e)}function Nw(t,e){for(var n=0;n=0)return n;return-1}function Vw(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Bw(t,e,n,i){var r="animation"+e;if(null!=i){var a=t.style[r];if(a.length){var o=a.split(",");o[i]=n,n=o.join(",")}}t.style[r]=n}function jw(t,e){return t.style["animation"+e]}var zw=function(){function t(e,n,i,r,a,o,s,u){y(this,t),this.element=e,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=a,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+a,this._buildStyler()}return b(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new Pw(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:Rk(t.element,i))}))}this.currentSnapshot=e}}]),t}(),Hw=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=ck(i),r}return b(n,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(e){t._startingStyles[e]=t.element.style[e]})),r(i(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(e){return t.element.style.setProperty(e,t._styles[e])})),r(i(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)})),this._startingStyles=null,r(i(n.prototype),"destroy",this).call(this))}}]),n}(Wb),Uw=function(){function t(){y(this,t),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return b(t,[{key:"validateStyleProperty",value:function(t){return ok(t)}},{key:"matchesElement",value:function(t,e){return sk(t,e)}},{key:"containsElement",value:function(t,e){return uk(t,e)}},{key:"query",value:function(t,e,n){return lk(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map((function(t){return ck(t)}));var i="@keyframes ".concat(e," {\n"),r="";n.forEach((function(t){r=" ";var e=parseFloat(t.offset);i+="".concat(r).concat(100*e,"% {\n"),r+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(e,": ").concat(n,";\n"))}})),i+="".concat(r,"}\n")})),i+="}\n";var a=document.createElement("style");return a.innerHTML=i,a}},{key:"animate",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;o&&this._notifyFaultyScrubber();var s=a.filter((function(t){return t instanceof zw})),u={};Ik(n,i)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}));var l=Ww(e=Ok(t,e,u));if(0==n)return new Hw(t,l);var c="".concat("gen_css_kf_").concat(this._count++),h=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(h);var d=Ow(t,e),f=new zw(t,e,c,n,i,r,l,d);return f.onDestroy((function(){return qw(h)})),f}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),t}();function Ww(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}function qw(t){t.parentNode.removeChild(t)}var Gw=function(){function t(e,n,i,r){y(this,t),this.element=e,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return b(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Rk(t.element,n))})),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),t}(),Yw=function(){function t(){y(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Kw().toString()),this._cssKeyframesDriver=new Uw}return b(t,[{key:"validateStyleProperty",value:function(t){return ok(t)}},{key:"matchesElement",value:function(t,e){return sk(t,e)}},{key:"containsElement",value:function(t,e){return uk(t,e)}},{key:"query",value:function(t,e,n){return lk(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0,s=!o&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(t,e,n,i,r,a);var u=0==i?"both":"forwards",l={duration:n,delay:i,fill:u};r&&(l.easing=r);var c={},h=a.filter((function(t){return t instanceof Gw}));Ik(n,i)&&h.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var d=Ow(t,e=Ok(t,e=e.map((function(t){return gk(t,!1)})),c));return new Gw(t,e,l,d)}}]),t}();function Kw(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Zw=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Ie.None,styles:[],data:{animation:[]}}),r}return b(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Lb(t):t;return Qw(this._renderer,null,e,"register",[n]),new $w(e,this._renderer)}}]),n}(Tb);return t.\u0275fac=function(e){return new(e||t)(fe(ku),fe(Wc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),$w=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this))._id=t,r._renderer=i,r}return b(n,[{key:"create",value:function(t,e){return new Xw(this._id,t,e||{},this._renderer)}}]),n}(Rb),Xw=function(){function t(e,n,i,r){y(this,t),this.id=e,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return b(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0&&t1&&void 0!==arguments[1]?arguments[1]:0;return function(t){f(i,t);var n=g(i);function i(){var t;y(this,i);for(var r=arguments.length,a=new Array(r),o=0;o0?n:t}},{key:"localeChanges",get:function(){return this._localeChanges}}]),t}(),SC=new re("mat-date-formats");try{wC="undefined"!=typeof Intl}catch(MH){wC=!1}var EC={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},DC=OC(31,(function(t){return String(t+1)})),AC={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},IC=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function OC(t,e){for(var n=Array(t),i=0;i11)throw Error('Invalid month index "'.concat(e,'". Month index has to be between 0 and 11.'));if(n<1)throw Error('Invalid date "'.concat(n,'". Date has to be greater than 0.'));var i=this._createDateWithOverflow(t,e,n);if(i.getMonth()!=e)throw Error('Invalid date "'.concat(n,'" for month with index "').concat(e,'".'));return i}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}},{key:"format",value:function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(wC){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value:function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(IC.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return r(i(n.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,n){var i=new Date(t,e,n);return t>=0&&t<100&&i.setFullYear(this.getYear(i)-1900),i}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)}}]),n}(xC);return t.\u0275fac=function(e){return new(e||t)(fe(CC,8),fe(Py))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),RC=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[{provide:xC,useClass:TC}],imports:[[Fy]]}),t}(),MC={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},PC=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[{provide:SC,useValue:MC}],imports:[[RC]]}),t}(),FC=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return new t},token:t,providedIn:"root"}),t}(),LC=function(){function t(e,n,i){y(this,t),this._renderer=e,this.element=n,this.config=i,this.state=3}return b(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),NC={enterDuration:450,exitDuration:400},VC=Vy({passive:!0}),BC=["mousedown","touchstart"],jC=["mouseup","mouseleave","touchend","touchcancel"],zC=function(){function t(e,n,i,r){y(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Jg(i))}return b(t,[{key:"fadeInRipple",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},NC),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var o=i.radius||UC(t,e,r),s=t-r.left,u=e-r.top,l=a.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left="".concat(s-o,"px"),c.style.top="".concat(u-o,"px"),c.style.height="".concat(2*o,"px"),c.style.width="".concat(2*o,"px"),null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(c),HC(c),c.style.transform="scale(1)";var h=new LC(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var t=h===n._mostRecentTransientRipple;h.state=1,i.persistent||t&&n._isPointerDown||h.fadeOut()}),l),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},NC),t.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone((function(){t.state=3,n.parentNode.removeChild(n)}),i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(t){return t.fadeOut()}))}},{key:"setupTriggerEvents",value:function(t){var e=Jg(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(BC))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(jC),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=wb(t),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(t,e)}))}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular((function(){t.forEach((function(t){e._triggerElement.addEventListener(t,e,VC)}))}))}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(BC.forEach((function(e){t._triggerElement.removeEventListener(e,t,VC)})),this._pointerUpEventsRegistered&&jC.forEach((function(e){t._triggerElement.removeEventListener(e,t,VC)})))}}]),t}();function HC(t){window.getComputedStyle(t).getPropertyValue("opacity")}function UC(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}var WC=new re("mat-ripple-global-options"),qC=function(){var t=function(){function t(e,n,i,r,a){y(this,t),this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new zC(this,n,e,i)}return b(t,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{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}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(cc),rs(Py),rs(WC,8),rs(iC,8))},t.\u0275dir=Be({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Ns("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t}(),GC=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[mC,Fy],mC]}),t}(),YC=function(){var t=function t(e){y(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1};return t.\u0275fac=function(e){return new(e||t)(rs(iC,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&Ns("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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}(),KC=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),ZC=vC((function t(){y(this,t)})),$C=0,XC=function(){var t=function(t){f(n,t);var e=g(n);function n(){var t;return y(this,n),(t=e.apply(this,arguments))._labelId="mat-optgroup-label-".concat($C++),t}return n}(ZC);return t.\u0275fac=function(e){return QC(e||t)},t.\u0275dir=Be({type:t,inputs:{label:"label"},features:[eu]}),t}(),QC=Vi(XC),JC=new re("MatOptgroup"),tx=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(XC);return t.\u0275fac=function(e){return ex(e||t)},t.\u0275cmp=Me({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(ts("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),Ns("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[pu([{provide:JC,useExisting:t}]),eu],ngContentSelectors:uC,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(Ss(sC),us(0,"label",0),Ks(1),Es(2),ls(),Es(3,1)),2&t&&(os("id",e._labelId),Yr(1),$s("",e.label," "))},styles:[".mat-optgroup-label{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%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t}(),ex=Vi(tx),nx=0,ix=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y(this,t),this.source=e,this.isUserInput=n},rx=new re("MAT_OPTION_PARENT_COMPONENT"),ax=function(){var t=function(){function t(e,n,i,r){y(this,t),this._element=e,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(nx++),this.onSelectionChange=new bl,this._stateChanges=new U}return b(t,[{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(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{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(t){13!==t.keyCode&&32!==t.keyCode||m_(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new ix(this,t))}},{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(t){this._disabled=Kg(t)}},{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()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(void 0),rs(XC))},t.\u0275dir=Be({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),ox=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a){return y(this,n),e.call(this,t,i,r,a)}return n}(ax);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(rx,8),rs(JC,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&gs("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(Qs("id",e.id),ts("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),Ns("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[eu],ngContentSelectors:cC,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(Ss(),ns(0,lC,1,2,"mat-pseudo-checkbox",0),us(1,"span",1),Es(2),ls(),cs(3,"div",2)),2&t&&(os("ngIf",e.multiple),Yr(3),os("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[ld,qC,YC],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;-ms-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}.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}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.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 sx(t,e,n){if(n.length){for(var i=e.toArray(),r=n.toArray(),a=0,o=0;on+i?Math.max(0,r-i+e):n}var lx=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[GC,Wd,KC]]}),t}(),cx=new re("mat-label-global-options");function hx(t,e){}var dx=function t(){y(this,t),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},fx={dialogContainer:Mb("dialogContainer",[Vb("void, exit",Nb({opacity:0,transform:"scale(0.7)"})),Vb("enter",Nb({transform:"none"})),jb("* => enter",Pb("150ms cubic-bezier(0, 0, 0.2, 1)",Nb({transform:"none",opacity:1}))),jb("* => void, * => exit",Pb("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Nb({opacity:0})))])};function px(){throw Error("Attempting to attach dialog content after content is already attached")}var mx=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s){var u;return y(this,n),(u=e.call(this))._elementRef=t,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=o,u._focusMonitor=s,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u._state="enter",u._animationStateChanged=new bl,u.attachDomPortal=function(t){return u._portalOutlet.hasAttached()&&px(),u._setupFocusTrap(),u._portalOutlet.attachDomPortal(t)},u._ariaLabelledBy=o.ariaLabelledBy||null,u._document=a,u}return b(n,[{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached()&&px(),this._setupFocusTrap(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached()&&px(),this._setupFocusTrap(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){var t=this;this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return t._elementRef.nativeElement.focus()})))}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}},{key:"_onAnimationDone",value:function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}},{key:"_onAnimationStart",value:function(t){this._animationStateChanged.emit(t)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(a_);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(vb),rs(So),rs(Wc,8),rs(dx),rs(Sb))},t.\u0275cmp=Me({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&Rl(u_,!0),2&t&&Tl(n=Vl())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&ys("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(ts("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),Js("@dialogContainer",e._state))},features:[eu],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&ns(0,hx,0,0,"ng-template",0)},directives:[u_],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[fx.dialogContainer]}}),t}(),vx=0,gx=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(vx++);y(this,t),this._overlayRef=e,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new U,this._afterClosed=new U,this._beforeClosed=new U,this._state=0,n._id=r,n._animationStateChanged.pipe(Df((function(t){return"done"===t.phaseName&&"enter"===t.toState})),Lp(1)).subscribe((function(){i._afterOpened.next(),i._afterOpened.complete()})),n._animationStateChanged.pipe(Df((function(t){return"done"===t.phaseName&&"exit"===t.toState})),Lp(1)).subscribe((function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()})),e.detachments().subscribe((function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()})),e.keydownEvents().pipe(Df((function(t){return 27===t.keyCode&&!i.disableClose&&!m_(t)}))).subscribe((function(t){t.preventDefault(),yx(i,"keyboard")})),e.backdropClick().subscribe((function(){i.disableClose?i._containerInstance._recaptureFocus():yx(i,"mouse")}))}return b(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Df((function(t){return"start"===t.phaseName})),Lp(1)).subscribe((function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout((function(){return e._finishDialogClose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function yx(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}var _x=new re("MatDialogData"),bx=new re("mat-dialog-default-options"),kx=new re("mat-dialog-scroll-strategy"),wx={provide:kx,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},Cx=function(){var t=function(){function t(e,n,i,r,a,o,s){var u=this;y(this,t),this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U,this._afterOpenedAtThisLevel=new U,this._ariaHiddenElements=new Map,this.afterAllClosed=bp((function(){return u.openDialogs.length?u._getAfterAllClosed():u._getAfterAllClosed().pipe($p(void 0))})),this._scrollStrategy=a}return b(t,[{key:"_getAfterAllClosed",value:function(){var t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(t,e){var n=this;if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new dx)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'.concat(e.id,'" exists already. The dialog id must be unique.'));var i=this._createOverlay(e),r=this._attachDialogContainer(i,e),a=this._attachDialogContent(t,r,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe((function(){return n._removeOpenDialog(a)})),this.afterOpened.next(a),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find((function(e){return e.id===t}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new x_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}},{key:"_attachDialogContainer",value:function(t,e){var n=Uo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:dx,useValue:e}]}),i=new n_(mx,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}},{key:"_attachDialogContent",value:function(t,e,n,i){var r=new gx(n,e,i.id);if(t instanceof Uu)e.attachTemplatePortal(new i_(t,null,{$implicit:i.data,dialogRef:r}));else{var a=this._createInjector(i,r,e),o=e.attachComponentPortal(new n_(t,i.viewContainerRef,a));r.componentInstance=o.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:mx,useValue:n},{provide:_x,useValue:t.data},{provide:gx,useValue:e}];return!t.direction||i&&i.get(Hy,null)||r.push({provide:Hy,useValue:{value:t.direction,change:Sf()}}),Uo.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(U_),fe(Uo),fe(ah,8),fe(bx,8),fe(kx),fe(t,12),fe(M_))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),xx=0,Sx=function(){var t=function(){function t(e,n,i){y(this,t),this.dialogRef=e,this._elementRef=n,this._dialog=i,this.type="button"}return b(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=Ix(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}},{key:"_onButtonClick",value:function(t){yx(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(gx,8),rs(_u),rs(Cx))},t.\u0275dir=Be({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&gs("click",(function(t){return e._onButtonClick(t)})),2&t&&ts("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Qe]}),t}(),Ex=function(){var t=function(){function t(e,n,i){y(this,t),this._dialogRef=e,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(xx++)}return b(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=Ix(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(gx,8),rs(_u),rs(Cx))},t.\u0275dir=Be({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&Qs("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),Dx=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),Ax=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}();function Ix(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find((function(t){return t.id===n.id})):null}var Ox=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[Cx,wx],imports:[[Z_,h_,mC],mC]}),t}();function Tx(t){var e=t.subscriber,n=t.counter,i=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var Rx=["mat-button",""],Mx=["*"],Px=".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;-ms-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;-ms-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;-ms-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;-ms-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}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.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:block;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}\n",Fx=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Lx=gC(vC(yC((function t(e){y(this,t),this._elementRef=e})))),Nx=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;y(this,n),(a=e.call(this,t))._focusMonitor=i,a._animationMode=r,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var o,s=h(Fx);try{for(s.s();!(o=s.n()).done;){var u=o.value;a._hasHostAttributes(u)&&a._getHostElement().classList.add(u)}}catch(l){s.e(l)}finally{s.f()}return t.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return b(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),t,e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i0&&(this.dialogRef.afterClosed().subscribe((function(e){t.closed()})),this.setExtra(this.data.autoclose),this.subscription=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:my;return(!_y(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=my),new V((function(n){return n.add(e.schedule(Tx,t,{subscriber:n,counter:0,period:t})),n}))}(1e3).subscribe((function(e){var n=t.data.autoclose-1e3*(e+1);t.setExtra(n),n<=0&&t.close()})))},t.prototype.initYesNo=function(){},t.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===qx.yesno?this.initYesNo():this.initAlert()},t.\u0275fac=function(e){return new(e||t)(rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(t,e){1&t&&(cs(0,"h4",0),ml(1,"safeHtml"),cs(2,"mat-dialog-content",1),ml(3,"safeHtml"),us(4,"mat-dialog-actions"),ns(5,Hx,4,1,"button",2),ns(6,Ux,3,1,"button",3),ns(7,Wx,3,1,"button",3),ls()),2&t&&(os("innerHtml",vl(1,5,e.data.title),Sr),Yr(2),os("innerHTML",vl(3,7,e.data.body),Sr),Yr(3),os("ngIf",0==e.data.type),Yr(1),os("ngIf",1==e.data.type),Yr(1),os("ngIf",1==e.data.type))},directives:[Ex,Dx,Ax,ld,Nx,Sx,jx],pipes:[zx],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),Yx=function(t){return t.TEXT="text",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t}({}),Kx=function(){function t(){}return t.locateChoice=function(t,e){var n=e.gui.values.find((function(e){return e.id===t}));if(void 0===n)try{n=e.gui.values[0]}catch(i){n={id:"",img:"",text:""}}return n},t}();function Zx(t,e){return new V((function(n){var i=t.length;if(0!==i)for(var r=new Array(i),a=0,o=0,s=function(s){var u=nt(t[s]),l=!1;n.add(u.subscribe({next:function(t){l||(l=!0,o++),r[s]=t},error:function(t){return n.error(t)},complete:function(){++a!==i&&l||(o===i&&n.next(e?e.reduce((function(t,e,n){return t[e]=r[n],t}),{}):r),n.complete())}}))},u=0;u0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}},{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}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t}),t}(),iS=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(nS);return t.\u0275fac=function(e){return rS(e||t)},t.\u0275dir=Be({type:t,features:[eu]}),t}(),rS=Vi(iS);function aS(){throw new Error("unimplemented")}var oS=function(t){f(n,t);var e=g(n);function n(){var t;return y(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return b(n,[{key:"validator",get:function(){return aS()}},{key:"asyncValidator",get:function(){return aS()}}]),n}(nS),sS=function(){function t(e){y(this,t),this._cd=e}return b(t,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),t}(),uS=function(){var t=function(t){f(n,t);var e=g(n);function n(t){return y(this,n),e.call(this,t)}return n}(sS);return t.\u0275fac=function(e){return new(e||t)(rs(oS,2))},t.\u0275dir=Be({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Ns("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[eu]}),t}(),lS=function(){var t=function(t){f(n,t);var e=g(n);function n(t){return y(this,n),e.call(this,t)}return n}(sS);return t.\u0275fac=function(e){return new(e||t)(rs(iS,2))},t.\u0275dir=Be({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&Ns("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[eu]}),t}();function cS(t){return null==t||0===t.length}function hS(t){return null!=t&&"number"==typeof t.length}var dS=new re("NgValidators"),fS=new re("NgAsyncValidators"),pS=/^(?=.{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])?)*$/,mS=function(){function t(){y(this,t)}return b(t,null,[{key:"min",value:function(t){return function(e){if(cS(e.value)||cS(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return cS(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return cS(t.value)||pS.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){return cS(e.value)||!hS(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(cS(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}):t.nullValidator;var n,i}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(vS);return 0==e.length?null:function(t){return yS(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(vS);return 0==e.length?null:function(t){return function(){for(var t=arguments.length,e=new Array(t),n=0;n=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),SS=function(){var t=function(){function t(e,n,i,r){y(this,t),this._renderer=e,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return b(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(oS),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Cu),rs(_u),rs(xS),rs(Uo))},t.\u0275dir=Be({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&gs("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[pu([CS])]}),t}(),ES={provide:$x,useExisting:Ht((function(){return DS})),multi:!0},DS=function(){var t=function(){function t(e,n){y(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return b(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Cu),rs(_u))},t.\u0275dir=Be({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&gs("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[pu([ES])]}),t}(),AS='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',IS='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',OS='\n
\n
\n \n
\n
',TS=function(){function t(){y(this,t)}return b(t,null,[{key:"controlParentException",value:function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(AS))}},{key:"ngModelGroupException",value:function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '.concat(IS,"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(OS))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ".concat(AS))}},{key:"groupParentException",value:function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(IS))}},{key:"arrayParentException",value:function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat('\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });'))}},{key:"disabledAttrWarning",value:function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n\n Example:\n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}},{key:"ngModelWarning",value:function(t){console.warn("\n It looks like you're using ngModel on the same form field as ".concat(t,".\n Support for using the ngModel input property and ngModelChange event with\n reactive form directives has been deprecated in Angular v6 and will be removed\n in a future version of Angular.\n\n For more information on this, see our API docs here:\n https://angular.io/api/forms/").concat("formControl"===t?"FormControlDirective":"FormControlName","#use-with-ngmodel\n "))}}]),t}(),RS={provide:$x,useExisting:Ht((function(){return PS})),multi:!0};function MS(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var PS=function(){var t=function(){function t(e,n){y(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Object.is}return b(t,[{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=MS(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,a=0;a1?"path: '".concat(t.path.join(" -> "),"'"):t.path[0]?"name: '".concat(t.path,"'"):"unspecified name attribute",new Error("".concat(e," ").concat(n))}function GS(t){return null!=t?mS.compose(t.map(_S)):null}function YS(t){return null!=t?mS.composeAsync(t.map(bS)):null}function KS(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}var ZS=[Qx,DS,wS,PS,VS,SS];function $S(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function XS(t,e){if(!e)return null;Array.isArray(e)||qS(t,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,r=void 0;return e.forEach((function(e){var a;e.constructor===eS?n=e:(a=e,ZS.some((function(t){return a.constructor===t}))?(i&&qS(t,"More than one built-in value accessor matches form control with"),i=e):(r&&qS(t,"More than one custom value accessor matches form control with"),r=e))})),r||i||n||(qS(t,"No valid value accessor for form control with"),null)}function QS(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function JS(t,e,n,i){tr()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(TS.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function tE(t){var e=nE(t)?t.validators:t;return Array.isArray(e)?GS(e):e||null}function eE(t,e){var n=nE(e)?e.asyncValidators:t;return Array.isArray(n)?YS(n):n||null}function nE(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var iE=function(){function t(e,n){y(this,t),this.validator=e,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return b(t,[{key:"setValidators",value:function(t){this.validator=tE(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=eE(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=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(),"VALID"!==this.status&&"PENDING"!==this.status||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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=gS(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return e.setErrors(n,{emitEvent:t})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var i=t;return e.forEach((function(t){i=i instanceof aE?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof oE&&i.at(t)||null})),i}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new bl,this.statusChanges=new bl}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls((function(e){return e.status===t}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(t){return t.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(t){return t.touched}))}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){nE(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{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:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}}]),t}(),rE=function(t){f(n,t);var e=g(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return y(this,n),(t=e.call(this,tE(r),eE(a,r)))._onChange=[],t._applyFormState(i),t._setUpdateStrategy(r),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return b(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(t){return t(e.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_forEachChild",value:function(t){}},{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(t){this._isBoxedValue(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}}]),n}(iE),aE=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,tE(i),eE(r,i))).controls=t,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return b(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach((function(i){e._throwIfControlMissing(i),e.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(i){e.controls[i]&&e.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof rE?e.value:e.getRawValue(),t}))}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(iE),oE=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,tE(i),eE(r,i))).controls=t,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return b(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach((function(t,i){e._throwIfControlMissing(i),e.at(i).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t,i){e.at(i)&&e.at(i).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map((function(t){return t instanceof rE?t.value:t.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach((function(e,n){t(e,n)}))}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))}},{key:"_anyControls",value:function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var t,e=h(this.controls);try{for(e.s();!(t=e.n()).done;)if(t.value.enabled)return!1}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(iE),sE={provide:iS,useExisting:Ht((function(){return lE}))},uE=function(){return Promise.resolve(null)}(),lE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new bl,r.form=new aE({},GS(t),YS(i)),r}return b(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;uE.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),zS(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;uE.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),QS(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;uE.then((function(){var n=e._findContainer(t.path),i=new aE({});US(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;uE.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;uE.then((function(){n.form.get(t.path).setValue(e)}))}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,$S(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}},{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}}]),n}(iS);return t.\u0275fac=function(e){return new(e||t)(rs(dS,10),rs(fS,10))},t.\u0275dir=Be({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&gs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pu([sE]),eu]}),t}(),cE=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return jS(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return GS(this._validators)}},{key:"asyncValidator",get:function(){return YS(this._asyncValidators)}}]),n}(iS);return t.\u0275fac=function(e){return hE(e||t)},t.\u0275dir=Be({type:t,features:[eu]}),t}(),hE=Vi(cE),dE=function(){function t(){y(this,t)}return b(t,null,[{key:"modelParentException",value:function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '.concat(AS,"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n ").concat('\n
\n \n \n
\n '))}},{key:"formGroupNameException",value:function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ".concat(IS,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(OS))}},{key:"missingNameException",value:function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}},{key:"modelGroupParentException",value:function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ".concat(IS,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(OS))}}]),t}(),fE={provide:iS,useExisting:Ht((function(){return pE}))},pE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this))._parent=t,a._validators=i,a._asyncValidators=r,a}return b(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof lE||dE.modelGroupParentException()}}]),n}(cE);return t.\u0275fac=function(e){return new(e||t)(rs(iS,5),rs(dS,10),rs(fS,10))},t.\u0275dir=Be({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[pu([fE]),eu]}),t}(),mE={provide:oS,useExisting:Ht((function(){return gE}))},vE=function(){return Promise.resolve(null)}(),gE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o){var s;return y(this,n),(s=e.call(this)).control=new rE,s._registered=!1,s.update=new bl,s._parent=t,s._rawValidators=i||[],s._rawAsyncValidators=r||[],s.valueAccessor=XS(a(s),o),s}return b(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),KS(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{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(){zS(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof pE)&&this._parent instanceof cE?dE.formGroupNameException():this._parent instanceof pE||this._parent instanceof lE||dE.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||dE.missingNameException()}},{key:"_updateValue",value:function(t){var e=this;vE.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;vE.then((function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()}))}},{key:"path",get:function(){return this._parent?jS(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return GS(this._rawValidators)}},{key:"asyncValidator",get:function(){return YS(this._rawAsyncValidators)}}]),n}(oS);return t.\u0275fac=function(e){return new(e||t)(rs(iS,9),rs(dS,10),rs(fS,10),rs($x,10))},t.\u0275dir=Be({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:[pu([mE]),eu,Qe]}),t}(),yE=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),_E=new re("NgModelWithFormControlWarning"),bE={provide:oS,useExisting:Ht((function(){return kE}))},kE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o){var s;return y(this,n),(s=e.call(this))._ngModelWarningConfig=o,s.update=new bl,s._ngModelWarningSent=!1,s._rawValidators=t||[],s._rawAsyncValidators=i||[],s.valueAccessor=XS(a(s),r),s}return b(n,[{key:"ngOnChanges",value:function(t){this._isControlChanged(t)&&(zS(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),KS(t,this.viewModel)&&(JS("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}},{key:"isDisabled",set:function(t){TS.disabledAttrWarning()}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return GS(this._rawValidators)}},{key:"asyncValidator",get:function(){return YS(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),n}(oS);return t.\u0275fac=function(e){return new(e||t)(rs(dS,10),rs(fS,10),rs($x,10),rs(_E,8))},t.\u0275dir=Be({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[pu([bE]),eu,Qe]}),t._ngModelWarningSentOnce=!1,t}(),wE={provide:iS,useExisting:Ht((function(){return CE}))},CE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this))._validators=t,r._asyncValidators=i,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new bl,r}return b(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return zS(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){QS(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);US(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(t){}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){var e=this.form.get(t.path);US(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(t){}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,$S(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return WS(e)})),e.valueAccessor.registerOnTouched((function(){return WS(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&zS(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var t=GS(this._validators);this.form.validator=mS.compose([this.form.validator,t]);var e=YS(this._asyncValidators);this.form.asyncValidator=mS.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){this.form||TS.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(iS);return t.\u0275fac=function(e){return new(e||t)(rs(dS,10),rs(fS,10))},t.\u0275dir=Be({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&gs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pu([wE]),eu,Qe]}),t}(),xE={provide:iS,useExisting:Ht((function(){return SE}))},SE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this))._parent=t,a._validators=i,a._asyncValidators=r,a}return b(n,[{key:"_checkParentType",value:function(){AE(this._parent)&&TS.groupParentException()}}]),n}(cE);return t.\u0275fac=function(e){return new(e||t)(rs(iS,13),rs(dS,10),rs(fS,10))},t.\u0275dir=Be({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[pu([xE]),eu]}),t}(),EE={provide:iS,useExisting:Ht((function(){return DE}))},DE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this))._parent=t,a._validators=i,a._asyncValidators=r,a}return b(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){AE(this._parent)&&TS.arrayParentException()}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return jS(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return GS(this._validators)}},{key:"asyncValidator",get:function(){return YS(this._asyncValidators)}}]),n}(iS);return t.\u0275fac=function(e){return new(e||t)(rs(iS,13),rs(dS,10),rs(fS,10))},t.\u0275dir=Be({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[pu([EE]),eu]}),t}();function AE(t){return!(t instanceof SE||t instanceof CE||t instanceof DE)}var IE={provide:oS,useExisting:Ht((function(){return OE}))},OE=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o,s){var u;return y(this,n),(u=e.call(this))._ngModelWarningConfig=s,u._added=!1,u.update=new bl,u._ngModelWarningSent=!1,u._parent=t,u._rawValidators=i||[],u._rawAsyncValidators=r||[],u.valueAccessor=XS(a(u),o),u}return b(n,[{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),KS(t,this.viewModel)&&(JS("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_checkParentType",value:function(){!(this._parent instanceof SE)&&this._parent instanceof cE?TS.ngModelGroupException():this._parent instanceof SE||this._parent instanceof CE||this._parent instanceof DE||TS.controlParentException()}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(t){TS.disabledAttrWarning()}},{key:"path",get:function(){return jS(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return GS(this._rawValidators)}},{key:"asyncValidator",get:function(){return YS(this._rawAsyncValidators)}}]),n}(oS);return t.\u0275fac=function(e){return new(e||t)(rs(iS,13),rs(dS,10),rs(fS,10),rs($x,10),rs(_E,8))},t.\u0275dir=Be({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[pu([IE]),eu,Qe]}),t._ngModelWarningSentOnce=!1,t}(),TE={provide:dS,useExisting:Ht((function(){return ME})),multi:!0},RE={provide:dS,useExisting:Ht((function(){return PE})),multi:!0},ME=function(){var t=function(){function t(){y(this,t),this._required=!1}return b(t,[{key:"validate",value:function(t){return this.required?mS.required(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&ts("required",e.required?"":null)},inputs:{required:"required"},features:[pu([TE])]}),t}(),PE=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"validate",value:function(t){return this.required?mS.requiredTrue(t):null}}]),n}(ME);return t.\u0275fac=function(e){return FE(e||t)},t.\u0275dir=Be({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&ts("required",e.required?"":null)},features:[pu([RE]),eu]}),t}(),FE=Vi(PE),LE={provide:dS,useExisting:Ht((function(){return NE})),multi:!0},NE=function(){var t=function(){function t(){y(this,t),this._enabled=!1}return b(t,[{key:"validate",value:function(t){return this._enabled?mS.email(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"email",set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[pu([LE])]}),t}(),VE={provide:dS,useExisting:Ht((function(){return BE})),multi:!0},BE=function(){var t=function(){function t(){y(this,t),this._validator=mS.nullValidator}return b(t,[{key:"ngOnChanges",value:function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null==this.minlength?null:this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=mS.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&ts("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[pu([VE]),Qe]}),t}(),jE={provide:dS,useExisting:Ht((function(){return zE})),multi:!0},zE=function(){var t=function(){function t(){y(this,t),this._validator=mS.nullValidator}return b(t,[{key:"ngOnChanges",value:function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null!=this.maxlength?this._validator(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=mS.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&ts("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[pu([jE]),Qe]}),t}(),HE={provide:dS,useExisting:Ht((function(){return UE})),multi:!0},UE=function(){var t=function(){function t(){y(this,t),this._validator=mS.nullValidator}return b(t,[{key:"ngOnChanges",value:function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=mS.pattern(this.pattern)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&ts("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[pu([HE]),Qe]}),t}(),WE=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}();function qE(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}var GE=function(){var t=function(){function t(){y(this,t)}return b(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),i=null,r=null,a=void 0;return null!=e&&(qE(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,a=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new aE(n,{asyncValidators:r,updateOn:a,validators:i})}},{key:"control",value:function(t,e,n){return new rE(t,e,n)}},{key:"array",value:function(t,e,n){var i=this,r=t.map((function(t){return i._createControl(t)}));return new oE(r,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach((function(i){n[i]=e._createControl(t[i])})),n}},{key:"_createControl",value:function(t){return t instanceof rE||t instanceof aE||t instanceof oE?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),YE=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[xS],imports:[WE]}),t}(),KE=function(){var t=function(){function t(){y(this,t)}return b(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:_E,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[GE,xS],imports:[WE]}),t}();function ZE(t,e){1&t&&Es(0)}var $E=["*"];function XE(t,e){}var QE=function(t){return{animationDuration:t}},JE=function(t,e){return{value:t,params:e}},tD=["tabBodyWrapper"],eD=["tabHeader"];function nD(t,e){}function iD(t,e){1&t&&ns(0,nD,0,0,"ng-template",9),2&t&&os("cdkPortalOutlet",Cs().$implicit.templateLabel)}function rD(t,e){1&t&&Ks(0),2&t&&Zs(Cs().$implicit.textLabel)}function aD(t,e){if(1&t){var n=ps();us(0,"div",6),gs("click",(function(){xn(n);var t=e.$implicit,i=e.index,r=Cs(),a=is(1);return r._handleClick(t,a,i)})),us(1,"div",7),ns(2,iD,1,1,"ng-template",8),ns(3,rD,1,1,"ng-template",8),ls(),ls()}if(2&t){var i=e.$implicit,r=e.index,a=Cs();Ns("mat-tab-label-active",a.selectedIndex==r),os("id",a._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||a.disableRipple),ts("tabIndex",a._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(r))("aria-selected",a.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),Yr(2),os("ngIf",i.templateLabel),Yr(1),os("ngIf",!i.templateLabel)}}function oD(t,e){if(1&t){var n=ps();us(0,"mat-tab-body",10),gs("_onCentered",(function(){return xn(n),Cs()._removeTabBodyWrapperHeight()}))("_onCentering",(function(t){return xn(n),Cs()._setTabBodyWrapperHeight(t)})),ls()}if(2&t){var i=e.$implicit,r=e.index,a=Cs();Ns("mat-tab-body-active",a.selectedIndex==r),os("id",a._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",a.animationDuration),ts("aria-labelledby",a._getTabLabelId(r))}}var sD=["tabListContainer"],uD=["tabList"],lD=["nextPaginator"],cD=["previousPaginator"],hD=["mat-tab-nav-bar",""],dD=new re("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),fD=function(){var t=function(){function t(e,n,i,r){y(this,t),this._elementRef=e,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return b(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e._setStyles(t)}))})):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(cc),rs(dD),rs(iC,8))},t.\u0275dir=Be({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&Ns("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),pD=new re("MatTabContent"),mD=function(){var t=function t(e){y(this,t),this.template=e};return t.\u0275fac=function(e){return new(e||t)(rs(Uu))},t.\u0275dir=Be({type:t,selectors:[["","matTabContent",""]],features:[pu([{provide:pD,useExisting:t}])]}),t}(),vD=new re("MatTabLabel"),gD=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(s_);return t.\u0275fac=function(e){return yD(e||t)},t.\u0275dir=Be({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[pu([{provide:vD,useExisting:t}]),eu]}),t}(),yD=Vi(gD),_D=vC((function t(){y(this,t)})),bD=new re("MAT_TAB_GROUP"),kD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this))._viewContainerRef=t,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new U,r.position=null,r.origin=null,r.isActive=!1,r}return b(n,[{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new i_(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){t&&(this._templateLabel=t)}},{key:"content",get:function(){return this._contentPortal}}]),n}(_D);return t.\u0275fac=function(e){return new(e||t)(rs(qu),rs(bD,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(Fl(n,vD,!0),Ll(n,pD,!0,Uu)),2&t&&(Tl(i=Vl())&&(e.templateLabel=i.first),Tl(i=Vl())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&Rl(Uu,!0),2&t&&Tl(n=Vl())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[eu,Qe],ngContentSelectors:$E,decls:1,vars:0,template:function(t,e){1&t&&(Ss(),ns(0,ZE,1,0,"ng-template"))},encapsulation:2}),t}(),wD={translateTab:Mb("translateTab",[Vb("center, void, left-origin-center, right-origin-center",Nb({transform:"none"})),Vb("left",Nb({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Vb("right",Nb({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),jb("* => left, * => right, left => center, right => center",Pb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),jb("void => left-origin-center",[Nb({transform:"translate3d(-100%, 0, 0)"}),Pb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),jb("void => right-origin-center",[Nb({transform:"translate3d(100%, 0, 0)"}),Pb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},CD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t,i,a))._host=r,o._centeringSub=E.EMPTY,o._leavingSub=E.EMPTY,o}return b(n,[{key:"ngOnInit",value:function(){var t=this;r(i(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe($p(this._host._isCenterPosition(this._host._position))).subscribe((function(e){e&&!t.hasAttached()&&t.attach(t._host._content)})),this._leavingSub=this._host._afterLeavingCenter.subscribe((function(){t.detach()}))}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(u_);return t.\u0275fac=function(e){return new(e||t)(rs(yu),rs(qu),rs(Ht((function(){return SD}))),rs(Wc))},t.\u0275dir=Be({type:t,selectors:[["","matTabBodyHost",""]],features:[eu]}),t}(),xD=function(){var t=function(){function t(e,n,i){var r=this;y(this,t),this._elementRef=e,this._dir=n,this._dirChangeSubscription=E.EMPTY,this._translateTabComplete=new U,this._onCentering=new bl,this._beforeCentering=new bl,this._afterLeavingCenter=new bl,this._onCentered=new bl(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe((function(t){r._computePositionAnimationState(t),i.markForCheck()}))),this._translateTabComplete.pipe(dy((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()}))}return b(t,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Hy,8),rs(So))},t.\u0275dir=Be({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),SD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){return y(this,n),e.call(this,t,i,r)}return n}(xD);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Hy,8),rs(So))},t.\u0275cmp=Me({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&Ml(l_,!0),2&t&&Tl(n=Vl())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[eu],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(us(0,"div",0,1),gs("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),ns(2,XE,0,0,"ng-template",2),ls()),2&t&&os("@translateTab",hl(3,JE,e._position,cl(1,QE,e.animationDuration)))},directives:[CD],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[wD.translateTab]}}),t}(),ED=new re("MAT_TABS_CONFIG"),DD=0,AD=function t(){y(this,t)},ID=gC(yC((function t(e){y(this,t),this._elementRef=e})),"primary"),OD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this,t))._changeDetectorRef=i,o._animationMode=a,o._tabs=new wl,o._indexToSelect=0,o._tabBodyWrapperHeight=0,o._tabsSubscription=E.EMPTY,o._tabLabelSubscription=E.EMPTY,o._dynamicHeight=!1,o._selectedIndex=null,o.headerPosition="above",o.selectedIndexChange=new bl,o.focusChange=new bl,o.animationDone=new bl,o.selectedTabChange=new bl(!0),o._groupId=DD++,o.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",o.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,o}return b(n,[{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(e)),Promise.resolve().then((function(){t._tabs.forEach((function(t,n){return t.isActive=n===e})),n||t.selectedIndexChange.emit(e)}))}this._tabs.forEach((function(n,i){n.position=i-e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)})),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t}(),RD=vC((function t(){y(this,t)})),MD=function(){var t=function(t){f(n,t);var e=g(n);function n(t){var i;return y(this,n),(i=e.call(this)).elementRef=t,i}return b(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(RD);return t.\u0275fac=function(e){return new(e||t)(rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(ts("aria-disabled",!!e.disabled),Ns("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[eu]}),t}(),PD=Vy({passive:!0}),FD=function(){var t=function(){function t(e,n,i,r,a,o,s){var u=this;y(this,t),this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=a,this._platform=o,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new U,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new U,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new bl,this.indexFocused=new bl,a.runOutsideAngular((function(){ty(e.nativeElement,"mouseleave").pipe(Cy(u._destroyed)).subscribe((function(){u._stopInterval()}))}))}return b(t,[{key:"ngAfterViewInit",value:function(){var t=this;ty(this._previousPaginator.nativeElement,"touchstart",PD).pipe(Cy(this._destroyed)).subscribe((function(){t._handlePaginatorPress("before")})),ty(this._nextPaginator.nativeElement,"touchstart",PD).pipe(Cy(this._destroyed)).subscribe((function(){t._handlePaginatorPress("after")}))}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Sf(null),n=this._viewportRuler.change(150),i=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new hb(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),ht(e,n,this._items.changes).pipe(Cy(this._destroyed)).subscribe((function(){Promise.resolve().then(i),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())})),this._keyManager.change.pipe(Cy(this._destroyed)).subscribe((function(e){t.indexFocused.emit(e),t._setTabFocus(e)}))}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!m_(t))switch(t.keyCode){case 36:this._keyManager.setFirstItemActive(),t.preventDefault();break;case 35:this._keyManager.setLastItemActive(),t.preventDefault();break;case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run((function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()})))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e=this._platform,n="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(n),"px)"),e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,a=e.elementRef.nativeElement,o=a.offsetLeft,s=a.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=o)+s:n=(i=this._tabList.nativeElement.offsetWidth-o)-s;var u=this.scrollDistance,l=this.scrollDistance+r;nl&&(this.scrollDistance+=i-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var n=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),by(650,100).pipe(Cy(ht(this._stopScrolling,this._destroyed))).subscribe((function(){var e=n._scrollHeader(t),i=e.distance;(0===i||i>=e.maxScrollDistance)&&n._stopInterval()})))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=Zg(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(Xy),rs(Hy,8),rs(cc),rs(Py),rs(iC,8))},t.\u0275dir=Be({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),LD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u){var l;return y(this,n),(l=e.call(this,t,i,r,a,o,s,u))._disableRipple=!1,l}return b(n,[{key:"_itemSelected",value:function(t){t.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=Kg(t)}}]),n}(FD);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(Xy),rs(Hy,8),rs(cc),rs(Py),rs(iC,8))},t.\u0275dir=Be({type:t,inputs:{disableRipple:"disableRipple"},features:[eu]}),t}(),ND=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u){return y(this,n),e.call(this,t,i,r,a,o,s,u)}return n}(LD);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(Xy),rs(Hy,8),rs(cc),rs(Py),rs(iC,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,MD,!1),2&t&&Tl(i=Vl())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(Rl(fD,!0),Rl(sD,!0),Rl(uD,!0),Ml(lD,!0),Ml(cD,!0)),2&t&&(Tl(n=Vl())&&(e._inkBar=n.first),Tl(n=Vl())&&(e._tabListContainer=n.first),Tl(n=Vl())&&(e._tabList=n.first),Tl(n=Vl())&&(e._nextPaginator=n.first),Tl(n=Vl())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&Ns("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[eu],ngContentSelectors:$E,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(Ss(),us(0,"div",0,1),gs("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),cs(2,"div",2),ls(),us(3,"div",3,4),gs("keydown",(function(t){return e._handleKeydown(t)})),us(5,"div",5,6),gs("cdkObserveContent",(function(){return e._onContentChanges()})),us(7,"div",7),Es(8),ls(),cs(9,"mat-ink-bar"),ls(),ls(),us(10,"div",8,9),gs("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),cs(12,"div",2),ls()),2&t&&(Ns("mat-tab-header-pagination-disabled",e._disableScrollBefore),os("matRippleDisabled",e._disableScrollBefore||e.disableRipple),Yr(5),Ns("_mat-animation-noopable","NoopAnimations"===e._animationMode),Yr(5),Ns("mat-tab-header-pagination-disabled",e._disableScrollAfter),os("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[qC,nb,fD],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t}(),VD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u){var l;return y(this,n),(l=e.call(this,t,a,o,i,r,s,u))._disableRipple=!1,l.color="primary",l}return b(n,[{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var t=this;this._items.changes.pipe($p(null),Cy(this._destroyed)).subscribe((function(){t.updateActiveLink()})),r(i(n.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(t){if(this._items){for(var e=this._items.toArray(),n=0;n.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t}(),jD=_C(yC(vC((function t(){y(this,t)})))),zD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s){var u;return y(this,n),(u=e.call(this))._tabNavBar=t,u.elementRef=i,u._focusMonitor=o,u._isActive=!1,u.rippleConfig=r||{},u.tabIndex=parseInt(a)||0,"NoopAnimations"===s&&(u.rippleConfig.animation={enterDuration:0,exitDuration:0}),u}return b(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this.elementRef)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}},{key:"active",get:function(){return this._isActive},set:function(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}]),n}(jD);return t.\u0275fac=function(e){return new(e||t)(rs(VD),rs(_u),rs(WC,8),as("tabindex"),rs(Sb),rs(iC,8))},t.\u0275dir=Be({type:t,inputs:{active:"active"},features:[eu]}),t}(),HD=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o,s,u,l,c){var h;return y(this,n),(h=e.call(this,t,i,s,u,l,c))._tabLinkRipple=new zC(a(h),r,i,o),h._tabLinkRipple.setupTriggerEvents(i.nativeElement),h}return b(n,[{key:"ngOnDestroy",value:function(){r(i(n.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),n}(zD);return t.\u0275fac=function(e){return new(e||t)(rs(BD),rs(_u),rs(cc),rs(Py),rs(WC,8),as("tabindex"),rs(Sb),rs(iC,8))},t.\u0275dir=Be({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(ts("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),Ns("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[eu]}),t}(),UD=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Wd,mC,h_,GC,ib,Ib],mC]}),t}();function WD(t,e){if(1&t){var n=ps();us(0,"uds-field-text",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function qD(t,e){if(1&t){var n=ps();us(0,"uds-field-textbox",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function GD(t,e){if(1&t){var n=ps();us(0,"uds-field-numeric",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function YD(t,e){if(1&t){var n=ps();us(0,"uds-field-password",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function KD(t,e){if(1&t){var n=ps();us(0,"uds-field-hidden",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function ZD(t,e){if(1&t){var n=ps();us(0,"uds-field-choice",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function $D(t,e){if(1&t){var n=ps();us(0,"uds-field-multichoice",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function XD(t,e){if(1&t){var n=ps();us(0,"uds-field-editlist",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function QD(t,e){if(1&t){var n=ps();us(0,"uds-field-checkbox",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function JD(t,e){if(1&t){var n=ps();us(0,"uds-field-imgchoice",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function tA(t,e){if(1&t){var n=ps();us(0,"uds-field-date",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}function eA(t,e){if(1&t){var n=ps();us(0,"uds-field-tags",2),gs("changed",(function(t){return xn(n),Cs().changed.emit(t)})),ls()}2&t&&os("field",Cs().field)}var nA=function(){function t(){this.UDSGuiFieldType=Yx,this.changed=new bl}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:13,vars:14,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(t,e){1&t&&(us(0,"div",0),ns(1,WD,1,1,"uds-field-text",1),ns(2,qD,1,1,"uds-field-textbox",1),ns(3,GD,1,1,"uds-field-numeric",1),ns(4,YD,1,1,"uds-field-password",1),ns(5,KD,1,1,"uds-field-hidden",1),ns(6,ZD,1,1,"uds-field-choice",1),ns(7,$D,1,1,"uds-field-multichoice",1),ns(8,XD,1,1,"uds-field-editlist",1),ns(9,QD,1,1,"uds-field-checkbox",1),ns(10,JD,1,1,"uds-field-imgchoice",1),ns(11,tA,1,1,"uds-field-date",1),ns(12,eA,1,1,"uds-field-tags",1),ls()),2&t&&(os("ngSwitch",e.field.gui.type)("matTooltip",e.field.gui.tooltip),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.TEXT),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.TEXTBOX),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.NUMERIC),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.PASSWORD),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.HIDDEN),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.CHOICE),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.MULTI_CHOICE),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.EDITLIST),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.CHECKBOX),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.IMAGECHOICE),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.DATE),Yr(1),os("ngSwitchCase",e.UDSGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),t}();function iA(t,e){1&t&&Ks(0),2&t&&$s(" ",Cs().$implicit," ")}function rA(t,e){if(1&t){var n=ps();us(0,"uds-field",7),gs("changed",(function(t){return xn(n),Cs(3).changed.emit(t)})),ls()}2&t&&os("field",e.$implicit)}function aA(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,iA,1,1,"ng-template",4),us(2,"div",5),ns(3,rA,1,1,"uds-field",6),ls(),ls()),2&t){var n=e.$implicit,i=Cs(2);Yr(3),os("ngForOf",i.fieldsByTab[n])}}function oA(t,e){if(1&t&&(us(0,"mat-tab-group",2),ns(1,aA,4,1,"mat-tab",3),ls()),2&t){var n=Cs();os("disableRipple",!0)("@.disabled",!0),Yr(1),os("ngForOf",n.tabs)}}function sA(t,e){if(1&t&&(us(0,"div"),cs(1,"uds-field",8),ls()),2&t){var n=e.$implicit;Yr(1),os("field",n)}}function uA(t,e){1&t&&ns(0,sA,2,1,"div",3),2&t&&os("ngForOf",Cs().fields)}var lA=django.gettext("Main"),cA=function(){function t(){this.changed=new bl}return t.prototype.ngOnInit=function(){var t=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach((function(e){var n=void 0===e.gui.tab?lA:e.gui.tab;t.tabs.includes(n)||(t.tabs.push(n),t.fieldsByTab[n]=new Array),t.fieldsByTab[n].push(e)}))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[[3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],[3,"disableRipple"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"],[3,"field"]],template:function(t,e){if(1&t&&(ns(0,oA,2,3,"mat-tab-group",0),ns(1,uA,1,1,"ng-template",null,1,Hl)),2&t){var n=is(2);os("ngIf",e.tabs.length>1)("ngIfElse",n)}},directives:[ld,TD,sd,kD,gD,nA],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap} .mat-form-field-wrapper{padding-bottom:1em} .mat-tab-label{height:32px!important}"]}),t}();function hA(t,e){if(1&t){var n=ps();us(0,"button",10),gs("click",(function(){return xn(n),Cs().customButtonClicked()})),Ks(1),ls()}if(2&t){var i=Cs();Yr(1),Zs(i.data.customButton)}}var dA,fA=function(){function t(t,e){this.dialogRef=t,this.data=e,this.onEvent=new bl(!0),this.saving=!1}return t.prototype.ngOnInit=function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})},t.prototype.changed=function(t){this.onEvent.emit({type:"changed",data:t,dialog:this.dialogRef})},t.prototype.getFields=function(){var t={},e=[];return this.data.guiFields.forEach((function(n){var i=void 0!==n.values?n.values:n.value;n.gui.required&&0!==i&&(!i||i instanceof Array&&0===i.length)&&e.push(n.gui.label),"number"==typeof i&&(i=i.toString()),t[n.name]=i})),{data:t,errors:e}},t.prototype.save=function(){var t=this.getFields();t.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+t.errors.join(", ")):this.onEvent.emit({data:t.data,type:"save",dialog:this.dialogRef})},t.prototype.customButtonClicked=function(){var t=this.getFields();this.onEvent.emit({data:t.data,type:this.data.customButton,errors:t.errors,dialog:this.dialogRef})},t.\u0275fac=function(e){return new(e||t)(rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(t,e){1&t&&(cs(0,"h4",0),ml(1,"safeHtml"),us(2,"mat-dialog-content",null,1),us(4,"form",2),us(5,"uds-form",3),gs("changed",(function(t){return e.changed(t)})),ls(),ls(),ls(),us(6,"mat-dialog-actions"),us(7,"div",4),us(8,"div",5),ns(9,hA,2,1,"button",6),ls(),us(10,"div",7),us(11,"button",8),gs("click",(function(){return e.dialogRef.close()})),us(12,"uds-translate"),Ks(13,"Discard & close"),ls(),ls(),us(14,"button",9),gs("click",(function(){return e.save()})),us(15,"uds-translate"),Ks(16,"Save"),ls(),ls(),ls(),ls(),ls()),2&t&&(os("innerHtml",vl(1,5,e.data.title),Sr),Yr(5),os("fields",e.data.guiFields),Yr(4),os("ngIf",null!=e.data.customButton),Yr(2),os("disabled",e.saving),Yr(3),os("disabled",e.saving))},directives:[Ex,Dx,yE,lS,lE,cA,Ax,ld,Nx,jx,rd],pipes:[zx],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}"]}),t}(),pA=function(){function t(t){this.gui=t}return t.prototype.executeCallback=function(t,e,n,i){var r=this;void 0===i&&(i={});var a=new Array;e.gui.fills.parameters.forEach((function(t){a.push(t+"="+encodeURIComponent(n[t].value))})),t.table.rest.callback(e.gui.fills.callbackName,a.join("&")).subscribe((function(e){var a=new Array;e.forEach((function(t){var e=n[t.name];void 0!==e&&(void 0!==e.gui.fills&&a.push(e),e.gui.values.length=0,t.values.forEach((function(t){return e.gui.values.push(t)})),e.value||(e.value=t.values.length>0?t.values[0].id:""))})),a.forEach((function(e){void 0===i[e.name]&&(i[e.name]=!0,r.executeCallback(t,e,n,i))}))}))},t.prototype.modalForm=function(t,e,n,i){void 0===n&&(n=null),e.sort((function(t,e){return t.gui.order>e.gui.order?1:-1}));var r=null!=n;n=r?n:{},e.forEach((function(t){!1!==r&&void 0!==t.gui.rdonly||(t.gui.rdonly=!1),t.gui.type===Yx.TEXT&&t.gui.multiline&&(t.gui.type=Yx.TEXTBOX);var e=n[t.name];void 0!==e&&(e instanceof Array?(t.values=new Array,e.forEach((function(e){return t.values.push(e)}))):t.value=e)}));var a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(fA,{position:{top:"64px"},width:a,data:{title:t,guiFields:e,customButton:i,gui:this.gui},disableClose:!0}).componentInstance.onEvent},t.prototype.typedForm=function(t,e,n,i,r,a,o){var s=this;o=o||{};var u=new bl,l=n?"test":void 0,c={},h={},d=function(e){h.hasOwnProperty(e.name)&&""!==e.value&&void 0!==e.value&&s.executeCallback(t,e,c)};return o.snack||(o.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),t.table.rest.gui(a).subscribe((function(n){o.snack.dismiss(),void 0!==i&&i.forEach((function(t){n.push(t)})),n.forEach((function(t){c[t.name]=t,void 0!==t.gui.fills&&(h[t.name]=t.gui.fills)})),s.modalForm(e,n,r,l).subscribe((function(e){switch(e.data&&(e.data.data_type=a),e.type){case l:if(e.errors.length>0)return void s.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));s.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),t.table.rest.test(a,e.data).subscribe((function(t){"ok"!==t?s.gui.snackbar.open(django.gettext("Test failed:")+" "+t,django.gettext("dismiss")):s.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})}));break;case"changed":case"init":if(null===e.data)for(var i=0,h=n;i"+i.join(", ")+"";this.gui.yesno(e,a,!0).subscribe((function(e){if(e){var i=r.length,a=function(){n.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()};r.forEach((function(e){t.table.rest.delete(e).subscribe((function(t){0==--i&&a()}),(function(t){0==--i&&a()}))}))}}))},t}(),mA=function(){function t(t,e){this.dialog=t,this.snackbar=e,this.forms=new pA(this)}return t.prototype.alert=function(t,e,n,i){void 0===n&&(n=0);var r=i||(window.innerWidth<800?"80%":"40%");return this.dialog.open(Gx,{width:r,data:{title:t,body:e,autoclose:n,type:qx.alert},disableClose:!0}).componentInstance.yesno},t.prototype.yesno=function(t,e,n){void 0===n&&(n=!1);var i=window.innerWidth<800?"80%":"40%";return this.dialog.open(Gx,{width:i,data:{title:t,body:e,type:qx.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},t.prototype.icon=function(t,e){return void 0===e&&(e="24px"),''},t}(),vA=function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="iconType",t.CALLBACK="callback",t.DICTIONARY="dict",t.IMAGE="image",t}({}),gA=function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t}({}),yA={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},_A=function(){function t(t){this.router=t}return t.getGotoButton=function(t,e,n){return{id:t,html:'link'+django.gettext("Go to")+" "+yA[t]+"",type:gA.ACCELERATOR,acceleratorProperties:[e,n]}},t.prototype.gotoProvider=function(t){this.router.navigate(void 0!==t?["providers",t]:["providers"])},t.prototype.gotoService=function(t,e){this.router.navigate(void 0!==e?["providers",t,"detail",e]:["providers",t,"detail"])},t.prototype.gotoServicePool=function(t){this.router.navigate(["pools","service-pools",t])},t.prototype.gotoServicePoolDetail=function(t){this.router.navigate(["pools","service-pools",t,"detail"])},t.prototype.gotoMetapool=function(t){this.router.navigate(["pools","meta-pools",t])},t.prototype.gotoMetapoolDetail=function(t){this.router.navigate(["pools","meta-pools",t,"detail"])},t.prototype.gotoCalendar=function(t){this.router.navigate(["pools","calendars",t])},t.prototype.gotoCalendarDetail=function(t){this.router.navigate(["pools","calendars",t,"detail"])},t.prototype.gotoAccount=function(t){this.router.navigate(["pools","accounts",t])},t.prototype.gotoAccountDetail=function(t){this.router.navigate(["pools","accounts",t,"detail"])},t.prototype.gotoPoolGroup=function(t){this.router.navigate(["pools","pool-groups",t=t||""])},t.prototype.gotoAuthenticator=function(t){this.router.navigate(["authenticators",t])},t.prototype.gotoAuthenticatorDetail=function(t){this.router.navigate(["authenticators",t,"detail"])},t.prototype.gotoUser=function(t,e){this.router.navigate(["authenticators",t,"detail","users",e])},t.prototype.gotoGroup=function(t,e){this.router.navigate(["authenticators",t,"detail","groups",e])},t.prototype.gotoTransport=function(t){this.router.navigate(["transports",t])},t.prototype.gotoOSManager=function(t){this.router.navigate(["osmanagers",t])},t.prototype.goto=function(t,e,n){var i=function(t){var i=e;if(n[t].split(".").forEach((function(t){return i=i[t]})),!i)throw new Error("not going :)");return i};try{switch(t){case"provider":this.gotoProvider(i(0));break;case"service":this.gotoService(i(0),i(1));break;case"pool":this.gotoServicePool(i(0));break;case"authenticator":this.gotoAuthenticator(i(0));break;case"user":this.gotoUser(i(0),i(1));break;case"group":this.gotoGroup(i(0),i(1));break;case"transport":this.gotoTransport(i(0));break;case"osmanager":this.gotoOSManager(i(0));break;case"calendar":this.gotoCalendar(i(0));break;case"poolgroup":this.gotoPoolGroup(i(0))}}catch(r){}},t}(),bA=function(){function t(e){y(this,t),this.total=e}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new kA(t,this.total))}}]),t}(),kA=function(t){f(n,t);var e=g(n);function n(t,i){var r;return y(this,n),(r=e.call(this,t)).total=i,r.count=0,r}return b(n,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),n}(M),wA=new Set,CA=function(){var t=function(){function t(e){y(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):xA}return b(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!wA.has(t))try{dA||((dA=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(dA)),dA.sheet&&(dA.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),wA.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Py))},t.\u0275prov=It({factory:function(){return new t(fe(Py))},token:t,providedIn:"root"}),t}();function xA(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var SA=function(){var t=function(){function t(e,n){y(this,t),this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new U}return b(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return EA(Xg(t)).some((function(t){return e._registerQuery(t).mql.matches}))}},{key:"observe",value:function(t){var e=this,n=mp(EA(Xg(t)).map((function(t){return e._registerQuery(t).observable})));return(n=Zp(n.pipe(Lp(1)),n.pipe((function(t){return t.lift(new bA(1))}),$_(0)))).pipe(G((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new V((function(t){var i=function(n){return e._zone.run((function(){return t.next(n)}))};return n.addListener(i),function(){n.removeListener(i)}})).pipe($p(n),G((function(e){return{query:t,matches:e.matches}})),Cy(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(CA),fe(cc))},t.\u0275prov=It({factory:function(){return new t(fe(CA),fe(cc))},token:t,providedIn:"root"}),t}();function EA(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}function DA(t,e){if(1&t){var n=ps();us(0,"div",1),us(1,"button",2),gs("click",(function(){return xn(n),Cs().action()})),Ks(2),ls(),ls()}if(2&t){var i=Cs();Yr(2),Zs(i.data.action)}}function AA(t,e){}var IA=new re("MatSnackBarData"),OA=function t(){y(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},TA=Math.pow(2,31)-1,RA=function(){function t(e,n){var i=this;y(this,t),this._overlayRef=n,this._afterDismissed=new U,this._afterOpened=new U,this._onAction=new U,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe((function(){return i.dismiss()})),e._onExit.subscribe((function(){return i._finishDismiss()}))}return b(t,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var e=this;this._durationTimeoutId=setTimeout((function(){return e.dismiss()}),Math.min(t,TA))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed.asObservable()}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction.asObservable()}}]),t}(),MA=function(){var t=function(){function t(e,n){y(this,t),this.snackBarRef=e,this.data=n}return b(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(RA),rs(IA))},t.\u0275cmp=Me({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(us(0,"span"),Ks(1),ls(),ns(2,DA,3,1,"div",0)),2&t&&(Yr(1),Zs(e.data.message),Yr(1),os("ngIf",e.hasAction))},directives:[ld,Nx],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t}(),PA={snackBarState:Mb("state",[Vb("void, hidden",Nb({transform:"scale(0.8)",opacity:0})),Vb("visible",Nb({transform:"scale(1)",opacity:1})),jb("* => visible",Pb("150ms cubic-bezier(0, 0, 0.2, 1)")),jb("* => void, * => hidden",Pb("75ms cubic-bezier(0.4, 0.0, 1, 1)",Nb({opacity:0})))])},FA=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a){var o;return y(this,n),(o=e.call(this))._ngZone=t,o._elementRef=i,o._changeDetectorRef=r,o.snackBarConfig=a,o._destroyed=!1,o._onExit=new U,o._onEnter=new U,o._animationState="void",o.attachDomPortal=function(t){return o._assertNotAttached(),o._applySnackBarClasses(),o._portalOutlet.attachDomPortal(t)},o._role="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?null:"status":"alert",o}return b(n,[{key:"attachComponentPortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}},{key:"onAnimationEnd",value:function(t){var e=t.toState;if(("void"===e&&"void"!==t.fromState||"hidden"===e)&&this._completeExit(),"visible"===e){var n=this._onEnter;this._ngZone.run((function(){n.next(),n.complete()}))}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(Lp(1)).subscribe((function(){t._onExit.next(),t._onExit.complete()}))}},{key:"_applySnackBarClasses",value:function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach((function(e){return t.classList.add(e)})):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}]),n}(a_);return t.\u0275fac=function(e){return new(e||t)(rs(cc),rs(_u),rs(So),rs(OA))},t.\u0275cmp=Me({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&Rl(u_,!0),2&t&&Tl(n=Vl())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&ys("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(ts("role",e._role),Js("@state",e._animationState))},features:[eu],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&ns(0,AA,0,0,"ng-template",0)},directives:[u_],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[PA.snackBarState]}}),t}(),LA=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Z_,h_,Wd,Bx,mC],mC]}),t}(),NA=new re("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new OA}}),VA=function(){var t=function(){function t(e,n,i,r,a,o){y(this,t),this._overlay=e,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=a,this._defaultConfig=o,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=MA,this.snackBarContainerComponent=FA,this.handsetCssClass="mat-snack-bar-handset"}return b(t,[{key:"openFromComponent",value:function(t,e){return this._attach(t,e)}},{key:"openFromTemplate",value:function(t,e){return this._attach(t,e)}},{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(t,e){var n=new d_(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[OA,e]])),i=new n_(this.snackBarContainerComponent,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}},{key:"_attach",value:function(t,e){var n=this,i=Object.assign(Object.assign(Object.assign({},new OA),this._defaultConfig),e),r=this._createOverlay(i),a=this._attachSnackBarContainer(r,i),o=new RA(a,r);if(t instanceof Uu){var s=new i_(t,null,{$implicit:i.data,snackBarRef:o});o.instance=a.attachTemplatePortal(s)}else{var u=this._createInjector(i,o),l=new n_(t,void 0,u),c=a.attachComponentPortal(l);o.instance=c.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(Cy(r.detachments())).subscribe((function(t){var e=r.overlayElement.classList;t.matches?e.add(n.handsetCssClass):e.remove(n.handsetCssClass)})),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(t,e){var n=this;t.afterDismissed().subscribe((function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){t.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe((function(){return t._dismissAfter(e.duration)})),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}},{key:"_createOverlay",value:function(t){var e=new x_;e.direction=t.direction;var n=this._overlay.position().global(),i="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,a=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):a?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}},{key:"_createInjector",value:function(t,e){return new d_(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[RA,e],[IA,t.data]]))}},{key:"_openedSnackBarRef",get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(U_),fe(bb),fe(Uo),fe(SA),fe(t,12),fe(NA))},t.\u0275prov=It({factory:function(){return new t(fe(U_),fe(bb),fe(ae),fe(SA),fe(t,12),fe(NA))},token:t,providedIn:LA}),t}(),BA=function(){function t(t,e,n,i,r,a){this.http=t,this.router=e,this.dialog=n,this.snackbar=i,this.sanitizer=r,this.dateAdapter=a,this.user=new Yg(udsData.profile),this.navigation=new _A(this.router),this.gui=new mA(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(t.prototype,"config",{get:function(){return udsData.config},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notices",{get:function(){return udsData.errors},enumerable:!1,configurable:!0}),t.prototype.restPath=function(t){return this.config.urls.rest+t},t.prototype.staticURL=function(t){return this.config.urls.static+t},t.prototype.logout=function(){window.location.href=this.config.urls.logout},t.prototype.gotoUser=function(){window.location.href=this.config.urls.user},t.prototype.putOnStorage=function(t,e){void 0!==typeof Storage&&sessionStorage.setItem(t,e)},t.prototype.getFromStorage=function(t){return void 0!==typeof Storage?sessionStorage.getItem(t):null},t.prototype.safeString=function(t){return this.sanitizer.bypassSecurityTrustHtml(t)},t.prototype.yesno=function(t){return t?django.gettext("yes"):django.gettext("no")},t.\u0275prov=It({token:t,factory:t.\u0275fac=function(e){return new(e||t)(fe(Yf),fe(kg),fe(Cx),fe(VA),fe(bf),fe(xC))},providedIn:"root"}),t}(),jA=function(){function t(t){this.api=t}return t.prototype.canActivate=function(t,e){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)},t.\u0275prov=It({token:t,factory:t.\u0275fac=function(e){return new(e||t)(fe(BA))},providedIn:"root"}),t}(),zA=function(t,e){return(zA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function HA(t,e){function n(){this.constructor=t}zA(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var UA=function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t}({}),WA=function(){function t(t,e,n){this.api=t,void 0===n&&(n={}),void 0===n.base&&(n.base=e);var i=function(t,e){return void 0===t?e:t};this.id=e,this.paths={base:n.base,get:i(n.get,n.base),log:i(n.log,n.base),put:i(n.put,n.base),test:i(n.test,n.base+"/test"),delete:i(n.delete,n.base),types:i(n.types,n.base+"/types"),gui:i(n.gui,n.base+"/gui"),tableInfo:i(n.tableInfo,n.base+"/tableinfo")},this.headers=(new Rf).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return t.prototype.handleError=function(t,e){var n;return void 0===e&&(e=!1),n=t.error instanceof ErrorEvent?t.error.message:e?django.gettext("Error saving: ")+t.error:"Error "+t.status+": "+t.error,this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),Ey(n)},t.prototype.getPath=function(t,e){return this.api.restPath(t+(void 0!==e?"/"+e:""))},t.prototype.doGet=function(t){var e=this;return this.api.http.get(t,{headers:this.headers}).pipe(Mp((function(t){return e.handleError(t)})))},t.prototype.get=function(t){return this.doGet(this.getPath(this.paths.get,t))},t.prototype.getLogs=function(t){return this.doGet(this.getPath(this.paths.log,t)+"/log")},t.prototype.overview=function(t){return this.get("overview"+(void 0!==t?"?filter="+t:""))},t.prototype.summary=function(t){return this.get("overview?summarize"+(void 0!==t?"&filter="+t:""))},t.prototype.put=function(t,e){var n=this;return this.api.http.put(this.getPath(this.paths.put,e),t,{headers:this.headers}).pipe(Mp((function(t){return n.handleError(t,!0)})))},t.prototype.create=function(t){return this.put(t)},t.prototype.save=function(t,e){return this.put(t,e=void 0!==e?e:t.id)},t.prototype.test=function(t,e){var n=this;return this.api.http.post(this.getPath(this.paths.test,t),e,{headers:this.headers}).pipe(Mp((function(t){return n.handleError(t)})))},t.prototype.delete=function(t){var e=this;return this.api.http.delete(this.getPath(this.paths.delete,t),{headers:this.headers}).pipe(Mp((function(t){return e.handleError(t)})))},t.prototype.permision=function(){return this.api.user.isAdmin?UA.ALL:UA.NONE},t.prototype.getPermissions=function(t){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+t))},t.prototype.addPermission=function(t,e,n,i){var r=this,a=this.getPath("permissions/"+this.paths.base+"/"+t+"/"+e+"/add/"+n);return this.api.http.put(a,{perm:i},{headers:this.headers}).pipe(Mp((function(t){return r.handleError(t)})))},t.prototype.revokePermission=function(t){var e=this,n=this.getPath("permissions/revoke");return this.api.http.put(n,{items:t},{headers:this.headers}).pipe(Mp((function(t){return e.handleError(t)})))},t.prototype.types=function(){return this.doGet(this.getPath(this.paths.types))},t.prototype.gui=function(t){var e=this.getPath(this.paths.gui+(void 0!==t?"/"+t:""));return this.doGet(e)},t.prototype.callback=function(t,e){var n=this.getPath("gui/callback/"+t+"?"+e);return this.doGet(n)},t.prototype.tableInfo=function(){return this.doGet(this.getPath(this.paths.tableInfo))},t.prototype.detail=function(t,e){return new qA(this,t,e)},t.prototype.invoke=function(t,e){var n=t;return e&&(n=n+"?"+e),this.get(n)},t}(),qA=function(t){function e(e,n,i,r){var a=t.call(this,e.api,[e.paths.base,n,i].join("/"))||this;return a.parentModel=e,a.parentId=n,a.model=i,a.perm=r,a}return HA(e,t),e.prototype.permision=function(){return this.perm||UA.ALL},e}(WA),GA=function(t){function e(e){var n=t.call(this,e,"providers")||this;return n.api=e,n}return HA(e,t),e.prototype.allServices=function(){return this.get("allservices")},e.prototype.service=function(t){return this.get("service/"+t)},e.prototype.maintenance=function(t){return this.get(t+"/maintenance")},e}(WA),YA=function(t){function e(e){var n=t.call(this,e,"authenticators")||this;return n.api=e,n}return HA(e,t),e.prototype.search=function(t,e,n,i){return void 0===i&&(i=12),this.get(t+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+i)},e}(WA),KA=function(t){function e(e){var n=t.call(this,e,"osmanagers")||this;return n.api=e,n}return HA(e,t),e}(WA),ZA=function(t){function e(e){var n=t.call(this,e,"transports")||this;return n.api=e,n}return HA(e,t),e}(WA),$A=function(t){function e(e){var n=t.call(this,e,"networks")||this;return n.api=e,n}return HA(e,t),e}(WA),XA=function(t){function e(e){var n=t.call(this,e,"servicespools")||this;return n.api=e,n}return HA(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e.prototype.actionsList=function(t){return this.get(t+"/actionsList")},e.prototype.listAssignables=function(t){return this.get(t+"/listAssignables")},e.prototype.createFromAssignable=function(t,e,n){return this.get(t+"/createFromAssignable?user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n))},e}(WA),QA=function(t){function e(e){var n=t.call(this,e,"metapools")||this;return n.api=e,n}return HA(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e}(WA),JA=function(t){function e(e){var n=t.call(this,e,"config")||this;return n.api=e,n}return HA(e,t),e}(WA),tI=function(t){function e(e){var n=t.call(this,e,"gallery/images")||this;return n.api=e,n}return HA(e,t),e}(WA),eI=function(t){function e(e){var n=t.call(this,e,"gallery/servicespoolgroups")||this;return n.api=e,n}return HA(e,t),e}(WA),nI=function(t){function e(e){var n=t.call(this,e,"system")||this;return n.api=e,n}return HA(e,t),e.prototype.information=function(){return this.get("overview")},e.prototype.stats=function(t){return this.get("stats/"+t)},e.prototype.flushCache=function(){return this.doGet(this.getPath("cache","flush"))},e}(WA),iI=function(t){function e(e){var n=t.call(this,e,"reports")||this;return n.api=e,n}return HA(e,t),e.prototype.types=function(){return Sf([])},e}(WA),rI=function(t){function e(e){var n=t.call(this,e,"calendars")||this;return n.api=e,n}return HA(e,t),e}(WA),aI=function(t){function e(e){var n=t.call(this,e,"accounts")||this;return n.api=e,n}return HA(e,t),e.prototype.timemark=function(t){return this.get(t+"/timemark")},e}(WA),oI=function(t){function e(e){var n=t.call(this,e,"proxies")||this;return n.api=e,n}return HA(e,t),e}(WA),sI=function(t){function e(e){var n=t.call(this,e,"actortokens")||this;return n.api=e,n}return HA(e,t),e}(WA),uI=function(){function t(t){this.api=t,this.providers=new GA(t),this.authenticators=new YA(t),this.osManagers=new KA(t),this.transports=new ZA(t),this.networks=new $A(t),this.servicesPools=new XA(t),this.metaPools=new QA(t),this.gallery=new tI(t),this.servicesPoolGroups=new eI(t),this.calendars=new rI(t),this.accounts=new aI(t),this.proxy=new oI(t),this.system=new nI(t),this.configuration=new JA(t),this.actorToken=new sI(t),this.reports=new iI(t)}return t.\u0275prov=It({token:t,factory:t.\u0275fac=function(e){return new(e||t)(fe(BA))},providedIn:"root"}),t}();function lI(t,e){if(1&t&&(us(0,"div",17),us(1,"div",11),cs(2,"img",3),us(3,"div",12),Ks(4),ls(),ls(),us(5,"div",13),us(6,"a",15),us(7,"uds-translate"),Ks(8,"View service pools"),ls(),ls(),ls(),ls()),2&t){var n=Cs(2);Yr(2),os("src",n.api.staticURL("admin/img/icons/logs.png"),Er),Yr(2),$s(" ",n.data.restrained," ")}}function cI(t,e){if(1&t&&(us(0,"div"),us(1,"div",8),us(2,"div",9),us(3,"div",10),us(4,"div",11),cs(5,"img",3),us(6,"div",12),Ks(7),ls(),ls(),us(8,"div",13),us(9,"a",14),us(10,"uds-translate"),Ks(11,"View authenticators"),ls(),ls(),ls(),ls(),us(12,"div",10),us(13,"div",11),cs(14,"img",3),us(15,"div",12),Ks(16),ls(),ls(),us(17,"div",13),us(18,"a",15),us(19,"uds-translate"),Ks(20,"View service pools"),ls(),ls(),ls(),ls(),us(21,"div",10),us(22,"div",11),cs(23,"img",3),us(24,"div",12),Ks(25),ls(),ls(),us(26,"div",13),us(27,"a",15),us(28,"uds-translate"),Ks(29,"View service pools"),ls(),ls(),ls(),ls(),ns(30,lI,9,2,"div",16),ls(),ls(),ls()),2&t){var n=Cs();Yr(5),os("src",n.api.staticURL("admin/img/icons/authenticators.png"),Er),Yr(2),$s(" ",n.data.users," "),Yr(7),os("src",n.api.staticURL("admin/img/icons/pools.png"),Er),Yr(2),$s(" ",n.data.pools," "),Yr(7),os("src",n.api.staticURL("admin/img/icons/services.png"),Er),Yr(2),$s(" ",n.data.user_services," "),Yr(5),os("ngIf",n.data.restrained)}}function hI(t,e){1&t&&(us(0,"div",18),us(1,"div",19),us(2,"div",20),us(3,"uds-translate"),Ks(4,"UDS Administration"),ls(),ls(),us(5,"div",21),us(6,"p"),us(7,"uds-translate"),Ks(8,"You are accessing UDS Administration as staff member."),ls(),ls(),us(9,"p"),us(10,"uds-translate"),Ks(11,"This means that you have restricted access to elements."),ls(),ls(),us(12,"p"),us(13,"uds-translate"),Ks(14,"In order to increase your access privileges, please contact your local UDS administrator. "),ls(),ls(),cs(15,"br"),us(16,"p"),us(17,"uds-translate"),Ks(18,"Thank you."),ls(),ls(),ls(),ls(),ls())}var dI=function(){function t(t,e){this.api=t,this.rest=e,this.data={}}return t.prototype.ngOnInit=function(){var t=this;this.api.user.isAdmin&&this.rest.system.information().subscribe((function(e){t.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",e.users).replace("#GRP_NUMBER#",e.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",e.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",e.user_services)},e.restrained_services_pools>0&&(t.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",e.restrained_services_pools))}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-summary"]],decls:11,vars:3,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-subtitle"],[1,"card-content"],[4,"ngIf","ngIfElse"],["noAdmin",""],[1,"admin"],[1,"information"],[1,"info-panel"],[1,"info-panel-data"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/authenticators"],["mat-button","","routerLink","/pools/service-pools"],["class","info-panel info-danger",4,"ngIf"],[1,"info-panel","info-danger"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(t,e){if(1&t&&(us(0,"div",0),us(1,"div",1),us(2,"div",2),cs(3,"img",3),us(4,"uds-translate"),Ks(5,"Dashboard"),ls(),ls(),cs(6,"div",4),ls(),us(7,"div",5),ns(8,cI,31,7,"div",6),ns(9,hI,19,0,"ng-template",null,7,Hl),ls(),ls()),2&t){var n=is(10);Yr(3),os("src",e.api.staticURL("admin/img/icons/dashboard-monitor.png"),Er),Yr(5),os("ngIf",e.api.user.isAdmin)("ngIfElse",n)}},directives:[jx,ld,Vx,xg],styles:[".card[_ngcontent-%COMP%]{height:80%}.staff-container[_ngcontent-%COMP%]{margin-top:2rem;display:flex;justify-content:center}.staff[_ngcontent-%COMP%]{border:#337ab7;border-width:1px;border-style:solid}.staff-header[_ngcontent-%COMP%]{display:flex;justify-content:center;background-color:#337ab7;color:#fff;font-weight:700}.staff-content[_ngcontent-%COMP%], .staff-header[_ngcontent-%COMP%]{padding:.5rem 1rem}.admin[_ngcontent-%COMP%]{display:flex;flex-direction:column}.information[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.info-panel[_ngcontent-%COMP%]{border-color:#333;background-image:linear-gradient(135deg,#fdfcfb,#e2d1c3);box-shadow:0 1px 4px 0 rgba(0,0,0,.14);box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%}.info-danger[_ngcontent-%COMP%]{background-image:linear-gradient(90deg,#f83600 0,#f9d423);color:#fff;font-weight:700;font-size:1.5em}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1rem}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1rem;width:5rem}.info-text[_ngcontent-%COMP%]{width:100%;text-align:center}.info-panel-link[_ngcontent-%COMP%]{background:#4682b4}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:#fff}"]}),t}(),fI=["underline"],pI=["connectionContainer"],mI=["inputContainer"],vI=["label"];function gI(t,e){1&t&&(hs(0),us(1,"div",14),cs(2,"div",15),cs(3,"div",16),cs(4,"div",17),ls(),us(5,"div",18),cs(6,"div",15),cs(7,"div",16),cs(8,"div",17),ls(),ds())}function yI(t,e){1&t&&(us(0,"div",19),Es(1,1),ls())}function _I(t,e){if(1&t&&(hs(0),Es(1,2),us(2,"span"),Ks(3),ls(),ds()),2&t){var n=Cs(2);Yr(3),Zs(n._control.placeholder)}}function bI(t,e){1&t&&Es(0,3,["*ngSwitchCase","true"])}function kI(t,e){1&t&&(us(0,"span",23),Ks(1," *"),ls())}function wI(t,e){if(1&t){var n=ps();us(0,"label",20,21),gs("cdkObserveContent",(function(){return xn(n),Cs().updateOutlineGap()})),ns(2,_I,4,1,"ng-container",12),ns(3,bI,1,0,"ng-content",12),ns(4,kI,2,0,"span",22),ls()}if(2&t){var i=Cs();Ns("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),os("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),ts("for",i._control.id)("aria-owns",i._control.id),Yr(2),os("ngSwitchCase",!1),Yr(1),os("ngSwitchCase",!0),Yr(1),os("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function CI(t,e){1&t&&(us(0,"div",24),Es(1,4),ls())}function xI(t,e){if(1&t&&(us(0,"div",25,26),cs(2,"span",27),ls()),2&t){var n=Cs();Yr(2),Ns("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function SI(t,e){1&t&&(us(0,"div"),Es(1,5),ls()),2&t&&os("@transitionMessages",Cs()._subscriptAnimationState)}function EI(t,e){if(1&t&&(us(0,"div",31),Ks(1),ls()),2&t){var n=Cs(2);os("id",n._hintLabelId),Yr(1),Zs(n.hintLabel)}}function DI(t,e){if(1&t&&(us(0,"div",28),ns(1,EI,2,2,"div",29),Es(2,6),cs(3,"div",30),Es(4,7),ls()),2&t){var n=Cs();os("@transitionMessages",n._subscriptAnimationState),Yr(1),os("ngIf",n.hintLabel)}}var AI=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],II=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],OI=0,TI=new re("MatError"),RI=function(){var t=function t(){y(this,t),this.id="mat-error-".concat(OI++)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&ts("id",e.id)},inputs:{id:"id"},features:[pu([{provide:TI,useExisting:t}])]}),t}(),MI={transitionMessages:Mb("transitionMessages",[Vb("enter",Nb({opacity:1,transform:"translateY(0%)"})),jb("void => enter",[Nb({opacity:0,transform:"translateY(-100%)"}),Pb("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},PI=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t}),t}();function FI(t){return Error("A hint was already declared for 'align=\"".concat(t,"\"'."))}var LI=0,NI=new re("MatHint"),VI=function(){var t=function t(){y(this,t),this.align="start",this.id="mat-hint-".concat(LI++)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(ts("id",e.id)("align",null),Ns("mat-right","end"==e.align))},inputs:{align:"align",id:"id"},features:[pu([{provide:NI,useExisting:t}])]}),t}(),BI=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-label"]]}),t}(),jI=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-placeholder"]]}),t}(),zI=new re("MatPrefix"),HI=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","matPrefix",""]],features:[pu([{provide:zI,useExisting:t}])]}),t}(),UI=new re("MatSuffix"),WI=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","matSuffix",""]],features:[pu([{provide:UI,useExisting:t}])]}),t}(),qI=0,GI=gC((function t(e){y(this,t),this._elementRef=e}),"primary"),YI=new re("MAT_FORM_FIELD_DEFAULT_OPTIONS"),KI=new re("MatFormField"),ZI=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u,l){var c;return y(this,n),(c=e.call(this,t))._elementRef=t,c._changeDetectorRef=i,c._dir=a,c._defaults=o,c._platform=s,c._ngZone=u,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new U,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-".concat(qI++),c._labelId="mat-form-field-label-".concat(qI++),c._labelOptions=r||{},c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==l,c.appearance=o&&o.appearance?o.appearance:"legacy",c._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,c}return b(n,[{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe($p(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Cy(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Cy(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),ht(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe($p(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe($p(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(Cy(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t.updateOutlineGap()}))})):t.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(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{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 t=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,ty(this._label.nativeElement,"transitionend").pipe(Lp(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach((function(i){if("start"===i.align){if(t||n.hintLabel)throw FI("start");t=i}else if("end"===i.align){if(e)throw FI("end");e=i}}))}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,n=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map((function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),a=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=i.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(o),u=t.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var d=0;d void",Hb("@transformPanel",[zb()],{optional:!0}))]),transformPanel:Mb("transformPanel",[Vb("void",Nb({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Vb("showing",Nb({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Vb("showing-multiple",Nb({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),jb("void => *",Pb("120ms cubic-bezier(0, 0, 0.2, 1)")),jb("* => void",Pb("100ms 25ms linear",Nb({opacity:0})))])},sO=0,uO=new re("mat-select-scroll-strategy"),lO=new re("MAT_SELECT_CONFIG"),cO={provide:uO,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},hO=function t(e,n){y(this,t),this.source=e,this.value=n},dO=yC(_C(vC(bC((function t(e,n,i,r,a){y(this,t),this._elementRef=e,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=a}))))),fO=new re("MatSelectTrigger"),pO=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-select-trigger"]],features:[pu([{provide:fO,useExisting:t}])]}),t}(),mO=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o,s,u,c,h,d,f,p,m,v,g){var _;return y(this,n),(_=e.call(this,s,o,c,h,f))._viewportRuler=t,_._changeDetectorRef=i,_._ngZone=r,_._dir=u,_._parentFormField=d,_.ngControl=f,_._liveAnnouncer=v,_._panelOpen=!1,_._required=!1,_._scrollTop=0,_._multiple=!1,_._compareWith=function(t,e){return t===e},_._uid="mat-select-".concat(sO++),_._destroy=new U,_._triggerFontSize=0,_._onChange=function(){},_._onTouched=function(){},_._optionIds="",_._transformOrigin="top",_._panelDoneAnimatingStream=new U,_._offsetY=0,_._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],_._disableOptionCentering=!1,_._focused=!1,_.controlType="mat-select",_.ariaLabel="",_.optionSelectionChanges=bp((function(){var t=_.options;return t?t.changes.pipe($p(t),Gp((function(){return ht.apply(void 0,l(t.map((function(t){return t.onSelectionChange}))))}))):_._ngZone.onStable.asObservable().pipe(Lp(1),Gp((function(){return _.optionSelectionChanges})))})),_.openedChange=new bl,_._openedStream=_.openedChange.pipe(Df((function(t){return t})),G((function(){}))),_._closedStream=_.openedChange.pipe(Df((function(t){return!t})),G((function(){}))),_.selectionChange=new bl,_.valueChange=new bl,_.ngControl&&(_.ngControl.valueAccessor=a(_)),_._scrollStrategyFactory=m,_._scrollStrategy=_._scrollStrategyFactory(),_.tabIndex=parseInt(p)||0,_.id=_.id,g&&(null!=g.disableOptionCentering&&(_.disableOptionCentering=g.disableOptionCentering),null!=g.typeaheadDebounceInterval&&(_.typeaheadDebounceInterval=g.typeaheadDebounceInterval)),_}return b(n,[{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new Yy(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(dy(),Cy(this._destroy)).subscribe((function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(Cy(this._destroy)).subscribe((function(){t._panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(Cy(this._destroy)).subscribe((function(t){t.added.forEach((function(t){return t.select()})),t.removed.forEach((function(t){return t.deselect()}))})),this.options.changes.pipe($p(null),Cy(this._destroy)).subscribe((function(){t._resetOptions(),t._initializeSelection()}))}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.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(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Lp(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))})))}},{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(t){this.value=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,n=40===e||38===e||37===e||39===e,i=13===e||32===e,r=this._keyManager;if(!r.isTyping()&&i&&!m_(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var a=this.selected;36===e||35===e?(36===e?r.setFirstItemActive():r.setLastItemActive(),t.preventDefault()):r.onKeydown(t);var o=this.selected;o&&a!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,n=t.keyCode,i=40===n||38===n,r=e.isTyping();if(36===n||35===n)t.preventDefault(),36===n?e.setFirstItemActive():e.setLastItemActive();else if(i&&t.altKey)t.preventDefault(),this.close();else if(r||13!==n&&32!==n||!e.activeItem||m_(t))if(!r&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();var a=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(a?t.select():t.deselect())}))}else{var o=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==o&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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 t=this;this.overlayDir.positionChange.pipe(Lp(1)).subscribe((function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then((function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()}))}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach((function(t){return e._selectValue(t)})),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,n=this.options.find((function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return tr()&&console.warn(i),!1}}));return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new cb(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Cy(this._destroy)).subscribe((function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())})),this._keyManager.change.pipe(Cy(this._destroy)).subscribe((function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var t=this,e=ht(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Cy(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),ht.apply(void 0,l(this.options.map((function(t){return t._stateChanges})))).pipe(Cy(e)).subscribe((function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})),this._setOptionIds()}},{key:"_onSelect",value:function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort((function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)})),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new hO(this,e)),this._changeDetectorRef.markForCheck()}},{key:"_setOptionIds",value:function(){this._optionIds=this.options.map((function(t){return t.id})).join(" ")}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var t=this._keyManager.activeItemIndex||0,e=sx(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=ux(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getOptionIndex",value:function(t){return this.options.reduce((function(e,n,i){return void 0!==e?e:t===n?i:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=sx(r,this.options,this.optionGroups);var a=n/2;this._scrollTop=this._calculateOverlayScroll(r,a,i),this._offsetY=this._calculateOverlayOffsetY(r,a,i),this._checkOverlayWithinViewport(i)}},{key:"_calculateOverlayScroll",value:function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}},{key:"_getAriaLabel",value:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}},{key:"_getAriaLabelledby",value:function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else{var a=this._selectionModel.selected[0]||this.options.first;t=a&&a.group?32:16}i||(t*=-1);var o=0-(e.left+t-(i?r:0)),s=e.right+t-n.width+(i?0:r);o>0?t+=o+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,n){var i,r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,o=Math.floor(256/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*i-a))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-a-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):a>i?this._adjustPanelDown(a,i,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,n){var i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2,n=Math.abs(this._offsetY)-e+t/2;return"50% ".concat(n,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=Kg(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Kg(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=Kg(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){t!==this._value&&(this.options&&this._setSelectionByValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=Zg(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map((function(t){return t.viewValue}));return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),n}(dO);return t.\u0275fac=function(e){return new(e||t)(rs(Xy),rs(So),rs(cc),rs(FC),rs(_u),rs(Hy,8),rs(lE,8),rs(CE,8),rs(KI,8),rs(oS,10),as("tabindex"),rs(uO),rs(bb),rs(lO,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(Fl(n,fO,!0),Fl(n,ox,!0),Fl(n,JC,!0)),2&t&&(Tl(i=Vl())&&(e.customTrigger=i.first),Tl(i=Vl())&&(e.options=i),Tl(i=Vl())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(Ml(XI,!0),Ml(QI,!0),Ml(Y_,!0)),2&t&&(Tl(n=Vl())&&(e.trigger=n.first),Tl(n=Vl())&&(e.panel=n.first),Tl(n=Vl())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&gs("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(ts("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),Ns("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[pu([{provide:PI,useExisting:t},{provide:rx,useExisting:t}]),eu,Qe],ngContentSelectors:aO,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",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,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(Ss(rO),us(0,"div",0,1),gs("click",(function(){return e.toggle()})),us(3,"div",2),ns(4,JI,2,1,"span",3),ns(5,nO,3,2,"span",4),ls(),us(6,"div",5),cs(7,"div",6),ls(),ls(),ns(8,iO,4,11,"ng-template",7),gs("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){var n=is(1);Yr(3),os("ngSwitch",e.empty),Yr(1),os("ngSwitchCase",!0),Yr(1),os("ngSwitchCase",!1),Yr(3),os("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[G_,fd,pd,Y_,md,rd],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;-ms-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}.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}\n"],encapsulation:2,data:{animation:[oO.transformPanelWrap,oO.transformPanel]},changeDetection:0}),t}(),vO=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[cO],imports:[[Wd,Z_,lx,mC],Qy,$I,lx,mC]}),t}(),gO={tooltipState:Mb("state",[Vb("initial, void, hidden",Nb({opacity:0,transform:"scale(0)"})),Vb("visible",Nb({transform:"scale(1)"})),jb("* => visible",Pb("200ms cubic-bezier(0, 0, 0.2, 1)",Bb([Nb({opacity:0,transform:"scale(0)",offset:0}),Nb({opacity:.5,transform:"scale(0.99)",offset:.5}),Nb({opacity:1,transform:"scale(1)",offset:1})]))),jb("* => hidden",Pb("100ms cubic-bezier(0, 0, 0.2, 1)",Nb({opacity:0})))])},yO=Vy({passive:!0});function _O(t){return Error('Tooltip position "'.concat(t,'" is invalid.'))}var bO=new re("mat-tooltip-scroll-strategy"),kO={provide:bO,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},wO=new re("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),CO=function(){var t=function(){function t(e,n,i,r,a,o,s,u,l,c,h){var d=this;y(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=a,this._platform=o,this._ariaDescriber=s,this._focusMonitor=u,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new U,this._handleKeydown=function(t){d._isTooltipVisible()&&27===t.keyCode&&!m_(t)&&(t.preventDefault(),t.stopPropagation(),d._ngZone.run((function(){return d.hide(0)})))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),a.runOutsideAngular((function(){n.nativeElement.addEventListener("keydown",d._handleKeydown)}))}return b(t,[{key:"ngAfterViewInit",value:function(){var t=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Cy(this._destroyed)).subscribe((function(e){e?"keyboard"===e&&t._ngZone.run((function(){return t.show()})):t._ngZone.run((function(){return t.hide(0)}))}))}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(e){var n=u(e,2);t.removeEventListener(n[0],n[1],yO)})),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=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 n=this._createOverlay();this._detach(),this._portal=this._portal||new n_(xO,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Cy(this._destroyed)).subscribe((function(){return t._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{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 t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return n.positionChanges.pipe(Cy(this._destroyed)).subscribe((function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run((function(){return t.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Cy(this._destroyed)).subscribe((function(){return t._detach()})),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n||"below"==n)t={originX:"center",originY:"above"==n?"top":"bottom"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={originX:"start",originY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw _O(n);t={originX:"end",originY:"center"}}var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n)t={overlayX:"center",overlayY:"bottom"};else if("below"==n)t={overlayX:"center",overlayY:"top"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw _O(n);t={overlayX:"start",overlayY:"center"}}var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Lp(1),Cy(this._destroyed)).subscribe((function(){t._tooltipInstance&&t._overlayRef.updatePosition()})))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var t=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){t._setupPointerExitEventsIfNeeded(),t.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){t._setupPointerExitEventsIfNeeded(),clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout((function(){return t.show()}),500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var t,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return e.hide()}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(t=this._passiveListeners).push.apply(t,n)}}},{key:"_addListeners",value:function(t){var e=this;t.forEach((function(t){var n=u(t,2);e._elementRef.nativeElement.addEventListener(n[0],n[1],yO)}))}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this.touchGestures;if("off"!==t){var e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}},{key:"position",get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Kg(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?"".concat(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(U_),rs(_u),rs(Zy),rs(qu),rs(cc),rs(Py),rs(ub),rs(Sb),rs(bO),rs(Hy,8),rs(wO,8))},t.\u0275dir=Be({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t}(),xO=function(){var t=function(){function t(e,n){y(this,t),this._changeDetectorRef=e,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new U,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return b(t,[{key:"show",value:function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()}),t)}},{key:"hide",value:function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()}),t)}},{key:"afterHidden",value:function(){return this._onHide.asObservable()}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(So),rs(SA))},t.\u0275cmp=Me({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&gs("click",(function(){return e._handleBodyInteraction()}),!1,yi),2&t&&Ls("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(us(0,"div",0),gs("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),ml(1,"async"),Ks(2),ls()),2&t&&(Ns("mat-tooltip-handset",null==(n=vl(1,5,e._isHandset))?null:n.matches),os("ngClass",e.tooltipClass)("@state",e._visibility),Yr(2),Zs(e.message))},directives:[rd],pipes:[xd],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:[gO.tooltipState]},changeDetection:0}),t}(),SO=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[kO],imports:[[Ib,Wd,Z_,mC],mC,Qy]}),t}();function EO(t,e){if(1&t&&(us(0,"mat-option",19),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n),Yr(1),$s(" ",n," ")}}function DO(t,e){if(1&t){var n=ps();us(0,"mat-form-field",16),us(1,"mat-select",17),gs("selectionChange",(function(t){return xn(n),Cs(2)._changePageSize(t.value)})),ns(2,EO,2,2,"mat-option",18),ls(),ls()}if(2&t){var i=Cs(2);os("color",i.color),Yr(1),os("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),Yr(1),os("ngForOf",i._displayedPageSizeOptions)}}function AO(t,e){if(1&t&&(us(0,"div",20),Ks(1),ls()),2&t){var n=Cs(2);Yr(1),Zs(n.pageSize)}}function IO(t,e){if(1&t&&(us(0,"div",12),us(1,"div",13),Ks(2),ls(),ns(3,DO,3,5,"mat-form-field",14),ns(4,AO,2,1,"div",15),ls()),2&t){var n=Cs();Yr(2),$s(" ",n._intl.itemsPerPageLabel," "),Yr(1),os("ngIf",n._displayedPageSizeOptions.length>1),Yr(1),os("ngIf",n._displayedPageSizeOptions.length<=1)}}function OO(t,e){if(1&t){var n=ps();us(0,"button",21),gs("click",(function(){return xn(n),Cs().firstPage()})),Xn(),us(1,"svg",7),cs(2,"path",22),ls(),ls()}if(2&t){var i=Cs();os("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),ts("aria-label",i._intl.firstPageLabel)}}function TO(t,e){if(1&t){var n=ps();Xn(),Qn(),us(0,"button",23),gs("click",(function(){return xn(n),Cs().lastPage()})),Xn(),us(1,"svg",7),cs(2,"path",24),ls(),ls()}if(2&t){var i=Cs();os("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),ts("aria-label",i._intl.lastPageLabel)}}var RO=function(){var t=function t(){y(this,t),this.changes=new U,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,n){if(0==n||0==e)return"0 of ".concat(n);var i=t*e,r=i<(n=Math.max(n,0))?Math.min(i+e,n):i+e;return"".concat(i+1," \u2013 ").concat(r," of ").concat(n)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return new t},token:t,providedIn:"root"}),t}(),MO={provide:RO,deps:[[new Ct,new St,RO]],useFactory:function(t){return t||new RO}},PO=new re("MAT_PAGINATOR_DEFAULT_OPTIONS"),FO=vC(kC((function t(){y(this,t)}))),LO=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;if(y(this,n),(a=e.call(this))._intl=t,a._changeDetectorRef=i,a._pageIndex=0,a._length=0,a._pageSizeOptions=[],a._hidePageSize=!1,a._showFirstLastButtons=!1,a.page=new bl,a._intlChanges=t.changes.subscribe((function(){return a._changeDetectorRef.markForCheck()})),r){var o=r.pageSize,s=r.pageSizeOptions,u=r.hidePageSize,l=r.showFirstLastButtons;null!=o&&(a._pageSize=o),null!=s&&(a._pageSizeOptions=s),null!=u&&(a._hidePageSize=u),null!=l&&(a._showFirstLastButtons=l)}return a}return b(n,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex=i.length&&(r=0),i[r]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(t){if(tr()&&t&&"asc"!==t&&"desc"!==t)throw function(t){return Error("".concat(t," is not a valid sort direction ('asc' or 'desc')."))}(t);this._direction=t}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=Kg(t)}}]),n}(zO);return t.\u0275fac=function(e){return UO(e||t)},t.\u0275dir=Be({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[eu,Qe]}),t}(),UO=Vi(HO),WO=dC.ENTERING+" "+hC.STANDARD_CURVE,qO={indicator:Mb("indicator",[Vb("active-asc, asc",Nb({transform:"translateY(0px)"})),Vb("active-desc, desc",Nb({transform:"translateY(10px)"})),jb("active-asc <=> active-desc",Pb(WO))]),leftPointer:Mb("leftPointer",[Vb("active-asc, asc",Nb({transform:"rotate(-45deg)"})),Vb("active-desc, desc",Nb({transform:"rotate(45deg)"})),jb("active-asc <=> active-desc",Pb(WO))]),rightPointer:Mb("rightPointer",[Vb("active-asc, asc",Nb({transform:"rotate(45deg)"})),Vb("active-desc, desc",Nb({transform:"rotate(-45deg)"})),jb("active-asc <=> active-desc",Pb(WO))]),arrowOpacity:Mb("arrowOpacity",[Vb("desc-to-active, asc-to-active, active",Nb({opacity:1})),Vb("desc-to-hint, asc-to-hint, hint",Nb({opacity:.54})),Vb("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Nb({opacity:0})),jb("* => asc, * => desc, * => active, * => hint, * => void",Pb("0ms")),jb("* <=> *",Pb(WO))]),arrowPosition:Mb("arrowPosition",[jb("* => desc-to-hint, * => desc-to-active",Pb(WO,Bb([Nb({transform:"translateY(-25%)"}),Nb({transform:"translateY(0)"})]))),jb("* => hint-to-desc, * => active-to-desc",Pb(WO,Bb([Nb({transform:"translateY(0)"}),Nb({transform:"translateY(25%)"})]))),jb("* => asc-to-hint, * => asc-to-active",Pb(WO,Bb([Nb({transform:"translateY(25%)"}),Nb({transform:"translateY(0)"})]))),jb("* => hint-to-asc, * => active-to-asc",Pb(WO,Bb([Nb({transform:"translateY(0)"}),Nb({transform:"translateY(-25%)"})]))),Vb("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Nb({transform:"translateY(0)"})),Vb("hint-to-desc, active-to-desc, desc",Nb({transform:"translateY(-25%)"})),Vb("hint-to-asc, active-to-asc, asc",Nb({transform:"translateY(25%)"}))]),allowChildren:Mb("allowChildren",[jb("* <=> *",[Hb("@*",zb(),{optional:!0})])])},GO=function(){var t=function t(){y(this,t),this.changes=new U,this.sortButtonLabel=function(t){return"Change sorting for ".concat(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return new t},token:t,providedIn:"root"}),t}(),YO={provide:GO,deps:[[new Ct,new St,GO]],useFactory:function(t){return t||new GO}},KO=vC((function t(){y(this,t)})),ZO=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s){var u;if(y(this,n),(u=e.call(this))._intl=t,u._sort=r,u._columnDef=a,u._focusMonitor=o,u._elementRef=s,u._showIndicatorHint=!1,u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",!r)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return u._rerenderSubscription=ht(r.sortChange,r._stateChanges,t.changes).subscribe((function(){u._isSorted()&&u._updateArrowDirection(),!u._isSorted()&&u._viewState&&"active"===u._viewState.toState&&(u._disableViewStateAnimation=!1,u._setAnimationTransitionState({fromState:"active",toState:u._arrowDirection})),i.markForCheck()})),u}return b(n,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){return t._setIndicatorHintVisible(!!e)}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}},{key:"_handleClick",value:function(){this._isDisabled()||this._toggleOnInteraction()}},{key:"_handleKeydown",value:function(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var t=this._viewState.fromState;return(t?"".concat(t,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=Kg(t)}}]),n}(KO);return t.\u0275fac=function(e){return new(e||t)(rs(GO),rs(So),rs(HO,8),rs("MAT_SORT_HEADER_COLUMN_DEF",8),rs(Sb),rs(_u))},t.\u0275cmp=Me({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&gs("click",(function(){return e._handleClick()}))("keydown",(function(t){return e._handleKeydown(t)}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(ts("aria-sort",e._getAriaSortAttribute()),Ns("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[eu],attrs:VO,ngContentSelectors:jO,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(Ss(),us(0,"div",0),us(1,"div",1),Es(2),ls(),ns(3,BO,6,6,"div",2),ls()),2&t&&(Ns("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),ts("tabindex",e._isDisabled()?null:0),Yr(3),os("ngIf",e._renderArrow()))},directives:[ld],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[qO.indicator,qO.leftPointer,qO.rightPointer,qO.arrowOpacity,qO.arrowPosition,qO.allowChildren]},changeDetection:0}),t}(),$O=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[YO],imports:[[Wd]]}),t}(),XO=[[["caption"]],[["colgroup"],["col"]]],QO=["caption","colgroup, col"];function JO(t,e){if(1&t&&(us(0,"th",3),Ks(1),ls()),2&t){var n=Cs();Ls("text-align",n.justify),Yr(1),$s(" ",n.headerText," ")}}function tT(t,e){if(1&t&&(us(0,"td",4),Ks(1),ls()),2&t){var n=e.$implicit,i=Cs();Ls("text-align",i.justify),Yr(1),$s(" ",i.dataAccessor(n,i.name)," ")}}function eT(t){return function(t){f(n,t);var e=g(n);function n(){var t;y(this,n);for(var i=arguments.length,r=new Array(i),a=0;a4&&void 0!==arguments[4])||arguments[4];y(this,t),this._isNativeHtmlTable=e,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=a}return b(t,[{key:"clearStickyPositioning",value:function(t,e){var n,i=this,r=[],a=h(t);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.nodeType===o.ELEMENT_NODE){r.push(o);for(var s=0;s0;r--)e[r]&&(n[r]=i,i+=t[r]);return n}}]),t}();function AT(t){return Error('Could not find column with id "'.concat(t,'".'))}var IT=function(){var t=function t(e,n){y(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(rs(qu),rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","rowOutlet",""]]}),t}(),OT=function(){var t=function t(e,n){y(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(rs(qu),rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),TT=function(){var t=function t(e,n){y(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(rs(qu),rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),RT=function(){var t=function t(e,n){y(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(rs(qu),rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","noDataRowOutlet",""]]}),t}(),MT=function(){var t=function(){function t(e,n,i,r,a,o,s,u){y(this,t),this._differs=e,this._changeDetectorRef=n,this._coalescedStyleScheduler=i,this._elementRef=r,this._dir=o,this._platform=u,this._onDestroy=new U,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this.viewChange=new lp({start:0,end:Number.MAX_VALUE}),a||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return b(t,[{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(e,n){return t.trackBy?t.trackBy(n.dataIndex,n.data):n}))}},{key:"ngAfterContentChecked",value:function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");var t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():t&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Gy(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var n=this._rowOutlet.viewContainer;e.forEachOperation((function(e,i,r){if(null==e.previousIndex)t._insertRow(e.item,r);else if(null==r)n.remove(i);else{var a=n.get(i);n.move(a,r)}})),this._updateRowIndexContext(),e.forEachIdentityChange((function(t){n.get(t.currentIndex).context.$implicit=t.item.data})),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"updateStickyHeaderRowStyles",value:function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var n=this._headerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach((function(t){return t.resetStickyChanged()}))}},{key:"updateStickyFooterRowStyles",value:function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var n=this._footerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach((function(t){return t.resetStickyChanged()}))}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([].concat(l(e),l(n),l(i)),["left","right"]),e.forEach((function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])})),this._rowDefs.forEach((function(e){for(var i=[],r=0;r1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]}},{key:"_renderUpdatedColumns",value:function(){var t=function(t,e){return t||!!e.getColumnsDiff()},e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();var n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();var i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}},{key:"_switchDataSource",value:function(t){this._data=[],Gy(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}},{key:"_observeRenderChanges",value:function(){var t,e=this;if(this.dataSource){var n;if(Gy(this.dataSource)?n=this.dataSource.connect(this):(t=this.dataSource)&&(t instanceof V||"function"==typeof t.lift&&"function"==typeof t.subscribe)?n=this.dataSource:Array.isArray(this.dataSource)&&(n=Sf(this.dataSource)),void 0===n)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=n.pipe(Cy(this._onDestroy)).subscribe((function(t){e._data=t||[],e.renderRows()}))}}},{key:"_forceRenderHeaderRows",value:function(){var t=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(e,n){return t._renderRow(t._headerRowOutlet,e,n)})),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(e,n){return t._renderRow(t._footerRowOutlet,e,n)})),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var n=this,i=Array.from(e.columns||[]).map((function(t){var e=n._columnDefsByName.get(t);if(!e)throw AT(t);return e})),r=i.map((function(t){return t.sticky})),a=i.map((function(t){return t.stickyEnd}));this._stickyStyler.updateStickyColumns(t,r,a)}},{key:"_getRenderedRows",value:function(t){for(var e=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{};t.viewContainer.createEmbeddedView(e.template,i,n);var r,a=h(this._getCellTemplates(e));try{for(a.s();!(r=a.n()).done;){var o=r.value;kT.mostRecentCellOutlet&&kT.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i)}}catch(s){a.e(s)}finally{a.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,n=t.length;e0&&void 0!==arguments[0]?arguments[0]:[];return y(this,n),(t=e.call(this))._renderData=new lp([]),t._filter=new lp(""),t._internalPageChanges=new U,t._renderChangesSubscription=E.EMPTY,t.sortingDataAccessor=function(t,e){var n=t[e];if($g(n)){var i=Number(n);return i<9007199254740991?i:n}return n},t.sortData=function(e,n){var i=n.active,r=n.direction;return i&&""!=r?e.sort((function(e,n){var a=t.sortingDataAccessor(e,i),o=t.sortingDataAccessor(n,i),s=0;return null!=a&&null!=o?a>o?s=1:a0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,e._internalPageChanges.next())}}))}},{key:"connect",value:function(){return this._renderData}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t)}},{key:"filter",get:function(){return this._filter.value},set:function(t){this._filter.next(t)}},{key:"sort",get:function(){return this._sort},set:function(t){this._sort=t,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(t){this._paginator=t,this._updateChangeSubscription()}}]),n}(qy);function yR(t){return t instanceof Date&&!isNaN(+t)}function _R(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:my,n=yR(t),i=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new bR(i,e))}}var bR=function(){function t(e,n){y(this,t),this.delay=e,this.scheduler=n}return b(t,[{key:"call",value:function(t,e){return e.subscribe(new kR(t,this.delay,this.scheduler))}}]),t}(),kR=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t)).delay=i,a.scheduler=r,a.queue=[],a.active=!1,a.errored=!1,a}return b(n,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new wR(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(Iy.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Iy.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var a=Math.max(0,n[0].time-i.now());this.schedule(t,a)}else this.unsubscribe(),e.active=!1}}]),n}(M),wR=function t(e,n){y(this,t),this.time=e,this.notification=n},CR=Vy({passive:!0}),xR=function(){var t=function(){function t(e,n){y(this,t),this._platform=e,this._ngZone=n,this._monitoredElements=new Map}return b(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return yp;var n=Jg(t),i=this._monitoredElements.get(n);if(i)return i.subject.asObservable();var r=new U,a="cdk-text-field-autofilled",o=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(a)&&(n.classList.remove(a),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!1})}))):(n.classList.add(a),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",o,CR),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",o,CR)}}),r.asObservable()}},{key:"stopMonitoring",value:function(t){var e=Jg(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach((function(e,n){return t.stopMonitoring(n)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(Py),fe(cc))},t.\u0275prov=It({factory:function(){return new t(fe(Py),fe(cc))},token:t,providedIn:"root"}),t}(),SR=function(){var t=function(){function t(e,n){y(this,t),this._elementRef=e,this._autofillMonitor=n,this.cdkAutofill=new bl}return b(t,[{key:"ngOnInit",value:function(){var t=this;this._autofillMonitor.monitor(this._elementRef).subscribe((function(e){return t.cdkAutofill.emit(e)}))}},{key:"ngOnDestroy",value:function(){this._autofillMonitor.stopMonitoring(this._elementRef)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(xR))},t.\u0275dir=Be({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t}(),ER=function(){var t=function(){function t(e,n,i,r){y(this,t),this._elementRef=e,this._platform=n,this._ngZone=i,this._destroyed=new U,this._enabled=!0,this._previousMinRows=-1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=n.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return b(t,[{key:"_setMinHeight",value:function(){var t=this.minRows&&this._cachedLineHeight?"".concat(this.minRows*this._cachedLineHeight,"px"):null;t&&(this._textareaElement.style.minHeight=t)}},{key:"_setMaxHeight",value:function(){var t=this.maxRows&&this._cachedLineHeight?"".concat(this.maxRows*this._cachedLineHeight,"px"):null;t&&(this._textareaElement.style.maxHeight=t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular((function(){ty(t._getWindow(),"resize").pipe(wy(16),Cy(t._destroyed)).subscribe((function(){return t.resizeToFitContent(!0)}))})))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(e||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=n.placeholder;n.classList.add(this._measuringClass),n.placeholder="";var a=n.scrollHeight-4;n.style.height="".concat(a,"px"),n.classList.remove(this._measuringClass),n.placeholder=r,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return t._scrollToCaretPosition(n)})):setTimeout((function(){return t._scrollToCaretPosition(n)}))})),this._previousValue=i,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(t){var e=t.selectionStart,n=t.selectionEnd,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==t||t.setSelectionRange(e,n)}},{key:"minRows",get:function(){return this._minRows},set:function(t){this._minRows=Zg(t),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(t){this._maxRows=Zg(t),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(t){t=Kg(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Py),rs(cc),rs(Wc,8))},t.\u0275dir=Be({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&gs("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t}(),DR=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Fy]]}),t}(),AR=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"matAutosizeMinRows",get:function(){return this.minRows},set:function(t){this.minRows=t}},{key:"matAutosizeMaxRows",get:function(){return this.maxRows},set:function(t){this.maxRows=t}},{key:"matAutosize",get:function(){return this.enabled},set:function(t){this.enabled=t}},{key:"matTextareaAutosize",get:function(){return this.enabled},set:function(t){this.enabled=t}}]),n}(ER);return t.\u0275fac=function(e){return IR(e||t)},t.\u0275dir=Be({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[eu]}),t}(),IR=Vi(AR),OR=new re("MAT_INPUT_VALUE_ACCESSOR"),TR=["button","checkbox","file","hidden","image","radio","range","reset","submit"],RR=0,MR=bC((function t(e,n,i,r){y(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r})),PR=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u,l,c,h){var d;y(this,n),(d=e.call(this,s,a,o,r))._elementRef=t,d._platform=i,d.ngControl=r,d._autofillMonitor=l,d._formField=h,d._uid="mat-input-".concat(RR++),d.focused=!1,d.stateChanges=new U,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(t){return Ny().has(t)}));var f=d._elementRef.nativeElement,p=f.nodeName.toLowerCase();return d._inputValueAccessor=u||f,d._previousNativeValue=d.value,d.id=d.id,i.IOS&&c.runOutsideAngular((function(){t.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===p,d._isTextarea="textarea"===p,d._isNativeSelect&&(d.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select"),d}return b(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()}))}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_focusChanged",value:function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var t=this._formField,e=t&&t._hideControlPlaceholder()?null:this.placeholder;if(e!==this._previousPlaceholder){var n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){if(TR.indexOf(this._type)>-1)throw Error('Input type "'.concat(this._type,"\" isn't supported by matInput."))}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=Kg(t),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=Kg(t)}},{key:"type",get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Ny().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(t){this._readonly=Kg(t)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}}]),n}(MR);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Py),rs(oS,10),rs(lE,8),rs(CE,8),rs(FC),rs(OR,10),rs(xR),rs(cc),rs(ZI,8))},t.\u0275dir=Be({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&gs("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(Qs("disabled",e.disabled)("required",e.required),ts("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),Ns("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[pu([{provide:PI,useExisting:t}]),eu,Qe]}),t}(),FR=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[FC],imports:[[DR,$I],DR,$I]}),t}(),LR=["searchSelectInput"],NR=["innerSelectSearch"];function VR(t,e){if(1&t){var n=ps();us(0,"button",6),gs("click",(function(){return xn(n),Cs()._reset(!0)})),us(1,"i",7),Ks(2,"close"),ls(),ls()}}var BR=function(t){return{"mat-select-search-inner-multiple":t}},jR=function(){function t(t,e){this.matSelect=t,this.changeDetectorRef=e,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new bl,this.overlayClassSet=!1,this.change=new bl,this._onDestroy=new U}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this,e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,this.matSelect.openedChange.pipe(_R(1),Cy(this._onDestroy)).subscribe((function(e){e?(t.getWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()})),this.matSelect.openedChange.pipe(Lp(1)).pipe(Cy(this._onDestroy)).subscribe((function(){t._options=t.matSelect.options,t._options.changes.pipe(Cy(t._onDestroy)).subscribe((function(){var e=t.matSelect._keyManager;e&&t.matSelect.panelOpen&&setTimeout((function(){e.setFirstItemActive(),t.getWidth()}),1)}))})),this.change.pipe(Cy(this._onDestroy)).subscribe((function(){t.changeDetectorRef.detectChanges()})),this.initMultipleHandling()},t.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout((function(){t.setOverlayClass()})),this.matSelect.openedChange.pipe(Lp(1),Cy(this._onDestroy)).subscribe((function(){t.matSelect.options.changes.pipe(Cy(t._onDestroy)).subscribe((function(){t.changeDetectorRef.markForCheck()}))}))},t.prototype._handleKeydown=function(t){(t.key&&1===t.key.length||t.keyCode>=65&&t.keyCode<=90||t.keyCode>=48&&t.keyCode<=57||32===t.keyCode)&&t.stopPropagation()},t.prototype.writeValue=function(t){t!==this._value&&(this._value=t,this.change.emit(t))},t.prototype.onInputChange=function(t){t!==this._value&&(this.initMultiSelectedValues(),this._value=t,this.changed.emit(t),this.change.emit(t))},t.prototype.onBlur=function(t){this.writeValue(t)},t.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}},t.prototype._reset=function(t){this.searchSelectInput&&(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),t&&this._focus())},t.prototype.setOverlayClass=function(){var t=this;this.overlayClassSet||(this.matSelect.overlayDir.attach.pipe(Cy(this._onDestroy)).subscribe((function(){for(var e,n=t.searchSelectInput.nativeElement;n=n.parentElement;)if(n.classList.contains("cdk-overlay-pane")){e=n;break}e&&e.classList.add("cdk-overlay-pane-select-search")})),this.overlayClassSet=!0)},t.prototype.initMultipleHandling=function(){var t=this;this.matSelect.valueChange.pipe(Cy(this._onDestroy)).subscribe((function(e){if(t.matSelect.multiple){var n=!1;if(t._value&&t._value.length&&t.previousSelectedValues&&Array.isArray(t.previousSelectedValues)){e&&Array.isArray(e)||(e=[]);var i=t.matSelect.options.map((function(t){return t.value}));t.previousSelectedValues.forEach((function(t){-1===e.indexOf(t)&&-1===i.indexOf(t)&&(e.push(t),n=!0)}))}n&&t.matSelect._onChange(e),t.previousSelectedValues=e}}))},t.prototype.getWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,e=this.innerSelectSearch.nativeElement;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}},t.prototype.initMultiSelectedValues=function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter((function(t){return t.selected})).map((function(t){return t.value})))},t.\u0275fac=function(e){return new(e||t)(rs(mO),rs(So))},t.\u0275cmp=Me({type:t,selectors:[["uds-mat-select-search"]],viewQuery:function(t,e){var n;1&t&&(Rl(LR,!0,_u),Rl(NR,!0,_u)),2&t&&(Tl(n=Vl())&&(e.searchSelectInput=n.first),Tl(n=Vl())&&(e.innerSelectSearch=n.first))},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[pu([{provide:$x,useExisting:Ht((function(){return t})),multi:!0}])],decls:6,vars:5,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["matInput","","autocomplete","off",1,"mat-select-search-input",3,"placeholder","keydown","input","blur"],["searchSelectInput",""],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(cs(0,"input",0),us(1,"div",1,2),us(3,"input",3,4),gs("keydown",(function(t){return e._handleKeydown(t)}))("input",(function(t){return e.onInputChange(t.target.value)}))("blur",(function(t){return e.onBlur(t.target.value)})),ls(),ns(5,VR,3,0,"button",5),ls()),2&t&&(Yr(1),os("ngClass",cl(3,BR,e.matSelect.multiple)),Yr(2),os("placeholder",e.placeholderLabel),Yr(2),os("ngIf",e.value))},directives:[PR,rd,ld,Nx],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 36px 16px 16px;box-sizing:border-box}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px} .cdk-overlay-pane-select-search{margin-top:-50px}"],changeDetection:0}),t}();function zR(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New user permission for"),ls())}function HR(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New group permission for"),ls())}function UR(t,e){if(1&t&&(us(0,"mat-option",11),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),Zs(n.text)}}function WR(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",12),gs("changed",(function(t){return xn(n),Cs().filterUser=t})),ls()}}function qR(t,e){if(1&t&&(us(0,"mat-option",11),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),Zs(n.text)}}function GR(t,e){if(1&t&&(us(0,"mat-option",11),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),Zs(n.text)}}var YR=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.onSave=new bl(!0)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:i},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe((function(e){e.forEach((function(e){t.authenticators.push({id:e.id,text:e.name})}))}))},t.prototype.changeAuth=function(t){var e=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(t,this.data.type+"s").summary().subscribe((function(t){t.forEach((function(t){e.entities.push({id:t.id,text:t.name})}))}))},t.prototype.save=function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()},t.prototype.filteredEntities=function(){var t=this,e=new Array;return this.entities.forEach((function(n){(""===t.filterUser||n.text.toLocaleLowerCase().includes(t.filterUser.toLocaleLowerCase()))&&e.push(n)})),e},t.prototype.getFieldLabel=function(t){return"user"===t?django.gettext("User"):"group"===t?django.gettext("Group"):"auth"===t?django.gettext("Authenticator"):django.gettext("Permission")},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){if(1&t&&(us(0,"h4",0),ns(1,zR,2,0,"uds-translate",1),cs(2,"b",2),ns(3,HR,2,0,"ng-template",null,3,Hl),ls(),us(5,"mat-dialog-content"),us(6,"div",4),us(7,"mat-form-field"),us(8,"mat-select",5),gs("valueChange",(function(t){return e.changeAuth(t)}))("ngModelChange",(function(t){return e.authenticator=t})),ns(9,UR,2,2,"mat-option",6),ls(),ls(),us(10,"mat-form-field"),us(11,"mat-select",7),gs("ngModelChange",(function(t){return e.entity=t})),ns(12,WR,1,0,"uds-mat-select-search",8),ns(13,qR,2,2,"mat-option",6),ls(),ls(),us(14,"mat-form-field"),us(15,"mat-select",7),gs("ngModelChange",(function(t){return e.permission=t})),ns(16,GR,2,2,"mat-option",6),ls(),ls(),ls(),ls(),us(17,"mat-dialog-actions"),us(18,"button",9),us(19,"uds-translate"),Ks(20,"Cancel"),ls(),ls(),us(21,"button",10),gs("click",(function(){return e.save()})),us(22,"uds-translate"),Ks(23,"Ok"),ls(),ls(),ls()),2&t){var n=is(4);Yr(1),os("ngIf","user"===e.data.type)("ngIfElse",n),Yr(1),os("innerHTML",e.data.item.name,Sr),Yr(6),os("placeholder",e.getFieldLabel("auth"))("ngModel",e.authenticator),Yr(1),os("ngForOf",e.authenticators),Yr(2),os("placeholder",e.getFieldLabel(e.data.type))("ngModel",e.entity),Yr(1),os("ngIf",e.entities.length>10),Yr(1),os("ngForOf",e.filteredEntities()),Yr(2),os("placeholder",e.getFieldLabel("perm"))("ngModel",e.permission),Yr(1),os("ngForOf",e.permissions)}},directives:[Ex,ld,Dx,ZI,mO,uS,gE,sd,Ax,Nx,Sx,jx,ox,jR],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function KR(t,e){if(1&t){var n=ps();us(0,"div",11),us(1,"div",12),Ks(2),ls(),us(3,"div",13),Ks(4),us(5,"a",14),gs("click",(function(){xn(n);var t=e.$implicit;return Cs(2).revokePermission(t)})),us(6,"i",15),Ks(7,"close"),ls(),ls(),ls(),ls()}if(2&t){var i=e.$implicit;Yr(2),Xs(" ",i.entity_name,"@",i.auth_name," "),Yr(2),$s(" ",i.perm_name," \xa0")}}function ZR(t,e){if(1&t){var n=ps();us(0,"div",7),us(1,"div",8),us(2,"div",9),gs("click",(function(t){xn(n);var i=e.$implicit;return Cs().newPermission(i),t.preventDefault()})),us(3,"uds-translate"),Ks(4,"New permission..."),ls(),ls(),ns(5,KR,8,3,"div",10),ls(),ls()}if(2&t){var i=e.$implicit;Yr(5),os("ngForOf",i)}}var $R=function(t,e){return[t,e]},XR=function(){function t(t,e,n){this.api=t,this.dialogRef=e,this.data=n,this.userPermissions=[],this.groupPermissions=[]}return t.launch=function(e,n,i){var r=window.innerWidth<800?"90%":"60%";e.gui.dialog.open(t,{width:r,data:{rest:n,item:i},disableClose:!1})},t.prototype.ngOnInit=function(){this.reload()},t.prototype.reload=function(){var t=this;this.data.rest.getPermissions(this.data.item.id).subscribe((function(e){t.updatePermissions(e)}))},t.prototype.updatePermissions=function(t){var e=this;this.userPermissions.length=0,this.groupPermissions.length=0,t.forEach((function(t){"user"===t.type?e.userPermissions.push(t):e.groupPermissions.push(t)}))},t.prototype.revokePermission=function(t){var e=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+t.entity_name+"@"+t.auth_name+" "+t.perm_name+"").subscribe((function(n){n&&e.data.rest.revokePermission([t.id]).subscribe((function(t){e.reload()}))}))},t.prototype.newPermission=function(t){var e=this,n=t===this.userPermissions?"user":"group";YR.launch(this.api,n,this.data.item).subscribe((function(t){e.data.rest.addPermission(e.data.item.id,n+"s",t.entity,t.permissision).subscribe((function(t){e.reload()}))}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Permissions for"),ls(),Ks(3,"\xa0"),cs(4,"b",1),ls(),us(5,"mat-dialog-content"),us(6,"div",2),us(7,"uds-translate",3),Ks(8,"Users"),ls(),us(9,"uds-translate",3),Ks(10,"Groups"),ls(),ls(),us(11,"div",4),ns(12,ZR,6,1,"div",5),ls(),ls(),us(13,"mat-dialog-actions"),us(14,"button",6),us(15,"uds-translate"),Ks(16,"Ok"),ls(),ls(),ls()),2&t&&(Yr(4),os("innerHTML",e.data.item.name,Sr),Yr(8),os("ngForOf",hl(2,$R,e.userPermissions,e.groupPermissions)))},directives:[Ex,jx,Dx,sd,Ax,Nx,Sx],styles:[".titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),QR=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],JR=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],tM={days:QR,shortDays:eM(QR),months:JR,shortMonths:eM(JR),AM:"AM",PM:"PM",am:"am",pm:"pm"};function eM(t){var e=[];return t.forEach((function(t){e.push(t.substr(0,3))})),e}function nM(t,e,n){return function t(e,n,i,r){r=r||{},n=n||new Date,(i=i||tM).formats=i.formats||{};var a=n.getTime();return(r.utc||"number"==typeof r.timezone)&&(n=function(t){var e;return e=6e4*(t.getTimezoneOffset()||0),new Date(t.getTime()+e)}(n)),"number"==typeof r.timezone&&(n=new Date(n.getTime()+6e4*r.timezone)),e.replace(/%([-_0]?.)/g,(function(e,o){var s,u,l,c,h,d,f;if(u=null,c=null,2===o.length){if("-"===(u=o[0]))c="";else if("_"===u)c=" ";else{if("0"!==u)return e;c="0"}o=o[1]}switch(o){case"A":return i.days[n.getDay()];case"a":return i.shortDays[n.getDay()];case"B":return i.months[n.getMonth()];case"b":return i.shortMonths[n.getMonth()];case"C":return iM(Math.floor(n.getFullYear()/100),c);case"D":return t(i.formats.D||"%m/%d/%y",n,i);case"d":return iM(n.getDate(),c);case"e":return n.getDate();case"F":return t(i.formats.F||"%Y-%m-%d",n,i);case"H":return iM(n.getHours(),c);case"h":return i.shortMonths[n.getMonth()];case"I":return iM(rM(n),c);case"j":return d=new Date(n.getFullYear(),0,1),iM(Math.ceil((n.getTime()-d.getTime())/864e5),3);case"k":return iM(n.getHours(),void 0===c?" ":c);case"L":return iM(Math.floor(a%1e3),3);case"l":return iM(rM(n),void 0===c?" ":c);case"M":return iM(n.getMinutes(),c);case"m":return iM(n.getMonth()+1,c);case"n":return"\n";case"o":return String(n.getDate())+function(t){var e,n;if(e=t%10,(n=t%100)>=11&&n<=13||0===e||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}}(n.getDate());case"P":case"p":return"";case"R":return t(i.formats.R||"%H:%M",n,i);case"r":return t(i.formats.r||"%I:%M:%S %p",n,i);case"S":return iM(n.getSeconds(),c);case"s":return Math.floor(a/1e3);case"T":return t(i.formats.T||"%H:%M:%S",n,i);case"t":return"\t";case"U":return iM(aM(n,"sunday"),c);case"u":return 0===(s=n.getDay())?7:s;case"v":return t(i.formats.v||"%e-%b-%Y",n,i);case"W":return iM(aM(n,"monday"),c);case"w":return n.getDay();case"Y":return n.getFullYear();case"y":return(f=String(n.getFullYear())).slice(f.length-2);case"Z":return r.utc?"GMT":(h=n.toString().match(/\((\w+)\)/))&&h[1]||"";case"z":return r.utc?"+0000":((l="number"==typeof r.timezone?r.timezone:-n.getTimezoneOffset())<0?"-":"+")+iM(Math.abs(l/60))+iM(l%60);default:return o}}))}(t,e,n)}function iM(t,e,n){"number"==typeof e&&(n=e,e="0"),e=null==e?"0":e,n=null==n?2:n;var i=String(t);if(e)for(;i.length12&&(e-=12),e}function aM(t,e){var n,i;return e=e||"sunday",i=t.getDay(),"monday"===e&&(0===i?i=6:i--),n=new Date(t.getFullYear(),0,1),Math.floor(((t-n)/864e5+7-i)/7)}function oM(t){return t.replace(/./g,(function(t){switch(t){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+t;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return t}}))}function sM(t,e,n){var i;if(void 0===n&&(n=null),"None"===e||null==e)e=7226578800,i=django.gettext("Never");else{var r=django.get_format(t);n&&(r+=n),i=nM(oM(r),new Date(1e3*e))}return i}function uM(t){return"yes"===t||!0===t||"true"===t||1===t}var lM=n("dunZ");function cM(t){return void 0!==t.changingThisBreaksApplicationSecurity&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(t=""+t).replace('"','""')+'"'}function hM(t){var e="";t.columns.forEach((function(t){e+=cM(t.title)+","})),e=e.slice(0,-1)+"\r\n",t.dataSource.data.forEach((function(n){t.columns.forEach((function(t){var i=n[t.name];switch(t.type){case vA.DATE:i=sM("SHORT_DATE_FORMAT",i);break;case vA.DATETIME:i=sM("SHORT_DATETIME_FORMAT",i);break;case vA.DATETIMESEC:i=sM("SHORT_DATE_FORMAT",i," H:i:s");break;case vA.TIME:i=sM("TIME_FORMAT",i)}e+=cM(i)+","})),e=e.slice(0,-1)+"\r\n"}));var n=new Blob([e],{type:"text/csv"});setTimeout((function(){Object(lM.saveAs)(n,t.title+".csv")}),100)}function dM(t,e){if(1&t&&(Xn(),cs(0,"circle",3)),2&t){var n=Cs();Ls("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),ts("r",n._getCircleRadius())}}function fM(t,e){if(1&t&&(Xn(),cs(0,"circle",3)),2&t){var n=Cs();Ls("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),ts("r",n._getCircleRadius())}}function pM(t,e){if(1&t&&(Xn(),cs(0,"circle",3)),2&t){var n=Cs();Ls("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),ts("r",n._getCircleRadius())}}function mM(t,e){if(1&t&&(Xn(),cs(0,"circle",3)),2&t){var n=Cs();Ls("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),ts("r",n._getCircleRadius())}}var vM=".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",gM=gC((function t(e){y(this,t),this._elementRef=e}),"primary"),yM=new re("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),_M=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o){var s;y(this,n),(s=e.call(this,t))._elementRef=t,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var u=n._diameters;return u.has(r.head)||u.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===a&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return b(n,[{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=jy(t)||this._document.head,this._attachStyleNode();var e="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");t.classList.add(e)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var t=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,e=this._diameter,i=n._diameters,r=i.get(t);if(!r||!r.has(e)){var a=this._document.createElement("style");a.setAttribute("mat-spinner-animation",e+""),a.textContent=this._getAnimationText(),t.appendChild(a),r||(r=new Set,i.set(t,r)),r.add(e)}}},{key:"_getAnimationText",value:function(){var t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*t)).replace(/END_VALUE/g,"".concat(.2*t)).replace(/DIAMETER/g,"".concat(this.diameter))}},{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=Zg(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=Zg(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,Zg(t)))}}]),n}(gM);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Py),rs(Wc,8),rs(iC,8),rs(yM))},t.\u0275cmp=Me({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(ts("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Ls("width",e.diameter,"px")("height",e.diameter,"px"),Ns("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[eu],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Xn(),us(0,"svg",0),ns(1,dM,1,9,"circle",1),ns(2,fM,1,7,"circle",2),ls()),2&t&&(Ls("width",e.diameter,"px")("height",e.diameter,"px"),os("ngSwitch","indeterminate"===e.mode),ts("viewBox",e._getViewBox()),Yr(1),os("ngSwitchCase",!0),Yr(1),os("ngSwitchCase",!1))},directives:[fd,pd],styles:[vM],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t}(),bM=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o){var s;return y(this,n),(s=e.call(this,t,i,r,a,o)).mode="indeterminate",s}return n}(_M);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Py),rs(Wc,8),rs(iC,8),rs(yM))},t.\u0275cmp=Me({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(Ls("width",e.diameter,"px")("height",e.diameter,"px"),Ns("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[eu],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Xn(),us(0,"svg",0),ns(1,pM,1,9,"circle",1),ns(2,mM,1,7,"circle",2),ls()),2&t&&(Ls("width",e.diameter,"px")("height",e.diameter,"px"),os("ngSwitch","indeterminate"===e.mode),ts("viewBox",e._getViewBox()),Yr(1),os("ngSwitchCase",!0),Yr(1),os("ngSwitchCase",!1))},directives:[fd,pd],styles:[vM],encapsulation:2,changeDetection:0}),t}(),kM=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[mC,Wd],mC]}),t}(),wM=["mat-menu-item",""],CM=["*"];function xM(t,e){if(1&t){var n=ps();us(0,"div",0),gs("keydown",(function(t){return xn(n),Cs()._handleKeydown(t)}))("click",(function(){return xn(n),Cs().closed.emit("click")}))("@transformMenu.start",(function(t){return xn(n),Cs()._onAnimationStart(t)}))("@transformMenu.done",(function(t){return xn(n),Cs()._onAnimationDone(t)})),us(1,"div",1),Es(2),ls(),ls()}if(2&t){var i=Cs();os("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),ts("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var SM={transformMenu:Mb("transformMenu",[Vb("void",Nb({opacity:0,transform:"scale(0.8)"})),jb("void => enter",Fb([Hb(".mat-menu-content, .mat-mdc-menu-content",Pb("100ms linear",Nb({opacity:1}))),Pb("120ms cubic-bezier(0, 0, 0.2, 1)",Nb({transform:"scale(1)"}))])),jb("* => void",Pb("100ms 25ms linear",Nb({opacity:0})))]),fadeInItems:Mb("fadeInItems",[Vb("showing",Nb({opacity:1})),jb("void => *",[Nb({opacity:0}),Pb("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},EM=new re("MatMenuContent"),DM=function(){var t=function(){function t(e,n,i,r,a,o,s){y(this,t),this._template=e,this._componentFactoryResolver=n,this._appRef=i,this._injector=r,this._viewContainerRef=a,this._document=o,this._changeDetectorRef=s,this._attached=new U}return b(t,[{key:"attach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new i_(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new o_(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Uu),rs(yu),rs(Tc),rs(Uo),rs(qu),rs(Wc),rs(So))},t.\u0275dir=Be({type:t,selectors:[["ng-template","matMenuContent",""]],features:[pu([{provide:EM,useExisting:t}])]}),t}(),AM=new re("MAT_MENU_PANEL"),IM=yC(vC((function t(){y(this,t)}))),OM=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o){var s;return y(this,n),(s=e.call(this))._elementRef=t,s._focusMonitor=r,s._parentMenu=o,s.role="menuitem",s._hovered=new U,s._focused=new U,s._highlighted=!1,s._triggersSubmenu=!1,o&&o.addItem&&o.addItem(a(s)),s._document=i,s}return b(n,[{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){var t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3,n="";if(t.childNodes)for(var i=t.childNodes.length,r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.asObservable().pipe(Lp(1)).subscribe((function(){return t._focusFirstItem(e)})):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e=Math.min(4+t,24),n="mat-elevation-z".concat(e),i=Object.keys(this._classList).find((function(t){return t.startsWith("mat-elevation-z")}));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe($p(this._allItems)).subscribe((function(e){t._directDescendantItems.reset(e.filter((function(e){return e._parentMenu===t}))),t._directDescendantItems.notifyOnChanges()}))}},{key:"xPosition",get:function(){return this._xPosition},set:function(t){tr()&&"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=t,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(t){tr()&&"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=Kg(t)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Kg(t)}},{key:"panelClass",set:function(t){var e=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach((function(t){e._classList[t]=!1})),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach((function(t){e._classList[t]=!0})),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(t){this.panelClass=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(cc),rs(TM))},t.\u0275dir=Be({type:t,contentQueries:function(t,e,n){var i;1&t&&(Fl(n,EM,!0),Fl(n,OM,!0),Fl(n,OM,!1)),2&t&&(Tl(i=Vl())&&(e.lazyContent=i.first),Tl(i=Vl())&&(e._allItems=i),Tl(i=Vl())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&Ml(Uu,!0),2&t&&Tl(n=Vl())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}(),PM=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(MM);return t.\u0275fac=function(e){return FM(e||t)},t.\u0275dir=Be({type:t,features:[eu]}),t}(),FM=Vi(PM),LM=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){return y(this,n),e.call(this,t,i,r)}return n}(PM);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(cc),rs(TM))},t.\u0275cmp=Me({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[pu([{provide:AM,useExisting:PM},{provide:PM,useExisting:t}]),eu],ngContentSelectors:CM,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Ss(),ns(0,xM,3,6,"ng-template"))},directives:[rd],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[SM.transformMenu,SM.fadeInItems]},changeDetection:0}),t}(),NM=new re("mat-menu-scroll-strategy"),VM={provide:NM,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},BM=Vy({passive:!0}),jM=function(){var t=function(){function t(e,n,i,r,a,o,s,u){var l=this;y(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._parentMenu=a,this._menuItemInstance=o,this._dir=s,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=E.EMPTY,this._hoverSubscription=E.EMPTY,this._menuCloseSubscription=E.EMPTY,this._handleTouchStart=function(){return l._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new bl,this.onMenuOpen=this.menuOpened,this.menuClosed=new bl,this.onMenuClose=this.menuClosed,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,BM),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return b(t,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,BM),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return t.closeMenu()})),this._initMenu(),this.menu instanceof PM&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"_destroyMenu",value:function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),e instanceof PM?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Df((function(t){return"void"===t.toState})),Lp(1),Cy(e.lazyContent._attached)).subscribe({next:function(){return e.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){tr()&&!this.menu&&function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new x_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe((function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")}))}},{key:"_setPosition",value:function(t){var e=u("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=e[0],i=e[1],r=u("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=r[0],o=r[1],s=a,l=o,c=n,h=i,d=0;this.triggersSubmenu()?(h=n="before"===this.menu.xPosition?"start":"end",i=c="end"===n?"start":"end",d="bottom"===a?8:-8):this.menu.overlapTrigger||(s="top"===a?"bottom":"top",l="top"===o?"bottom":"top"),t.withPositions([{originX:n,originY:s,overlayX:c,overlayY:a,offsetY:d},{originX:i,originY:s,overlayX:h,overlayY:a,offsetY:d},{originX:n,originY:l,overlayX:c,overlayY:o,offsetY:-d},{originX:i,originY:l,overlayX:h,overlayY:o,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return ht(e,this._parentMenu?this._parentMenu.closed:Sf(),this._parentMenu?this._parentMenu._hovered().pipe(Df((function(e){return e!==t._menuItemInstance})),Df((function(){return t._menuOpen}))):Sf(),n)}},{key:"_handleMousedown",value:function(t){wb(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Df((function(e){return e===t._menuItemInstance&&!e.disabled})),_R(0,hy)).subscribe((function(){t._openedBy="mouse",t.menu instanceof PM&&t.menu._isAnimating?t.menu._animationDone.pipe(Lp(1),_R(0,hy),Cy(t._parentMenu._hovered())).subscribe((function(){return t.openMenu()})):t.openMenu()})))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new i_(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(tr()&&t===this._parentMenu&&function(){throw Error("matMenuTriggerFor: menu cannot contain its own trigger. Assign a menu that is not a parent of the trigger or move the trigger outside of the menu.")}(),this._menuCloseSubscription=t.close.asObservable().subscribe((function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMenu||e._parentMenu.closed.emit(t)}))))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(U_),rs(_u),rs(qu),rs(NM),rs(PM,8),rs(OM,10),rs(Hy,8),rs(Sb))},t.\u0275dir=Be({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&gs("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&ts("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),zM=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[VM],imports:[mC]}),t}(),HM=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[VM],imports:[[Wd,mC,GC,Z_,zM],Qy,mC,zM]}),t}(),UM=function(){var t=function(){function t(){y(this,t),this._vertical=!1,this._inset=!1}return b(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=Kg(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=Kg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(ts("aria-orientation",e.vertical?"vertical":"horizontal"),Ns("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t}(),WM=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[mC],mC]}),t}(),qM=function(){function t(){}return t.prototype.transform=function(t,e){return t.sort(void 0===e?function(t,e){return t>e?1:-1}:function(t,n){return t[e]>n[e]?1:-1})},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"sort",type:t,pure:!0}),t}(),GM=["trigger"];function YM(t,e){1&t&&cs(0,"img",36),2&t&&os("src",Cs().icon,Er)}function KM(t,e){if(1&t){var n=ps();us(0,"button",46),gs("click",(function(){xn(n);var t=e.$implicit,i=Cs(5);return i.newAction.emit({param:t,table:i})})),ls()}if(2&t){var i=e.$implicit,r=Cs(5);os("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Sr)}}function ZM(t,e){if(1&t&&(hs(0),us(1,"button",42),Ks(2),ls(),us(3,"mat-menu",43,44),ns(5,KM,1,1,"button",45),ml(6,"sort"),ls(),ds()),2&t){var n=e.$implicit,i=is(4);Yr(1),os("matMenuTriggerFor",i),Yr(1),Zs(n.key),Yr(1),os("overlapTrigger",!1),Yr(2),os("ngForOf",gl(6,4,n.value,"name"))}}function $M(t,e){if(1&t&&(hs(0),us(1,"mat-menu",37,38),ns(3,ZM,7,7,"ng-container",39),ml(4,"keyvalue"),ls(),us(5,"a",40),us(6,"i",17),Ks(7,"insert_drive_file"),ls(),us(8,"span",41),us(9,"uds-translate"),Ks(10,"New"),ls(),ls(),us(11,"i",17),Ks(12,"arrow_drop_down"),ls(),ls(),ds()),2&t){var n=is(2),i=Cs(3);Yr(1),os("overlapTrigger",!1),Yr(2),os("ngForOf",vl(4,3,i.grpTypes)),Yr(2),os("matMenuTriggerFor",n)}}function XM(t,e){if(1&t){var n=ps();us(0,"button",46),gs("click",(function(){xn(n);var t=e.$implicit,i=Cs(4);return i.newAction.emit({param:t,table:i})})),ls()}if(2&t){var i=e.$implicit,r=Cs(4);os("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Sr)}}function QM(t,e){if(1&t&&(hs(0),us(1,"mat-menu",37,38),ns(3,XM,1,1,"button",45),ml(4,"sort"),ls(),us(5,"a",40),us(6,"i",17),Ks(7,"insert_drive_file"),ls(),us(8,"span",41),us(9,"uds-translate"),Ks(10,"New"),ls(),ls(),us(11,"i",17),Ks(12,"arrow_drop_down"),ls(),ls(),ds()),2&t){var n=is(2),i=Cs(3);Yr(1),os("overlapTrigger",!1),Yr(2),os("ngForOf",gl(4,3,i.oTypes,"name")),Yr(2),os("matMenuTriggerFor",n)}}function JM(t,e){if(1&t&&(hs(0),ns(1,$M,13,5,"ng-container",8),ns(2,QM,13,6,"ng-container",8),ds()),2&t){var n=Cs(2);Yr(1),os("ngIf",n.newGrouped),Yr(1),os("ngIf",!n.newGrouped)}}function tP(t,e){if(1&t){var n=ps();hs(0),us(1,"a",47),gs("click",(function(){xn(n);var t=Cs(2);return t.newAction.emit({param:void 0,table:t})})),us(2,"i",17),Ks(3,"insert_drive_file"),ls(),us(4,"span",41),us(5,"uds-translate"),Ks(6,"New"),ls(),ls(),ls(),ds()}}function eP(t,e){if(1&t&&(hs(0),ns(1,JM,3,2,"ng-container",8),ns(2,tP,7,0,"ng-container",8),ds()),2&t){var n=Cs();Yr(1),os("ngIf",null!=n.oTypes&&0!=n.oTypes.length),Yr(1),os("ngIf",null!=n.oTypes&&0==n.oTypes.length)}}function nP(t,e){if(1&t){var n=ps();hs(0),us(1,"a",48),gs("click",(function(){xn(n);var t=Cs();return t.emitIfSelection(t.editAction)})),us(2,"i",17),Ks(3,"edit"),ls(),us(4,"span",41),us(5,"uds-translate"),Ks(6,"Edit"),ls(),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(1),os("disabled",1!=i.selection.selected.length)}}function iP(t,e){if(1&t){var n=ps();hs(0),us(1,"a",48),gs("click",(function(){return xn(n),Cs().permissions()})),us(2,"i",17),Ks(3,"perm_identity"),ls(),us(4,"span",41),us(5,"uds-translate"),Ks(6,"Permissions"),ls(),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(1),os("disabled",1!=i.selection.selected.length)}}function rP(t,e){if(1&t){var n=ps();us(0,"a",50),gs("click",(function(){xn(n);var t=e.$implicit;return Cs(2).emitCustom(t)})),ls()}if(2&t){var i=e.$implicit;os("disabled",Cs(2).isCustomDisabled(i))("innerHTML",i.html,Sr)}}function aP(t,e){if(1&t&&(hs(0),ns(1,rP,1,2,"a",49),ds()),2&t){var n=Cs();Yr(1),os("ngForOf",n.getcustomButtons())}}function oP(t,e){if(1&t){var n=ps();hs(0),us(1,"a",51),gs("click",(function(){return xn(n),Cs().export()})),us(2,"i",17),Ks(3,"import_export"),ls(),us(4,"span",41),us(5,"uds-translate"),Ks(6,"Export"),ls(),ls(),ls(),ds()}}function sP(t,e){if(1&t){var n=ps();hs(0),us(1,"a",52),gs("click",(function(){xn(n);var t=Cs();return t.emitIfSelection(t.deleteAction,!0)})),us(2,"i",17),Ks(3,"delete_forever"),ls(),us(4,"span",41),us(5,"uds-translate"),Ks(6,"Delete"),ls(),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(1),os("disabled",i.selection.isEmpty())}}function uP(t,e){if(1&t){var n=ps();us(0,"button",53),gs("click",(function(){xn(n);var t=Cs();return t.filterText="",t.applyFilter()})),us(1,"i",17),Ks(2,"close"),ls(),ls()}}function lP(t,e){1&t&&cs(0,"mat-header-cell")}function cP(t,e){1&t&&(us(0,"i",17),Ks(1,"check_box"),ls())}function hP(t,e){1&t&&(us(0,"i",17),Ks(1,"check_box_outline_blank"),ls())}function dP(t,e){if(1&t){var n=ps();us(0,"mat-cell",56),gs("click",(function(t){xn(n);var i=e.$implicit;return Cs(2).clickRow(i,t)})),ns(1,cP,2,0,"i",57),ns(2,hP,2,0,"ng-template",null,58,Hl),ls()}if(2&t){var i=e.$implicit,r=is(3),a=Cs(2);Yr(1),os("ngIf",a.selection.isSelected(i))("ngIfElse",r)}}function fP(t,e){1&t&&(hs(0,54),ns(1,lP,1,0,"mat-header-cell",22),ns(2,dP,4,2,"mat-cell",55),ds())}function pP(t,e){1&t&&cs(0,"mat-header-cell")}function mP(t,e){if(1&t){var n=ps();us(0,"mat-cell"),us(1,"div",59),gs("click",(function(t){xn(n);var i=e.$implicit,r=Cs();return r.detailAction.emit({param:i,table:r}),t.stopPropagation()})),us(2,"i",17),Ks(3,"subdirectory_arrow_right"),ls(),ls(),ls()}}function vP(t,e){if(1&t&&(us(0,"mat-header-cell",63),Ks(1),ls()),2&t){var n=Cs().$implicit;Yr(1),Zs(n.title)}}function gP(t,e){if(1&t){var n=ps();us(0,"mat-cell",64),gs("click",(function(t){xn(n);var i=e.$implicit;return Cs(2).clickRow(i,t)}))("contextmenu",(function(t){xn(n);var i=e.$implicit;return Cs(2).onContextMenu(i,t)})),cs(1,"div",65),ls()}if(2&t){var i=e.$implicit,r=Cs().$implicit,a=Cs();Yr(1),os("innerHtml",a.getRowColumn(i,r),Sr)}}function yP(t,e){1&t&&(hs(0,60),ns(1,vP,2,1,"mat-header-cell",61),ns(2,gP,2,1,"mat-cell",62),ds()),2&t&&Ds("matColumnDef",e.$implicit.name)}function _P(t,e){1&t&&cs(0,"mat-header-row")}function bP(t,e){if(1&t&&cs(0,"mat-row",66),2&t){var n=e.$implicit;os("ngClass",Cs().rowClass(n))}}function kP(t,e){if(1&t&&(us(0,"div",67),Ks(1),us(2,"uds-translate"),Ks(3,"Selected items"),ls(),ls()),2&t){var n=Cs();Yr(1),$s(" ",n.selection.selected.length," ")}}function wP(t,e){if(1&t){var n=ps();us(0,"button",71),gs("click",(function(){xn(n);var t=Cs().item,e=Cs();return e.detailAction.emit({param:t,table:e})})),us(1,"i",72),Ks(2,"subdirectory_arrow_right"),ls(),us(3,"uds-translate"),Ks(4,"Detail"),ls(),ls()}}function CP(t,e){if(1&t){var n=ps();us(0,"button",71),gs("click",(function(){xn(n);var t=Cs(2);return t.emitIfSelection(t.editAction)})),us(1,"i",72),Ks(2,"edit"),ls(),us(3,"uds-translate"),Ks(4,"Edit"),ls(),ls()}}function xP(t,e){if(1&t){var n=ps();us(0,"button",71),gs("click",(function(){return xn(n),Cs(2).permissions()})),us(1,"i",72),Ks(2,"perm_identity"),ls(),us(3,"uds-translate"),Ks(4,"Permissions"),ls(),ls()}}function SP(t,e){if(1&t){var n=ps();us(0,"button",73),gs("click",(function(){xn(n);var t=e.$implicit;return Cs(2).emitCustom(t)})),ls()}if(2&t){var i=e.$implicit;os("disabled",Cs(2).isCustomDisabled(i))("innerHTML",i.html,Sr)}}function EP(t,e){if(1&t){var n=ps();us(0,"button",74),gs("click",(function(){xn(n);var t=Cs(2);return t.emitIfSelection(t.deleteAction)})),us(1,"i",72),Ks(2,"delete_forever"),ls(),us(3,"uds-translate"),Ks(4,"Delete"),ls(),ls()}}function DP(t,e){if(1&t){var n=ps();us(0,"button",73),gs("click",(function(){xn(n);var t=e.$implicit;return Cs(3).emitCustom(t)})),ls()}if(2&t){var i=e.$implicit;os("disabled",Cs(3).isCustomDisabled(i))("innerHTML",i.html,Sr)}}function AP(t,e){if(1&t&&(hs(0),cs(1,"mat-divider"),ns(2,DP,1,2,"button",69),ds()),2&t){var n=Cs(2);Yr(2),os("ngForOf",n.getCustomAccelerators())}}function IP(t,e){if(1&t&&(ns(0,wP,5,0,"button",68),ns(1,CP,5,0,"button",68),ns(2,xP,5,0,"button",68),ns(3,SP,1,2,"button",69),ns(4,EP,5,0,"button",70),ns(5,AP,3,1,"ng-container",8)),2&t){var n=Cs();os("ngIf",n.detailAction.observers.length>0),Yr(1),os("ngIf",n.editAction.observers.length>0),Yr(1),os("ngIf",!0===n.hasPermissions),Yr(1),os("ngForOf",n.getCustomMenu()),Yr(1),os("ngIf",n.deleteAction.observers.length>0),Yr(1),os("ngIf",n.hasAccelerators)}}var OP=function(){return[5,10,25,100,1e3]},TP=function(){function t(t){this.api=t,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new gR([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.contextMenuPosition={x:"0px",y:"0px"},this.filterText="",this.pageSize=10,this.newGrouped=!1,this.loaded=new bl,this.rowSelected=new bl,this.newAction=new bl,this.editAction=new bl,this.deleteAction=new bl,this.customButtonAction=new bl,this.detailAction=new bl}return t.prototype.ngOnInit=function(){var t=this;this.hasCustomButtons=void 0!==this.customButtons&&0!==this.customButtons.length&&0!==this.customButtonAction.observers.length&&this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||0!==this.detailAction.observers.length||0!==this.editAction.observers.length||this.hasPermissions||0!==this.deleteAction.observers.length,this.hasActions=this.hasButtons||void 0!==this.customButtons&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=function(t,e){if(!(e in t))return"";var n=t[e];return"number"==typeof n?n:"string"==typeof n?n.toLocaleLowerCase():(null===n&&(n=7226578800),n.changingThisBreaksApplicationSecurity&&(n=n.changingThisBreaksApplicationSecurity),(""+n).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(e,n){try{t.columns.forEach((function(t){if((""+e[t.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(n))throw!0}))}catch(i){return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new Yy(!0===this.multiSelect,[]);var e=this.rest.permision();0==(e&UA.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),e!==UA.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe((function(e){t.rest.tableInfo().subscribe((function(n){t.initialize(n,e)}))}))},t.prototype.initialize=function(t,e){var n=this;this.oTypes=e,this.types=new Map,this.grpTypes=new Map,e.forEach((function(t){n.types.set(t.type,t),void 0!==t.group&&(n.grpTypes.has(t.group)||n.grpTypes.set(t.group,[]),n.grpTypes.get(t.group).push(t))})),this.rowStyleInfo=void 0!==t["row-style"]&&void 0!==t["row-style"].field?t["row-style"]:null,this.title=t.title,this.subtitle=t.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var i=[];t.fields.forEach((function(t){for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];i.push({name:e,title:r.title,type:void 0===r.type?vA.ALPHANUMERIC:r.type,dict:r.dict}),(void 0===r.visible||r.visible)&&n.displayedColumns.push(e)}})),this.columns=i,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()},t.prototype.overview=function(){var t=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe((function(e){t.loading=!1,void 0!==t.onItem&&e.forEach((function(e){t.onItem(e)})),t.dataSource.data=e,t.loaded.emit({param:t.firstLoad,table:t}),t.firstLoad=!1}),(function(e){t.loading=!1})))},t.prototype.getcustomButtons=function(){return this.customButtons?this.customButtons.filter((function(t){return t.type!==gA.ONLY_MENU&&t.type!==gA.ACCELERATOR})):[]},t.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter((function(t){return t.type!==gA.ACCELERATOR})):[]},t.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter((function(t){return t.type===gA.ACCELERATOR})):[]},t.prototype.getRowColumn=function(t,e){var n=t[e.name];switch(e.type){case vA.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case vA.DATE:n=sM("SHORT_DATE_FORMAT",n);break;case vA.DATETIME:n=sM("SHORT_DATETIME_FORMAT",n);break;case vA.TIME:n=sM("TIME_FORMAT",n);break;case vA.DATETIMESEC:n=sM("SHORT_DATE_FORMAT",n," H:i:s");break;case vA.ICON:try{n=this.api.gui.icon(this.types.get(t.type).icon)+n}catch(i){}return this.api.safeString(n);case vA.CALLBACK:break;case vA.DICTIONARY:try{n=e.dict[n]}catch(i){n=""}}return n},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage(this.tableId+"sort-column",t.active),this.api.putOnStorage(this.tableId+"sort-direction",t.direction)},t.prototype.rowClass=function(t){var e=[];return this.selection.isSelected(t)&&e.push("selected"),null!==this.rowStyleInfo&&e.push(this.rowStyleInfo.prefix+t[this.rowStyleInfo.field]),e},t.prototype.emitIfSelection=function(t,e){void 0===e&&(e=!1);var n=this.selection.selected.length;n>0&&(!0!==e&&1!==n||t.emit({table:this,param:n}))},t.prototype.isCustomDisabled=function(t){switch(t.type){case void 0:case gA.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===t.disabled;case gA.MULTI_SELECT:return this.selection.isEmpty()||!0===t.disabled;default:return!1}},t.prototype.emitCustom=function(t){(this.selection.selected.length||t.type===gA.ALWAYS)&&(t.type===gA.ACCELERATOR?this.api.navigation.goto(t.id,this.selection.selected[0],t.acceleratorProperties):this.customButtonAction.emit({param:t,table:this}))},t.prototype.clickRow=function(t,e){var n=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-e.x)<16&&Math.abs(this.lastClickInfo.y-e.y)<16&&n-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(t),void(this.detailAction.observers.length?this.detailAction.emit({param:t,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:n,x:e.x,y:e.y},this.doSelect(t,e)},t.prototype.doSelect=function(t,e){if(e.ctrlKey)this.lastSel=t,this.selection.toggle(t);else if(e.shiftKey){if(this.selection.isEmpty())this.selection.toggle(t);else if(this.selection.clear(),this.lastSel!==t)for(var n=!1,i=this.dataSource.sortData(this.dataSource.data,this.dataSource.sort),r=0;r0),Yr(1),os("ngIf",e.editAction.observers.length>0),Yr(1),os("ngIf",!0===e.hasPermissions),Yr(1),os("ngIf",e.hasCustomButtons),Yr(1),os("ngIf",1==e.allowExport),Yr(1),os("ngIf",e.deleteAction.observers.length>0),Yr(7),os("ngModel",e.filterText),Yr(1),os("ngIf",e.filterText),Yr(2),os("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",ll(27,OP))("showFirstLastButtons",!0),Yr(6),os("dataSource",e.dataSource),Yr(1),os("ngIf",e.hasButtons),Yr(4),os("ngForOf",e.columns),Yr(1),os("matHeaderRowDef",e.displayedColumns),Yr(1),os("matRowDefColumns",e.displayedColumns),Yr(1),os("hidden",!e.loading),Yr(5),os("ngIf",e.hasButtons&&e.selection.selected.length>0),Yr(1),Ls("left",e.contextMenuPosition.x)("top",e.contextMenuPosition.y),os("matMenuTriggerFor",n)}},directives:[ld,jx,ZI,PR,eS,uS,gE,LO,Vx,zT,HO,ZT,qT,UT,sd,tR,rR,_M,jM,LM,DM,OM,Nx,WI,XT,JT,ZO,oR,cR,rd,UM],pipes:[Fd,qM],styles:[".header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.buttons[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.buttons[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1em;margin-bottom:1em}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.4rem}.buttons[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#000;color:#fff}button.mat-menu-item[_ngcontent-%COMP%]{height:32px;line-height:32px}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#f0f8ff;cursor:pointer}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:#00f}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-menu-panel{min-height:48px} .mat-paginator-range-label{min-width:6em}"]}),t}(),RP='pause'+django.gettext("Maintenance")+"",MP='pause'+django.gettext("Exit maintenance mode")+"",PP='pause'+django.gettext("Enter maintenance mode")+"",FP=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"maintenance",html:RP,type:gA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New provider"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit provider"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete provider"))},t.prototype.onMaintenance=function(t){var e=this,n=t.table.selection.selected[0],i=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+n.name,i).subscribe((function(i){i&&e.rest.providers.maintenance(n.id).subscribe((function(){t.table.overview()}))}))},t.prototype.onRowSelect=function(t){var e=t.table;this.customButtons[0].html=e.selection.selected.length>1||0===e.selection.selected.length?RP:e.selection.selected[0].maintenance_mode?MP:PP},t.prototype.onDetail=function(t){this.api.navigation.gotoService(t.param.id)},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-services"]],decls:1,vars:6,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,e){1&t&&(us(0,"uds-table",0),gs("customButtonAction",(function(t){return e.onMaintenance(t)}))("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("rowSelected",(function(t){return e.onRowSelect(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),ls()),2&t&&os("rest",e.rest.providers)("onItem",e.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)},directives:[TP],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-maintenance_state, .mat-column-services_count, .mat-column-user_services_count{max-width:7rem;justify-content:center}"]}),t}(),LP=n("MCLT"),NP=function(){function t(t,e,n,i){this.title=t,this.data=e,this.columns=n,this.id=i,this.columnsDefinition=Array.from(n,(function(t){var e={};return e[t.field]={visible:!0,title:t.title,type:void 0===t.type?vA.ALPHANUMERIC:t.type},e}))}return t.prototype.get=function(t){return yp},t.prototype.getLogs=function(t){return yp},t.prototype.overview=function(t){return Object(LP.isFunction)(this.data)?this.data():Sf([])},t.prototype.summary=function(t){return this.overview()},t.prototype.put=function(t,e){return yp},t.prototype.create=function(t){return yp},t.prototype.save=function(t,e){return yp},t.prototype.test=function(t,e){return yp},t.prototype.delete=function(t){return yp},t.prototype.permision=function(){return UA.ALL},t.prototype.getPermissions=function(t){return yp},t.prototype.addPermission=function(t,e,n,i){return yp},t.prototype.revokePermission=function(t){return yp},t.prototype.types=function(){return Sf([])},t.prototype.gui=function(t){return yp},t.prototype.callback=function(t,e){return yp},t.prototype.tableInfo=function(){return Sf({fields:this.columnsDefinition,title:this.title})},t.prototype.detail=function(t,e){return null},t.prototype.invoke=function(t,e){return yp},t}();function VP(t,e){if(1&t){var n=ps();us(0,"button",24),gs("click",(function(){xn(n);var t=Cs();return t.filterText="",t.applyFilter()})),us(1,"i",8),Ks(2,"close"),ls(),ls()}}function BP(t,e){if(1&t&&(us(0,"mat-header-cell",28),Ks(1),ls()),2&t){var n=Cs().$implicit;Yr(1),Zs(n)}}function jP(t,e){if(1&t&&(us(0,"mat-cell"),cs(1,"div",29),ls()),2&t){var n=e.$implicit,i=Cs().$implicit,r=Cs();Yr(1),os("innerHtml",r.getRowColumn(n,i),Sr)}}function zP(t,e){1&t&&(hs(0,25),ns(1,BP,2,1,"mat-header-cell",26),ns(2,jP,2,1,"mat-cell",27),ds()),2&t&&os("matColumnDef",e.$implicit)}function HP(t,e){1&t&&cs(0,"mat-header-row")}function UP(t,e){if(1&t&&cs(0,"mat-row",30),2&t){var n=e.$implicit;os("ngClass",Cs().rowClass(n))}}var WP=function(){return[5,10,25,100,1e3]},qP=function(){function t(t){this.api=t,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new gR([]),this.selection=new Yy,this.pageSize=10}return t.prototype.ngOnInit=function(){var t=this;this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc",this.displayedColumns.forEach((function(e){t.columns.push({name:e,title:e,type:"date"===e?vA.DATETIMESEC:vA.ALPHANUMERIC})})),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()},t.prototype.overview=function(){var t=this;this.rest.getLogs(this.itemId).subscribe((function(e){t.dataSource.data=e}))},t.prototype.selectElement=function(t,e){},t.prototype.getRowColumn=function(t,e){var n=t[e];return"date"===e?n=sM("SHORT_DATE_FORMAT",n," H:i:s"):"level"===e&&(n={1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[n]||"OTHER"),n},t.prototype.rowClass=function(t){return["level-"+t.level]},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage("logs-sort-column",t.active),this.api.putOnStorage("logs-sort-direction",t.direction)},t.prototype.export=function(){hM(this)},t.prototype.keyDown=function(t){switch(t.keyCode){case 36:this.paginator.firstPage(),t.preventDefault();break;case 35:this.paginator.lastPage(),t.preventDefault();break;case 39:this.paginator.nextPage(),t.preventDefault();break;case 37:this.paginator.previousPage(),t.preventDefault()}},t.\u0275fac=function(e){return new(e||t)(rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-logs-table"]],viewQuery:function(t,e){var n;1&t&&(Rl(LO,!0),Rl(HO,!0)),2&t&&(Tl(n=Vl())&&(e.paginator=n.first),Tl(n=Vl())&&(e.sort=n.first))},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"div",2),cs(3,"img",3),Ks(4," \xa0"),us(5,"uds-translate"),Ks(6,"Logs"),ls(),ls(),ls(),us(7,"div",4),us(8,"div",5),us(9,"div",6),us(10,"a",7),gs("click",(function(){return e.export()})),us(11,"i",8),Ks(12,"import_export"),ls(),us(13,"span",9),us(14,"uds-translate"),Ks(15,"Export"),ls(),ls(),ls(),ls(),us(16,"div",10),us(17,"div",11),us(18,"uds-translate"),Ks(19,"Filter"),ls(),Ks(20,"\xa0 "),us(21,"mat-form-field"),us(22,"input",12),gs("keyup",(function(){return e.applyFilter()}))("ngModelChange",(function(t){return e.filterText=t})),ls(),ns(23,VP,3,0,"button",13),ls(),ls(),us(24,"div",14),cs(25,"mat-paginator",15),ls(),us(26,"div",16),us(27,"a",17),gs("click",(function(){return e.overview()})),us(28,"i",8),Ks(29,"autorenew"),ls(),ls(),ls(),ls(),ls(),us(30,"div",18),gs("keydown",(function(t){return e.keyDown(t)})),us(31,"mat-table",19),gs("matSortChange",(function(t){return e.sortChanged(t)})),ns(32,zP,3,1,"ng-container",20),ns(33,HP,1,0,"mat-header-row",21),ns(34,UP,1,1,"mat-row",22),ls(),ls(),cs(35,"div",23),ls(),ls()),2&t&&(Yr(3),os("src",e.api.staticURL("admin/img/icons/logs.png"),Er),Yr(19),os("ngModel",e.filterText),Yr(1),os("ngIf",e.filterText),Yr(2),os("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",ll(11,WP))("showFirstLastButtons",!0),Yr(6),os("dataSource",e.dataSource),Yr(1),os("ngForOf",e.displayedColumns),Yr(1),os("matHeaderRowDef",e.displayedColumns),Yr(1),os("matRowDefColumns",e.displayedColumns))},directives:[jx,Vx,ZI,PR,eS,uS,gE,ld,LO,zT,HO,sd,tR,rR,Nx,WI,ZT,qT,UT,XT,ZO,JT,oR,cR,rd],styles:[".header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.header[_ngcontent-%COMP%], .navigation[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.navigation[_ngcontent-%COMP%]{justify-content:flex-start}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{max-width:160px}.mat-column-level[_ngcontent-%COMP%]{max-width:96px;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:128px} .level-50000>.mat-cell, .level-60000>.mat-cell{color:#ff1e1e!important} .level-40000>.mat-cell{color:#d65014!important}"]}),t}();function GP(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Services pools"),ls())}function YP(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Logs"),ls())}var KP=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],ZP=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.customButtons=[_A.getGotoButton("pool","id")],this.services=i.services,this.service=i.service}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:i,services:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.servicePools=new NP(django.gettext("Service pools"),(function(){return t.services.invoke(t.service.id+"/servicesPools")}),KP,this.service.id+"infopsls")},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-information"]],decls:17,vars:7,consts:[["mat-dialog-title",""],["mat-tab-label",""],["pageSize","6",3,"rest","customButtons"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Information for"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),us(5,"mat-tab-group"),us(6,"mat-tab"),ns(7,GP,2,0,"ng-template",1),cs(8,"uds-table",2),ls(),us(9,"mat-tab"),ns(10,YP,2,0,"ng-template",1),us(11,"div",3),cs(12,"uds-logs-table",4),ls(),ls(),ls(),ls(),us(13,"mat-dialog-actions"),us(14,"button",5),us(15,"uds-translate"),Ks(16,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.service.name,"\n"),Yr(5),os("rest",e.servicePools)("customButtons",e.customButtons),Yr(4),os("rest",e.services)("itemId",e.service.id)("tableId","serviceInfo-d-log"+e.service.id)("pageSize",5))},directives:[Ex,jx,Dx,TD,kD,gD,TP,qP,Ax,Nx,Sx],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),t}();function $P(t,e){if(1&t&&(us(0,"div",3),cs(1,"div",4),cs(2,"div",5),ls()),2&t){var n=e.$implicit;Yr(1),os("innerHTML",n.gui.label,Sr),Yr(1),os("innerHTML",n.value,Sr)}}var XP=function(){function t(t){this.api=t,this.displayables=null}return t.prototype.ngOnInit=function(){this.processFields()},t.prototype.processFields=function(){var t=this;if(!this.gui||!this.value)return[];var e=this.gui.filter((function(t){return t.gui.type!==Yx.HIDDEN}));e.forEach((function(e){var n=t.value[e.name];switch(e.gui.type){case Yx.CHECKBOX:e.value=n?django.gettext("Yes"):django.gettext("No");break;case Yx.PASSWORD:e.value=django.gettext("(hidden)");break;case Yx.CHOICE:var i=Kx.locateChoice(n,e);e.value=i.text;break;case Yx.MULTI_CHOICE:e.value=django.gettext("Selected items :")+n.length;break;case Yx.IMAGECHOICE:i=Kx.locateChoice(n,e),e.value=t.api.safeString(t.api.gui.icon(i.img)+" "+i.text);break;default:e.value=n}""!==e.value&&null!=e.value||(e.value="(empty)")})),this.displayables=e},t.\u0275fac=function(e){return new(e||t)(rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),ns(2,$P,3,2,"div",2),ls(),cs(3,"div"),ls()),2&t&&(Yr(2),os("ngForOf",e.displayables))},directives:[sd],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:700;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),t}();function QP(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Summary"),ls())}function JP(t,e){if(1&t&&cs(0,"uds-information",15),2&t){var n=Cs(2);os("value",n.provider)("gui",n.gui)}}function tF(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Services"),ls())}function eF(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Usage"),ls())}function nF(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Logs"),ls())}function iF(t,e){if(1&t){var n=ps();us(0,"div",6),us(1,"div",7),us(2,"mat-tab-group",8),gs("selectedIndexChange",(function(t){return xn(n),Cs().selectedTab=t})),us(3,"mat-tab"),ns(4,QP,2,0,"ng-template",9),us(5,"div",10),ns(6,JP,1,2,"uds-information",11),ls(),ls(),us(7,"mat-tab"),ns(8,tF,2,0,"ng-template",9),us(9,"div",10),us(10,"uds-table",12),gs("newAction",(function(t){return xn(n),Cs().onNewService(t)}))("editAction",(function(t){return xn(n),Cs().onEditService(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteService(t)}))("customButtonAction",(function(t){return xn(n),Cs().onInformation(t)}))("loaded",(function(t){return xn(n),Cs().onLoad(t)})),ls(),ls(),ls(),us(11,"mat-tab"),ns(12,eF,2,0,"ng-template",9),us(13,"div",10),us(14,"uds-table",13),gs("deleteAction",(function(t){return xn(n),Cs().onDeleteUsage(t)})),ls(),ls(),ls(),us(15,"mat-tab"),ns(16,nF,2,0,"ng-template",9),us(17,"div",10),cs(18,"uds-logs-table",14),ls(),ls(),ls(),ls(),ls()}if(2&t){var i=Cs();Yr(2),os("selectedIndex",i.selectedTab)("@.disabled",!0),Yr(4),os("ngIf",i.provider&&i.gui),Yr(4),os("rest",i.services)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("tableId","providers-d-services"+i.provider.id),Yr(4),os("rest",i.usage)("multiSelect",!0)("allowExport",!0)("tableId","providers-d-usage"+i.provider.id),Yr(4),os("rest",i.services.parentModel)("itemId",i.provider.id)("tableId","providers-d-log"+i.provider.id)}}var rF=function(t){return["/providers",t]},aF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:gA.ONLY_MENU}],this.provider=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).subscribe((function(e){t.provider=e,t.services.parentModel.gui(e.type).subscribe((function(e){t.gui=e}))}))},t.prototype.onInformation=function(t){ZP.launch(this.api,this.services,t.table.selection.selected[0])},t.prototype.onNewService=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New service"),!1)},t.prototype.onEditService=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit service"),!1)},t.prototype.onDeleteService=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service"))},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user service"))},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("service");if(void 0!==e){this.selectedTab=1;var n=t.table;n.dataSource.data.forEach((function(t){t.id===e&&n.selection.select(t)}))}}},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-services-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"a",2),us(3,"i",3),Ks(4,"arrow_back"),ls(),ls(),Ks(5," \xa0"),cs(6,"img",4),Ks(7),ls(),ns(8,iF,19,15,"div",5),ls()),2&t&&(Yr(2),os("routerLink",cl(4,rF,e.services.parentId)),Yr(4),os("src",e.api.staticURL("admin/img/icons/services.png"),Er),Yr(1),$s(" \xa0",null==e.provider?null:e.provider.name," "),Yr(1),os("ngIf",null!==e.provider))},directives:[xg,ld,TD,kD,gD,TP,qP,jx,XP],styles:[""]}),t}(),oF=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("authenticator")},t.prototype.onDetail=function(t){this.api.navigation.gotoAuthenticatorDetail(t.param.id)},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Authenticator"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Authenticator"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Authenticator"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible)},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-authenticators"]],decls:2,vars:5,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(us(0,"div"),us(1,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),ls(),ls()),2&t&&(Yr(1),os("rest",e.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement))},directives:[TP],styles:[""]}),t}(),sF=["panel"];function uF(t,e){if(1&t&&(us(0,"div",0,1),Es(2),ls()),2&t){var n=Cs();os("id",n.id)("ngClass",n._classList)}}var lF=["*"],cF=0,hF=function t(e,n){y(this,t),this.source=e,this.option=n},dF=yC((function t(){y(this,t)})),fF=new re("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),pF=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this))._changeDetectorRef=t,a._elementRef=i,a._activeOptionChanges=E.EMPTY,a.showPanel=!1,a._isOpen=!1,a.displayWith=null,a.optionSelected=new bl,a.opened=new bl,a.closed=new bl,a.optionActivated=new bl,a._classList={},a.id="mat-autocomplete-".concat(cF++),a._autoActiveFirstOption=!!r.autoActiveFirstOption,a}return b(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new cb(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe((function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})})),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new hF(this,t);this.optionSelected.emit(e)}},{key:"_setVisibilityClasses",value:function(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}},{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=Kg(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?t.split(" ").reduce((function(t,e){return t[e.trim()]=!0,t}),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}}]),n}(dF);return t.\u0275fac=function(e){return new(e||t)(rs(So),rs(_u),rs(fF))},t.\u0275cmp=Me({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;1&t&&(Fl(n,ox,!0),Fl(n,JC,!0)),2&t&&(Tl(i=Vl())&&(e.options=i),Tl(i=Vl())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(Rl(Uu,!0),Ml(sF,!0)),2&t&&(Tl(n=Vl())&&(e.template=n.first),Tl(n=Vl())&&(e.panel=n.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[pu([{provide:rx,useExisting:t}]),eu],ngContentSelectors:lF,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(Ss(),ns(0,uF,3,2,"ng-template"))},directives:[rd],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t}(),mF=function(){var t=function t(e){y(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),t}(),vF=new re("mat-autocomplete-scroll-strategy"),gF={provide:vF,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},yF={provide:$x,useExisting:Ht((function(){return _F})),multi:!0},_F=function(){var t=function(){function t(e,n,i,r,a,o,s,u,c,h){var d=this;y(this,t),this._element=e,this._overlay=n,this._viewContainerRef=i,this._zone=r,this._changeDetectorRef=a,this._dir=s,this._formField=u,this._document=c,this._viewportRuler=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=E.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new U,this._windowBlurHandler=function(){d._canOpenOnNextFocus=d._document.activeElement!==d._element.nativeElement||d.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=bp((function(){return d.autocomplete&&d.autocomplete.options?ht.apply(void 0,l(d.autocomplete.options.map((function(t){return t.onSelectionChange})))):d._zone.onStable.asObservable().pipe(Lp(1),Gp((function(){return d.optionSelections})))})),this._scrollStrategy=o}return b(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular((function(){return e.addEventListener("blur",t._windowBlurHandler)}))}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"_getOutsideClickStream",value:function(){var t=this;return ht(ty(this._document,"click"),ty(this._document,"touchend")).pipe(Df((function(e){var n=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,i=t._formField?t._formField._elementRef.nativeElement:null,r=t.connectedTo?t.connectedTo.elementRef.nativeElement:null;return t._overlayAttached&&n!==t._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)})))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then((function(){return e._setTriggerValue(t)}))}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(27===e&&t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption()}}},{key:"_handleInput",value:function(t){var e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_scrollToOption",value:function(){var t=this.autocomplete._keyManager.activeItemIndex||0,e=sx(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{var n=ux(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(n)}}},{key:"_subscribeToClosingActions",value:function(){var t=this;return ht(this._zone.onStable.asObservable().pipe(Lp(1)),this.autocomplete.options.changes.pipe(zp((function(){return t._positionStrategy.reapplyLastPosition()})),_R(0))).pipe(Gp((function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions})),Lp(1)).subscribe((function(e){return t._setValueAndClose(e)}))}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach((function(e){e!=t&&e.selected&&e.deselect()}))}},{key:"_attachOverlay",value:function(){var t=this;if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!jy(this._element.nativeElement));var e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new i_(this.autocomplete.template,this._viewContainerRef),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe((function(e){(27===e.keyCode||38===e.keyCode&&e.altKey)&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())})),this._viewportSubscription=this._viewportRuler.change().subscribe((function(){t.panelOpen&&e&&e.updateSize({width:t._getPanelWidth()})}))),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){return new x_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"}];e="above"===this.position?i:"below"===this.position?n:[].concat(n,i),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=Kg(t)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var t=this;return ht(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Df((function(){return t._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Df((function(){return t._overlayAttached}))):Sf()).pipe(G((function(t){return t instanceof ix?t:null})))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(U_),rs(qu),rs(cc),rs(So),rs(vF),rs(Hy,8),rs(KI,9),rs(Wc,8),rs(Xy))},t.\u0275dir=Be({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&gs("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&ts("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[pu([yF]),Qe]}),t}(),bF=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[gF],imports:[[lx,Z_,mC,Wd],Qy,lx,mC]}),t}();function kF(t,e){if(1&t&&(us(0,"div"),us(1,"uds-translate"),Ks(2,"Edit user"),ls(),Ks(3),ls()),2&t){var n=Cs();Yr(3),$s(" ",n.user.name," ")}}function wF(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New user"),ls())}function CF(t,e){if(1&t){var n=ps();us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"input",18),gs("ngModelChange",(function(t){return xn(n),Cs().user.name=t})),ls(),ls()}if(2&t){var i=Cs();Yr(2),$s(" ",i.authenticator.type_info.userNameLabel," "),Yr(1),os("ngModel",i.user.name)("disabled",i.user.id)}}function xF(t,e){if(1&t&&(us(0,"mat-option",21),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),Xs(" ",n.id," (",n.name,") ")}}function SF(t,e){if(1&t){var n=ps();us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"input",19),gs("ngModelChange",(function(t){return xn(n),Cs().user.name=t}))("input",(function(t){return xn(n),Cs().filterUser(t)})),ls(),us(4,"mat-autocomplete",null,20),ns(6,xF,2,3,"mat-option",15),ls(),ls()}if(2&t){var i=is(5),r=Cs();Yr(2),$s(" ",r.authenticator.type_info.userNameLabel," "),Yr(1),os("ngModel",r.user.name)("matAutocomplete",i),Yr(3),os("ngForOf",r.users)}}function EF(t,e){if(1&t){var n=ps();us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"input",22),gs("ngModelChange",(function(t){return xn(n),Cs().user.password=t})),ls(),ls()}if(2&t){var i=Cs();Yr(2),$s(" ",i.authenticator.type_info.passwordLabel," "),Yr(1),os("ngModel",i.user.password)}}function DF(t,e){if(1&t&&(us(0,"mat-option",21),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}var AF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.users=[],this.authenticator=i.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==i.user&&(this.user.id=i.user.id,this.user.name=i.user.name)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe((function(e){t.groups=e})),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe((function(e){t.user=e,t.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"}),(function(e){t.dialogRef.close()}))},t.prototype.roleChanged=function(t){this.user.is_admin="admin"===t,this.user.staff_member="admin"===t||"staff"===t},t.prototype.filterUser=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"user",t.target.value,100).subscribe((function(t){e.users.length=0,t.forEach((function(t){e.users.push(t)}))}))},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe((function(e){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-new-user"]],decls:60,vars:11,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(us(0,"h4",0),ns(1,kF,4,1,"div",1),ns(2,wF,2,0,"ng-template",null,2,Hl),ls(),us(4,"mat-dialog-content"),us(5,"div",3),ns(6,CF,4,3,"mat-form-field",4),ns(7,SF,7,4,"mat-form-field",4),us(8,"mat-form-field"),us(9,"mat-label"),us(10,"uds-translate"),Ks(11,"Real name"),ls(),ls(),us(12,"input",5),gs("ngModelChange",(function(t){return e.user.real_name=t})),ls(),ls(),us(13,"mat-form-field"),us(14,"mat-label"),us(15,"uds-translate"),Ks(16,"Comments"),ls(),ls(),us(17,"input",5),gs("ngModelChange",(function(t){return e.user.comments=t})),ls(),ls(),us(18,"mat-form-field"),us(19,"mat-label"),us(20,"uds-translate"),Ks(21,"State"),ls(),ls(),us(22,"mat-select",6),gs("ngModelChange",(function(t){return e.user.state=t})),us(23,"mat-option",7),us(24,"uds-translate"),Ks(25,"Enabled"),ls(),ls(),us(26,"mat-option",8),us(27,"uds-translate"),Ks(28,"Disabled"),ls(),ls(),us(29,"mat-option",9),us(30,"uds-translate"),Ks(31,"Blocked"),ls(),ls(),ls(),ls(),us(32,"mat-form-field"),us(33,"mat-label"),us(34,"uds-translate"),Ks(35,"Role"),ls(),ls(),us(36,"mat-select",10),gs("ngModelChange",(function(t){return e.user.role=t}))("valueChange",(function(t){return e.roleChanged(t)})),us(37,"mat-option",11),us(38,"uds-translate"),Ks(39,"Admin"),ls(),ls(),us(40,"mat-option",12),us(41,"uds-translate"),Ks(42,"Staff member"),ls(),ls(),us(43,"mat-option",13),us(44,"uds-translate"),Ks(45,"User"),ls(),ls(),ls(),ls(),ns(46,EF,4,2,"mat-form-field",4),us(47,"mat-form-field"),us(48,"mat-label"),us(49,"uds-translate"),Ks(50,"Groups"),ls(),ls(),us(51,"mat-select",14),gs("ngModelChange",(function(t){return e.user.groups=t})),ns(52,DF,2,2,"mat-option",15),ls(),ls(),ls(),ls(),us(53,"mat-dialog-actions"),us(54,"button",16),us(55,"uds-translate"),Ks(56,"Cancel"),ls(),ls(),us(57,"button",17),gs("click",(function(){return e.save()})),us(58,"uds-translate"),Ks(59,"Ok"),ls(),ls(),ls()),2&t){var n=is(3);Yr(1),os("ngIf",e.user.id)("ngIfElse",n),Yr(5),os("ngIf",!1===e.authenticator.type_info.canSearchUsers||e.user.id),Yr(1),os("ngIf",!0===e.authenticator.type_info.canSearchUsers&&!e.user.id),Yr(5),os("ngModel",e.user.real_name),Yr(5),os("ngModel",e.user.comments),Yr(5),os("ngModel",e.user.state),Yr(14),os("ngModel",e.user.role),Yr(10),os("ngIf",e.authenticator.type_info.needsPassword),Yr(5),os("ngModel",e.user.groups),Yr(1),os("ngForOf",e.groups)}},directives:[Ex,ld,Dx,ZI,BI,jx,PR,eS,uS,gE,mO,ox,sd,Ax,Nx,Sx,_F,pF],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),IF=["thumbContainer"],OF=["toggleBar"],TF=["input"],RF=function(){return{enterDuration:150}},MF=["*"],PF=new re("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),FF=0,LF={provide:$x,useExisting:Ht((function(){return BF})),multi:!0},NF=function t(e,n){y(this,t),this.source=e,this.checked=n},VF=_C(gC(yC(vC((function t(e){y(this,t),this._elementRef=e}))),"accent")),BF=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s){var u;return y(this,n),(u=e.call(this,t))._focusMonitor=i,u._changeDetectorRef=r,u.defaults=o,u._animationMode=s,u._onChange=function(t){},u._onTouched=function(){},u._uniqueId="mat-slide-toggle-".concat(++FF),u._required=!1,u._checked=!1,u.name=null,u.id=u._uniqueId,u.labelPosition="after",u.ariaLabel=null,u.ariaLabelledby=null,u.change=new bl,u.toggleChange=new bl,u.tabIndex=parseInt(a)||0,u}return b(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then((function(){return t._onTouched()}))}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.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(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new NF(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(t){this._required=Kg(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=Kg(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),n}(VF);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Sb),rs(So),as("tabindex"),rs(PF),rs(iC,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(Ml(IF,!0),Ml(OF,!0),Ml(TF,!0)),2&t&&(Tl(n=Vl())&&(e._thumbEl=n.first),Tl(n=Vl())&&(e._thumbBarEl=n.first),Tl(n=Vl())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(Qs("id",e.id),ts("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),Ns("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[pu([LF]),eu],ngContentSelectors:MF,decls:16,vars:18,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(t,e){if(1&t&&(Ss(),us(0,"label",0,1),us(2,"div",2,3),us(4,"input",4,5),gs("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),ls(),us(6,"div",6,7),cs(8,"div",8),us(9,"div",9),cs(10,"div",10),ls(),ls(),ls(),us(11,"span",11,12),gs("cdkObserveContent",(function(){return e._onLabelTextChange()})),us(13,"span",13),Ks(14,"\xa0"),ls(),Es(15),ls(),ls()),2&t){var n=is(1),i=is(12);ts("for",e.inputId),Yr(2),Ns("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),Yr(2),os("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),ts("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Yr(5),os("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",ll(17,RF))}},directives:[qC,nb],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{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}(),jF={provide:dS,useExisting:Ht((function(){return zF})),multi:!0},zF=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(PE);return t.\u0275fac=function(e){return HF(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[pu([jF]),eu]}),t}(),HF=Vi(zF),UF=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),WF=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[UF,GC,mC,ib],UF,mC]}),t}();function qF(t,e){if(1&t&&(us(0,"div"),us(1,"uds-translate"),Ks(2,"Edit group"),ls(),Ks(3),ls()),2&t){var n=Cs();Yr(3),$s(" ",n.group.name," ")}}function GF(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New group"),ls())}function YF(t,e){if(1&t){var n=ps();us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"input",13),gs("ngModelChange",(function(t){return xn(n),Cs(2).group.name=t})),ls(),ls()}if(2&t){var i=Cs(2);Yr(2),$s(" ",i.authenticator.type_info.groupNameLabel," "),Yr(1),os("ngModel",i.group.name)("disabled",i.group.id)}}function KF(t,e){if(1&t&&(us(0,"mat-option",17),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),Xs(" ",n.id," (",n.name,") ")}}function ZF(t,e){if(1&t){var n=ps();us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"input",14),gs("ngModelChange",(function(t){return xn(n),Cs(2).group.name=t}))("input",(function(t){return xn(n),Cs(2).filterGroup(t)})),ls(),us(4,"mat-autocomplete",null,15),ns(6,KF,2,3,"mat-option",16),ls(),ls()}if(2&t){var i=is(5),r=Cs(2);Yr(2),$s(" ",r.authenticator.type_info.groupNameLabel," "),Yr(1),os("ngModel",r.group.name)("matAutocomplete",i),Yr(3),os("ngForOf",r.fltrGroup)}}function $F(t,e){if(1&t&&(hs(0),ns(1,YF,4,3,"mat-form-field",12),ns(2,ZF,7,4,"mat-form-field",12),ds()),2&t){var n=Cs();Yr(1),os("ngIf",!1===n.authenticator.type_info.canSearchGroups||n.group.id),Yr(1),os("ngIf",!0===n.authenticator.type_info.canSearchGroups&&!n.group.id)}}function XF(t,e){if(1&t){var n=ps();us(0,"mat-form-field"),us(1,"mat-label"),us(2,"uds-translate"),Ks(3,"Meta group name"),ls(),ls(),us(4,"input",13),gs("ngModelChange",(function(t){return xn(n),Cs().group.name=t})),ls(),ls()}if(2&t){var i=Cs();Yr(4),os("ngModel",i.group.name)("disabled",i.group.id)}}function QF(t,e){if(1&t&&(us(0,"mat-option",17),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function JF(t,e){if(1&t){var n=ps();hs(0),us(1,"mat-form-field"),us(2,"mat-label"),us(3,"uds-translate"),Ks(4,"Service Pools"),ls(),ls(),us(5,"mat-select",18),gs("ngModelChange",(function(t){return xn(n),Cs().group.pools=t})),ns(6,QF,2,2,"mat-option",16),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(5),os("ngModel",i.group.pools),Yr(1),os("ngForOf",i.servicePools)}}function tL(t,e){if(1&t&&(us(0,"mat-option",17),Ks(1),ls()),2&t){var n=Cs().$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function eL(t,e){if(1&t&&(hs(0),ns(1,tL,2,2,"mat-option",22),ds()),2&t){var n=e.$implicit;Yr(1),os("ngIf","group"===n.type)}}function nL(t,e){if(1&t){var n=ps();us(0,"div",19),us(1,"span",20),us(2,"uds-translate"),Ks(3,"Match mode"),ls(),ls(),us(4,"mat-slide-toggle",6),gs("ngModelChange",(function(t){return xn(n),Cs().group.meta_if_any=t})),Ks(5),ls(),ls(),us(6,"mat-form-field"),us(7,"mat-label"),us(8,"uds-translate"),Ks(9,"Selected Groups"),ls(),ls(),us(10,"mat-select",18),gs("ngModelChange",(function(t){return xn(n),Cs().group.groups=t})),ns(11,eL,2,1,"ng-container",21),ls(),ls()}if(2&t){var i=Cs();Yr(4),os("ngModel",i.group.meta_if_any),Yr(1),$s(" ",i.getMatchValue()," "),Yr(5),os("ngModel",i.group.groups),Yr(1),os("ngForOf",i.groups)}}var iL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.fltrGroup=[],this.authenticator=i.authenticator,this.group={id:void 0,type:i.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==i.group&&(this.group.id=i.group.id,this.group.type=i.group.type,this.group.name=i.group.name)}return t.launch=function(e,n,i,r){var a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:i,group:r},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&e.get(this.group.id).subscribe((function(e){t.group=e}),(function(e){t.dialogRef.close()})),"meta"===this.group.type?e.summary().subscribe((function(e){return t.groups=e})):this.rest.servicesPools.summary().subscribe((function(e){return t.servicePools=e}))},t.prototype.filterGroup=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"group",t.target.value,100).subscribe((function(t){e.fltrGroup.length=0,t.forEach((function(t){e.fltrGroup.push(t)}))}))},t.prototype.getMatchValue=function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe((function(e){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-new-group"]],decls:35,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-match"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(t,e){if(1&t&&(us(0,"h4",0),ns(1,qF,4,1,"div",1),ns(2,GF,2,0,"ng-template",null,2,Hl),ls(),us(4,"mat-dialog-content"),us(5,"div",3),ns(6,$F,3,2,"ng-container",1),ns(7,XF,5,2,"ng-template",null,4,Hl),us(9,"mat-form-field"),us(10,"mat-label"),us(11,"uds-translate"),Ks(12,"Comments"),ls(),ls(),us(13,"input",5),gs("ngModelChange",(function(t){return e.group.comments=t})),ls(),ls(),us(14,"mat-form-field"),us(15,"mat-label"),us(16,"uds-translate"),Ks(17,"State"),ls(),ls(),us(18,"mat-select",6),gs("ngModelChange",(function(t){return e.group.state=t})),us(19,"mat-option",7),us(20,"uds-translate"),Ks(21,"Enabled"),ls(),ls(),us(22,"mat-option",8),us(23,"uds-translate"),Ks(24,"Disabled"),ls(),ls(),ls(),ls(),ns(25,JF,7,2,"ng-container",1),ns(26,nL,12,4,"ng-template",null,9,Hl),ls(),ls(),us(28,"mat-dialog-actions"),us(29,"button",10),us(30,"uds-translate"),Ks(31,"Cancel"),ls(),ls(),us(32,"button",11),gs("click",(function(){return e.save()})),us(33,"uds-translate"),Ks(34,"Ok"),ls(),ls(),ls()),2&t){var n=is(3),i=is(8),r=is(27);Yr(1),os("ngIf",e.group.id)("ngIfElse",n),Yr(5),os("ngIf","group"===e.group.type)("ngIfElse",i),Yr(7),os("ngModel",e.group.comments),Yr(5),os("ngModel",e.group.state),Yr(7),os("ngIf","group"===e.group.type)("ngIfElse",r)}},directives:[Ex,ld,Dx,ZI,BI,jx,PR,eS,uS,gE,mO,ox,Ax,Nx,Sx,_F,pF,sd,BF],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function rL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Groups"),ls())}function aL(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,rL,2,0,"ng-template",3),cs(2,"uds-table",4),ls()),2&t){var n=Cs();Yr(2),os("rest",n.group)}}function oL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Services Pools"),ls())}function sL(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,oL,2,0,"ng-template",3),cs(2,"uds-table",4),ls()),2&t){var n=Cs();Yr(2),os("rest",n.servicesPools)}}function uL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Assigned Services"),ls())}function lL(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,uL,2,0,"ng-template",3),cs(2,"uds-table",4),ls()),2&t){var n=Cs();Yr(2),os("rest",n.userServices)}}var cL=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],hL=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],dL=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],fL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.users=i.users,this.user=i.user}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:i},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe((function(e){t.group=new NP(django.gettext("Groups"),(function(){return t.rest.authenticators.detail(t.users.parentId,"groups").overview().pipe(G((function(t){return t.filter((function(t){return e.groups.includes(t.id)}))})))}),cL,t.user.id+"infogrp"),t.servicesPools=new NP(django.gettext("Services Pools"),(function(){return t.users.invoke(t.user.id+"/servicesPools")}),hL,t.user.id+"infopool"),t.userServices=new NP(django.gettext("Assigned services"),(function(){return t.users.invoke(t.user.id+"/userServices").pipe(G((function(e){return e.map((function(e){return e.in_use=t.api.yesno(e.in_use),e}))})))}),dL,t.user.id+"userservpool")}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],["pageSize","6",3,"rest"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Information for"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),us(5,"mat-tab-group"),ns(6,aL,3,1,"mat-tab",1),ns(7,sL,3,1,"mat-tab",1),ns(8,lL,3,1,"mat-tab",1),ls(),ls(),us(9,"mat-dialog-actions"),us(10,"button",2),us(11,"uds-translate"),Ks(12,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.user.name,"\n"),Yr(3),os("ngIf",e.group),Yr(1),os("ngIf",e.servicesPools),Yr(1),os("ngIf",e.userServices))},directives:[Ex,jx,Dx,TD,ld,Ax,Nx,Sx,kD,gD,TP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function pL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Services Pools"),ls())}function mL(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,pL,2,0,"ng-template",3),cs(2,"uds-table",4),ls()),2&t){var n=Cs();Yr(2),os("rest",n.servicesPools)}}function vL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Users"),ls())}function gL(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,vL,2,0,"ng-template",3),cs(2,"uds-table",4),ls()),2&t){var n=Cs();Yr(2),os("rest",n.users)}}function yL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Groups"),ls())}function _L(t,e){if(1&t&&(us(0,"mat-tab"),ns(1,yL,2,0,"ng-template",3),cs(2,"uds-table",4),ls()),2&t){var n=Cs();Yr(2),os("rest",n.groups)}}var bL=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],kL=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:vA.DATETIME}],wL=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],CL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:i,groups:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new NP(django.gettext("Service pools"),(function(){return e.invoke(t.data.group.id+"/servicesPools")}),bL,this.data.group.id+"infopls"),this.users=new NP(django.gettext("Users"),(function(){return e.invoke(t.data.group.id+"/users").pipe(G((function(t){return t.map((function(t){return t.state="A"===t.state?django.gettext("Enabled"):"I"===t.state?django.gettext("Disabled"):django.gettext("Blocked"),t}))})))}),kL,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new NP(django.gettext("Groups"),(function(){return e.overview().pipe(G((function(e){return e.filter((function(e){return t.data.group.groups.includes(e.id)}))})))}),wL,this.data.group.id+"infogrps"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],["pageSize","6",3,"rest"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Information for"),ls(),ls(),us(3,"mat-dialog-content"),us(4,"mat-tab-group"),ns(5,mL,3,1,"mat-tab",1),ns(6,gL,3,1,"mat-tab",1),ns(7,_L,3,1,"mat-tab",1),ls(),ls(),us(8,"mat-dialog-actions"),us(9,"button",2),us(10,"uds-translate"),Ks(11,"Ok"),ls(),ls(),ls()),2&t&&(Yr(5),os("ngIf",e.servicesPools),Yr(1),os("ngIf",e.users),Yr(1),os("ngIf",e.groups))},directives:[Ex,jx,Dx,TD,ld,Ax,Nx,Sx,kD,gD,TP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function xL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Summary"),ls())}function SL(t,e){if(1&t&&cs(0,"uds-information",16),2&t){var n=Cs(2);os("value",n.authenticator)("gui",n.gui)}}function EL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Users"),ls())}function DL(t,e){if(1&t){var n=ps();us(0,"uds-table",17),gs("loaded",(function(t){return xn(n),Cs(2).onLoad(t)}))("newAction",(function(t){return xn(n),Cs(2).onNewUser(t)}))("editAction",(function(t){return xn(n),Cs(2).onEditUser(t)}))("deleteAction",(function(t){return xn(n),Cs(2).onDeleteUser(t)}))("customButtonAction",(function(t){return xn(n),Cs(2).onUserInformation(t)})),ls()}if(2&t){var i=Cs(2);os("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)}}function AL(t,e){if(1&t){var n=ps();us(0,"uds-table",18),gs("loaded",(function(t){return xn(n),Cs(2).onLoad(t)}))("editAction",(function(t){return xn(n),Cs(2).onEditUser(t)}))("deleteAction",(function(t){return xn(n),Cs(2).onDeleteUser(t)}))("customButtonAction",(function(t){return xn(n),Cs(2).onUserInformation(t)})),ls()}if(2&t){var i=Cs(2);os("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)}}function IL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Groups"),ls())}function OL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Logs"),ls())}function TL(t,e){if(1&t){var n=ps();us(0,"div",6),us(1,"div",7),us(2,"mat-tab-group",8),gs("selectedIndexChange",(function(t){return xn(n),Cs().selectedTab=t})),us(3,"mat-tab"),ns(4,xL,2,0,"ng-template",9),us(5,"div",10),ns(6,SL,1,2,"uds-information",11),ls(),ls(),us(7,"mat-tab"),ns(8,EL,2,0,"ng-template",9),us(9,"div",10),ns(10,DL,1,5,"uds-table",12),ns(11,AL,1,5,"uds-table",13),ls(),ls(),us(12,"mat-tab"),ns(13,IL,2,0,"ng-template",9),us(14,"div",10),us(15,"uds-table",14),gs("loaded",(function(t){return xn(n),Cs().onLoad(t)}))("newAction",(function(t){return xn(n),Cs().onNewGroup(t)}))("editAction",(function(t){return xn(n),Cs().onEditGroup(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteGroup(t)}))("customButtonAction",(function(t){return xn(n),Cs().onGroupInformation(t)})),ls(),ls(),ls(),us(16,"mat-tab"),ns(17,OL,2,0,"ng-template",9),us(18,"div",10),cs(19,"uds-logs-table",15),ls(),ls(),ls(),ls(),ls()}if(2&t){var i=Cs();Yr(2),os("selectedIndex",i.selectedTab)("@.disabled",!0),Yr(4),os("ngIf",i.authenticator&&i.gui),Yr(4),os("ngIf",i.authenticator.type_info.canCreateUsers),Yr(1),os("ngIf",!i.authenticator.type_info.canCreateUsers),Yr(4),os("rest",i.groups)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("tableId","authenticators-d-groups"+i.authenticator.id),Yr(4),os("rest",i.rest.authenticators)("itemId",i.authenticator.id)("tableId","authenticators-d-log"+i.authenticator.id)}}var RL=function(t){return["/authenticators",t]},ML=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:gA.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).subscribe((function(e){t.authenticator=e,t.rest.authenticators.gui(e.type).subscribe((function(e){t.gui=e}))}))},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("user"),n=this.route.snapshot.paramMap.get("group");t.table.selectElement("id",e||n)}},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onNewUser=function(t){AF.launch(this.api,this.authenticator).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditUser=function(t){AF.launch(this.api,this.authenticator,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteUser=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user"))},t.prototype.onNewGroup=function(t){iL.launch(this.api,this.authenticator,t.param.type).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditGroup=function(t){iL.launch(this.api,this.authenticator,t.param.type,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete group"))},t.prototype.onUserInformation=function(t){fL.launch(this.api,this.users,t.table.selection.selected[0])},t.prototype.onGroupInformation=function(t){CL.launch(this.api,this.groups,t.table.selection.selected[0])},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"a",2),us(3,"i",3),Ks(4,"arrow_back"),ls(),ls(),Ks(5," \xa0"),cs(6,"img",4),Ks(7),ls(),ns(8,TL,20,13,"div",5),ls()),2&t&&(Yr(2),os("routerLink",cl(4,RL,e.authenticator?e.authenticator.id:"")),Yr(4),os("src",e.api.staticURL("admin/img/icons/services.png"),Er),Yr(1),$s(" \xa0",null==e.authenticator?null:e.authenticator.name," "),Yr(1),os("ngIf",e.authenticator))},directives:[xg,ld,TD,kD,gD,TP,qP,jx,XP],styles:[""]}),t}(),PL=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("osmanager")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New OS Manager"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit OS Manager"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete OS Manager"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-osmanagers"]],decls:2,vars:4,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"div"),us(1,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls(),ls()),2&t&&(Yr(1),os("rest",e.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0))},directives:[TP],styles:[""]}),t}(),FL=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("transport")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Transport"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Transport"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Transport"))},t.prototype.processElement=function(t){try{t.allowed_oss=t.allowed_oss.map((function(t){return t.id})).join(", ")}catch(e){t.allowed_oss=""}},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-transports"]],decls:2,vars:6,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"div"),us(1,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls(),ls()),2&t&&(Yr(1),os("rest",e.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",e.processElement))},directives:[TP],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),t}(),LL=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("network")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Network"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Network"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Network"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("network"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-networks"]],decls:2,vars:4,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"div"),us(1,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls(),ls()),2&t&&(Yr(1),os("rest",e.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0))},directives:[TP],styles:[""]}),t}(),NL=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("proxy")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Proxy"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Proxy"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Proxy"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("proxy"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-proxies"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"div"),us(1,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls(),ls()),2&t&&(Yr(1),os("rest",e.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0))},directives:[TP],styles:[""]}),t}(),VL=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[_A.getGotoButton("provider","provider_id"),_A.getGotoButton("service","provider_id","service_id"),_A.getGotoButton("osmanager","osmanager_id"),_A.getGotoButton("poolgroup","pool_group_id")],this.editing=!1}return t.prototype.ngOnInit=function(){},t.prototype.onChange=function(t){var e=this,n=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===t.on||"service_id"===t.on.field.name){if(""===t.all.service_id.value)return t.all.osmanager_id.gui.values.length=0,void n.forEach((function(e){return t.all[e].gui.rdonly=!0}));this.rest.providers.service(t.all.service_id.value).subscribe((function(i){t.all.allow_users_reset.gui.rdonly=!i.info.can_reset,t.all.osmanager_id.gui.values.length=0,e.editing||(t.all.osmanager_id.gui.rdonly=!i.info.needs_manager),!0===i.info.needs_manager?e.rest.osManagers.overview().subscribe((function(e){e.forEach((function(e){e.servicesTypes.forEach((function(n){i.info.servicesTypeProvided.includes(n)&&t.all.osmanager_id.gui.values.push({id:e.id,text:e.name})}))})),t.all.osmanager_id.value=t.all.osmanager_id.gui.values.length>0?t.all.osmanager_id.value||t.all.osmanager_id.gui.values[0].id:""})):(t.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),t.all.osmanager_id.value=""),n.forEach((function(e){return t.all[e].gui.rdonly=!i.info.uses_cache})),t.all.cache_l2_srvs.gui.rdonly=!1===i.info.uses_cache||!1===i.info.uses_cache_l2,t.all.publish_on_save&&(t.all.publish_on_save.gui.rdonly=!i.info.needs_publication)})),n.forEach((function(e){t.all[e].gui.rdonly=!0}))}},t.prototype.onNew=function(t){var e=this;this.editing=!1,this.api.gui.forms.typedNewForm(t,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:Yx.CHECKBOX,order:150,defvalue:"true"}}]).subscribe((function(t){return e.onChange(t)}))},t.prototype.onEdit=function(t){var e=this;this.editing=!0,this.api.gui.forms.typedEditForm(t,django.gettext("Edit Service Pool"),!1).subscribe((function(t){return e.onChange(t)}))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service pool"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.show_transports=this.api.yesno(t.show_transports),t.restrained?(t.name='warning '+this.api.gui.icon(t.info.icon)+t.name,t.state="T"):(t.name=this.api.gui.icon(t.info.icon)+t.name,t.meta_member.length>0&&(t.state="V")),t.name=this.api.safeString(t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onDetail=function(t){this.api.navigation.gotoServicePoolDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools"]],decls:1,vars:6,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(us(0,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),ls()),2&t&&os("rest",e.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("customButtons",e.customButtons)},directives:[TP],styles:[".mat-column-state, .mat-column-usage, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:10rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-cell{color:#d65014!important}"]}),t}();function BL(t,e){if(1&t&&(us(0,"mat-option",8),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function jL(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",9),gs("changed",(function(t){return xn(n),Cs().userFilter=t})),ls()}}function zL(t,e){if(1&t&&(us(0,"mat-option",8),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}var HL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=i.userService,this.userServices=i.userServices}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:i},disableClose:!1}).componentInstance.onSave},t.prototype.authChanged=function(){var t=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe((function(e){t.users=e}))},t.prototype.ngOnInit=function(){var t=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe((function(e){t.auths=e,t.authChanged()}))},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(""===this.userFilter)return this.users;var e=new Array;return this.users.forEach((function(n){(""===t.userFilter||n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase()))&&e.push(n)})),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Change owner of assigned service"),ls(),ls(),us(3,"mat-dialog-content"),us(4,"div",1),us(5,"mat-form-field"),us(6,"mat-label"),us(7,"uds-translate"),Ks(8,"Authenticator"),ls(),ls(),us(9,"mat-select",2),gs("ngModelChange",(function(t){return e.authId=t}))("selectionChange",(function(t){return e.changeAuth(t)})),ns(10,BL,2,2,"mat-option",3),ls(),ls(),us(11,"mat-form-field"),us(12,"mat-label"),us(13,"uds-translate"),Ks(14,"User"),ls(),ls(),us(15,"mat-select",4),gs("ngModelChange",(function(t){return e.userId=t})),ns(16,jL,1,0,"uds-mat-select-search",5),ns(17,zL,2,2,"mat-option",3),ls(),ls(),ls(),ls(),us(18,"mat-dialog-actions"),us(19,"button",6),us(20,"uds-translate"),Ks(21,"Cancel"),ls(),ls(),us(22,"button",7),gs("click",(function(){return e.save()})),us(23,"uds-translate"),Ks(24,"Ok"),ls(),ls(),ls()),2&t&&(Yr(9),os("ngModel",e.authId),Yr(1),os("ngForOf",e.auths),Yr(5),os("ngModel",e.userId),Yr(1),os("ngIf",e.users.length>10),Yr(1),os("ngForOf",e.filteredUsers()))},directives:[Ex,jx,Dx,ZI,BI,mO,uS,gE,sd,ld,Ax,Nx,Sx,ox,jR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function UL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New access rule for"),ls())}function WL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Edit access rule for"),ls())}function qL(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Default fallback access for"),ls())}function GL(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",11),gs("changed",(function(t){return xn(n),Cs(2).calendarsFilter=t})),ls()}}function YL(t,e){if(1&t&&(us(0,"mat-option",12),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function KL(t,e){if(1&t){var n=ps();hs(0),us(1,"mat-form-field"),us(2,"mat-label"),us(3,"uds-translate"),Ks(4,"Priority"),ls(),ls(),us(5,"input",8),gs("ngModelChange",(function(t){return xn(n),Cs().accessRule.priority=t})),ls(),ls(),us(6,"mat-form-field"),us(7,"mat-label"),us(8,"uds-translate"),Ks(9,"Calendar"),ls(),ls(),us(10,"mat-select",3),gs("ngModelChange",(function(t){return xn(n),Cs().accessRule.calendarId=t})),ns(11,GL,1,0,"uds-mat-select-search",9),ns(12,YL,2,2,"mat-option",10),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(5),os("ngModel",i.accessRule.priority),Yr(5),os("ngModel",i.accessRule.calendarId),Yr(1),os("ngIf",i.calendars.length>10),Yr(1),os("ngForOf",i.filtered(i.calendars,i.calendarsFilter))}}var ZL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.calendars=[],this.calendarsFilter="",this.pool=i.pool,this.model=i.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},i.accessRule&&(this.accessRule.id=i.accessRule.id)}return t.launch=function(e,n,i,r){var a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i,accessRule:r},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.calendars.summary().subscribe((function(e){t.calendars=e})),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe((function(e){t.accessRule=e})):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe((function(e){return t.accessRule.access=e}))},t.prototype.filtered=function(t,e){return""===e?t:t.filter((function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this,e=function(){t.dialogRef.close(),t.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(e)},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(us(0,"h4",0),ns(1,UL,2,0,"uds-translate",1),ns(2,WL,2,0,"uds-translate",1),ns(3,qL,2,0,"uds-translate",1),Ks(4),ls(),us(5,"mat-dialog-content"),us(6,"div",2),ns(7,KL,13,4,"ng-container",1),us(8,"mat-form-field"),us(9,"mat-label"),us(10,"uds-translate"),Ks(11,"Action"),ls(),ls(),us(12,"mat-select",3),gs("ngModelChange",(function(t){return e.accessRule.access=t})),us(13,"mat-option",4),Ks(14," ALLOW "),ls(),us(15,"mat-option",5),Ks(16," DENY "),ls(),ls(),ls(),ls(),ls(),us(17,"mat-dialog-actions"),us(18,"button",6),us(19,"uds-translate"),Ks(20,"Cancel"),ls(),ls(),us(21,"button",7),gs("click",(function(){return e.save()})),us(22,"uds-translate"),Ks(23,"Ok"),ls(),ls(),ls()),2&t&&(Yr(1),os("ngIf",void 0===e.accessRule.id),Yr(1),os("ngIf",void 0!==e.accessRule.id&&-1!==e.accessRule.id),Yr(1),os("ngIf",-1===e.accessRule.id),Yr(1),$s(" ",e.pool.name,"\n"),Yr(3),os("ngIf",-1!==e.accessRule.id),Yr(5),os("ngModel",e.accessRule.access))},directives:[Ex,ld,Dx,ZI,BI,jx,mO,uS,gE,ox,Ax,Nx,Sx,PR,wS,eS,sd,jR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function $L(t,e){if(1&t&&(us(0,"mat-option",8),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function XL(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",9),gs("changed",(function(t){return xn(n),Cs().groupFilter=t})),ls()}}function QL(t,e){if(1&t&&(hs(0),Ks(1),ds()),2&t){var n=Cs().$implicit;Yr(1),$s(" (",n.comments,")")}}function JL(t,e){if(1&t&&(us(0,"mat-option",8),Ks(1),ns(2,QL,2,1,"ng-container",10),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name,""),Yr(1),os("ngIf",n.comments)}}var tN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=i.pool,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i},disableClose:!1}).componentInstance.onSave},t.prototype.authChanged=function(){var t=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe((function(e){t.groups=e}))},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe((function(e){t.auths=e,t.authChanged()}))},t.prototype.changeAuth=function(t){this.groupId="",this.authChanged()},t.prototype.filteredGroups=function(){var t=this;return""===this.groupFilter?this.groups:this.groups.filter((function(e){return e.name.toLocaleLowerCase().includes(t.groupFilter.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-add-group"]],decls:26,vars:6,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"],[4,"ngIf"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"New group for"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),us(5,"div",1),us(6,"mat-form-field"),us(7,"mat-label"),us(8,"uds-translate"),Ks(9,"Authenticator"),ls(),ls(),us(10,"mat-select",2),gs("ngModelChange",(function(t){return e.authId=t}))("selectionChange",(function(t){return e.changeAuth(t)})),ns(11,$L,2,2,"mat-option",3),ls(),ls(),us(12,"mat-form-field"),us(13,"mat-label"),us(14,"uds-translate"),Ks(15,"Group"),ls(),ls(),us(16,"mat-select",4),gs("ngModelChange",(function(t){return e.groupId=t})),ns(17,XL,1,0,"uds-mat-select-search",5),ns(18,JL,3,3,"mat-option",3),ls(),ls(),ls(),ls(),us(19,"mat-dialog-actions"),us(20,"button",6),us(21,"uds-translate"),Ks(22,"Cancel"),ls(),ls(),us(23,"button",7),gs("click",(function(){return e.save()})),us(24,"uds-translate"),Ks(25,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.pool.name,"\n"),Yr(7),os("ngModel",e.authId),Yr(1),os("ngForOf",e.auths),Yr(5),os("ngModel",e.groupId),Yr(1),os("ngIf",e.groups.length>10),Yr(1),os("ngForOf",e.filteredGroups()))},directives:[Ex,jx,Dx,ZI,BI,mO,uS,gE,sd,ld,Ax,Nx,Sx,ox,jR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function eN(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",7),gs("changed",(function(t){return xn(n),Cs().transportsFilter=t})),ls()}}function nN(t,e){if(1&t&&(hs(0),Ks(1),ds()),2&t){var n=Cs().$implicit;Yr(1),$s(" (",n.comments,")")}}function iN(t,e){if(1&t&&(us(0,"mat-option",8),Ks(1),ns(2,nN,2,1,"ng-container",9),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name,""),Yr(1),os("ngIf",n.comments)}}var rN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.transports.summary().subscribe((function(e){t.transports=e.filter((function(e){return t.servicePool.info.allowedProtocols.includes(e.protocol)}))}))},t.prototype.filteredTransports=function(){var t=this;return""===this.transportsFilter?this.transports:this.transports.filter((function(e){return e.name.toLocaleLowerCase().includes(t.transportsFilter.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[4,"ngIf"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"New transport for"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),us(5,"div",1),us(6,"mat-form-field"),us(7,"mat-label"),us(8,"uds-translate"),Ks(9,"Transport"),ls(),ls(),us(10,"mat-select",2),gs("ngModelChange",(function(t){return e.transportId=t})),ns(11,eN,1,0,"uds-mat-select-search",3),ns(12,iN,3,3,"mat-option",4),ls(),ls(),ls(),ls(),us(13,"mat-dialog-actions"),us(14,"button",5),us(15,"uds-translate"),Ks(16,"Cancel"),ls(),ls(),us(17,"button",6),gs("click",(function(){return e.save()})),us(18,"uds-translate"),Ks(19,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.servicePool.name,"\n"),Yr(7),os("ngModel",e.transportId),Yr(1),os("ngIf",e.transports.length>10),Yr(1),os("ngForOf",e.filteredTransports()))},directives:[Ex,jx,Dx,ZI,BI,mO,uS,gE,ld,sd,Ax,Nx,Sx,jR,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),aN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.reason="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){},t.prototype.save=function(){var t=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"New publication for"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),us(5,"div",1),us(6,"mat-form-field"),us(7,"mat-label"),us(8,"uds-translate"),Ks(9,"Comments"),ls(),ls(),us(10,"input",2),gs("ngModelChange",(function(t){return e.reason=t})),ls(),ls(),ls(),ls(),us(11,"mat-dialog-actions"),us(12,"button",3),us(13,"uds-translate"),Ks(14,"Cancel"),ls(),ls(),us(15,"button",4),gs("click",(function(){return e.save()})),us(16,"uds-translate"),Ks(17,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.servicePool.name,"\n"),Yr(7),os("ngModel",e.reason))},directives:[Ex,jx,Dx,ZI,BI,PR,eS,uS,gE,Ax,Nx,Sx],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),oN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1})},t.prototype.ngOnInit=function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Changelog of"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),cs(5,"uds-table",1,2),ls(),us(7,"mat-dialog-actions"),us(8,"button",3),us(9,"uds-translate"),Ks(10,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.servicePool.name,"\n"),Yr(2),os("rest",e.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+e.servicePool.id))},directives:[Ex,jx,Dx,TP,Ax,Nx,Sx],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function sN(t,e){1&t&&(hs(0),us(1,"uds-translate"),Ks(2,"Edit action for"),ls(),ds())}function uN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New action for"),ls())}function lN(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",14),gs("changed",(function(t){return xn(n),Cs().calendarsFilter=t})),ls()}}function cN(t,e){if(1&t&&(us(0,"mat-option",15),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function hN(t,e){if(1&t&&(us(0,"mat-option",15),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.description," ")}}function dN(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",14),gs("changed",(function(t){return xn(n),Cs(2).transportsFilter=t})),ls()}}function fN(t,e){if(1&t&&(us(0,"mat-option",15),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function pN(t,e){if(1&t){var n=ps();hs(0),us(1,"mat-form-field"),us(2,"mat-label"),us(3,"uds-translate"),Ks(4,"Transport"),ls(),ls(),us(5,"mat-select",4),gs("ngModelChange",(function(t){return xn(n),Cs().paramValue=t})),ns(6,dN,1,0,"uds-mat-select-search",5),ns(7,fN,2,2,"mat-option",6),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(5),os("ngModel",i.paramValue),Yr(1),os("ngIf",i.transports.length>10),Yr(1),os("ngForOf",i.filtered(i.transports,i.transportsFilter))}}function mN(t,e){if(1&t&&(us(0,"mat-option",15),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function vN(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",14),gs("changed",(function(t){return xn(n),Cs(2).groupsFilter=t})),ls()}}function gN(t,e){if(1&t&&(us(0,"mat-option",15),Ks(1),ls()),2&t){var n=e.$implicit;os("value",Cs(2).authenticator+"@"+n.id),Yr(1),$s(" ",n.name," ")}}function yN(t,e){if(1&t){var n=ps();hs(0),us(1,"mat-form-field"),us(2,"mat-label"),us(3,"uds-translate"),Ks(4,"Authenticator"),ls(),ls(),us(5,"mat-select",10),gs("ngModelChange",(function(t){return xn(n),Cs().authenticator=t}))("valueChange",(function(t){return xn(n),Cs().changedAuthenticator(t)})),ns(6,mN,2,2,"mat-option",6),ls(),ls(),us(7,"mat-form-field"),us(8,"mat-label"),us(9,"uds-translate"),Ks(10,"Group"),ls(),ls(),us(11,"mat-select",4),gs("ngModelChange",(function(t){return xn(n),Cs().paramValue=t})),ns(12,vN,1,0,"uds-mat-select-search",5),ns(13,gN,2,2,"mat-option",6),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(5),os("ngModel",i.authenticator),Yr(1),os("ngForOf",i.authenticators),Yr(5),os("ngModel",i.paramValue),Yr(1),os("ngIf",i.groups.length>10),Yr(1),os("ngForOf",i.filtered(i.groups,i.groupsFilter))}}function _N(t,e){if(1&t){var n=ps();hs(0),us(1,"div",8),us(2,"span",16),Ks(3),ls(),Ks(4,"\xa0 "),us(5,"mat-slide-toggle",4),gs("ngModelChange",(function(t){return xn(n),Cs().paramValue=t})),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(3),Zs(i.parameter.description),Yr(2),os("ngModel",i.paramValue)}}function bN(t,e){if(1&t){var n=ps();hs(0),us(1,"mat-form-field"),us(2,"mat-label"),Ks(3),ls(),us(4,"input",17),gs("ngModelChange",(function(t){return xn(n),Cs().paramValue=t})),ls(),ls(),ds()}if(2&t){var i=Cs();Yr(3),$s(" ",i.parameter.description," "),Yr(1),os("type",i.parameter.type)("ngModel",i.paramValue)}}var kN=function(){return["transport","group","bool"]},wN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=i.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==i.scheduledAction&&(this.scheduledAction.id=i.scheduledAction.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe((function(e){return t.authenticators=e})),this.rest.transports.summary().subscribe((function(e){return t.transports=e})),this.rest.calendars.summary().subscribe((function(e){return t.calendars=e})),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe((function(e){t.actionList=e,t.actionList.forEach((function(e){t.paramsDict[e.id]=e.params[0]})),void 0!==t.scheduledAction.id&&t.rest.servicesPools.detail(t.servicePool.id,"actions").get(t.scheduledAction.id).subscribe((function(e){t.scheduledAction=e,t.changedAction(t.scheduledAction.action)}))}))},t.prototype.filtered=function(t,e){return""===e?t:t.filter((function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))},t.prototype.changedAction=function(t){if(this.parameter=this.paramsDict[t],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){var e=this.paramValue.split("@");2!==e.length&&(e=["",""]),this.authenticator=e[0],this.changedAuthenticator(this.authenticator)}},t.prototype.changedAuthenticator=function(t){var e=this;t&&this.rest.authenticators.detail(t,"groups").summary().subscribe((function(t){return e.groups=t}))},t.prototype.save=function(){var t=this;this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-scheduled-action"]],decls:42,vars:16,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-atstart"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(us(0,"h4",0),ns(1,sN,3,0,"ng-container",1),ns(2,uN,2,0,"ng-template",null,2,Hl),Ks(4),ls(),us(5,"mat-dialog-content"),us(6,"div",3),us(7,"mat-form-field"),us(8,"mat-label"),us(9,"uds-translate"),Ks(10,"Calendar"),ls(),ls(),us(11,"mat-select",4),gs("ngModelChange",(function(t){return e.scheduledAction.calendarId=t})),ns(12,lN,1,0,"uds-mat-select-search",5),ns(13,cN,2,2,"mat-option",6),ls(),ls(),us(14,"mat-form-field"),us(15,"mat-label"),us(16,"uds-translate"),Ks(17,"Events offset (minutes)"),ls(),ls(),us(18,"input",7),gs("ngModelChange",(function(t){return e.scheduledAction.eventsOffset=t})),ls(),ls(),us(19,"div",8),us(20,"span",9),us(21,"uds-translate"),Ks(22,"At the beginning of the interval?"),ls(),ls(),us(23,"mat-slide-toggle",4),gs("ngModelChange",(function(t){return e.scheduledAction.atStart=t})),Ks(24),ls(),ls(),us(25,"mat-form-field"),us(26,"mat-label"),us(27,"uds-translate"),Ks(28,"Action"),ls(),ls(),us(29,"mat-select",10),gs("ngModelChange",(function(t){return e.scheduledAction.action=t}))("valueChange",(function(t){return e.changedAction(t)})),ns(30,hN,2,2,"mat-option",6),ls(),ls(),ns(31,pN,8,3,"ng-container",11),ns(32,yN,14,5,"ng-container",11),ns(33,_N,6,2,"ng-container",11),ns(34,bN,5,3,"ng-container",11),ls(),ls(),us(35,"mat-dialog-actions"),us(36,"button",12),us(37,"uds-translate"),Ks(38,"Cancel"),ls(),ls(),us(39,"button",13),gs("click",(function(){return e.save()})),us(40,"uds-translate"),Ks(41,"Ok"),ls(),ls(),ls()),2&t){var n=is(3);Yr(1),os("ngIf",void 0!==e.scheduledAction.id)("ngIfElse",n),Yr(3),$s(" ",e.servicePool.name,"\n"),Yr(7),os("ngModel",e.scheduledAction.calendarId),Yr(1),os("ngIf",e.calendars.length>10),Yr(1),os("ngForOf",e.filtered(e.calendars,e.calendarsFilter)),Yr(5),os("ngModel",e.scheduledAction.eventsOffset),Yr(5),os("ngModel",e.scheduledAction.atStart),Yr(1),$s(" ",e.api.yesno(e.scheduledAction.atStart)," "),Yr(5),os("ngModel",e.scheduledAction.action),Yr(1),os("ngForOf",e.actionList),Yr(1),os("ngIf","transport"===(null==e.parameter?null:e.parameter.type)),Yr(1),os("ngIf","group"===(null==e.parameter?null:e.parameter.type)),Yr(1),os("ngIf","bool"===(null==e.parameter?null:e.parameter.type)),Yr(1),os("ngIf",(null==e.parameter?null:e.parameter.type)&&!ll(15,kN).includes(e.parameter.type))}},directives:[Ex,ld,Dx,ZI,BI,jx,mO,uS,gE,sd,PR,wS,eS,BF,Ax,Nx,Sx,jR,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}(),CN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.userService=i.userService,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:i},disableClose:!1})},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Logs of"),ls(),Ks(3),ls(),us(4,"mat-dialog-content"),cs(5,"uds-logs-table",1),ls(),us(6,"mat-dialog-actions"),us(7,"button",2),us(8,"uds-translate"),Ks(9,"Ok"),ls(),ls(),ls()),2&t&&(Yr(3),$s(" ",e.userService.name,"\n"),Yr(2),os("rest",e.model)("itemId",e.userService.id)("tableId","servicePools-d-uslog"+e.userService.id))},directives:[Ex,jx,Dx,qP,Ax,Nx,Sx],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function xN(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",8),gs("changed",(function(t){return xn(n),Cs().assignablesServicesFilter=t})),ls()}}function SN(t,e){if(1&t&&(us(0,"mat-option",9),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.text," ")}}function EN(t,e){if(1&t&&(us(0,"mat-option",9),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}function DN(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",8),gs("changed",(function(t){return xn(n),Cs().userFilter=t})),ls()}}function AN(t,e){if(1&t&&(us(0,"mat-option",9),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}var IN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.authChanged=function(){var t=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe((function(e){t.users=e}))},t.prototype.ngOnInit=function(){var t=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe((function(e){t.auths=e,t.authChanged()})),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe((function(e){t.assignablesServices=e}))},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(""===this.userFilter)return this.users;var e=new Array;return this.users.forEach((function(n){n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase())&&e.push(n)})),e},t.prototype.filteredAssignables=function(){var t=this;if(""===this.assignablesServicesFilter)return this.assignablesServices;var e=new Array;return this.assignablesServices.forEach((function(n){n.text.toLocaleLowerCase().includes(t.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)})),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe((function(e){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(us(0,"h4",0),us(1,"uds-translate"),Ks(2,"Assign service to user manually"),ls(),ls(),us(3,"mat-dialog-content"),us(4,"div",1),us(5,"mat-form-field"),us(6,"mat-label"),us(7,"uds-translate"),Ks(8,"Service"),ls(),ls(),us(9,"mat-select",2),gs("ngModelChange",(function(t){return e.serviceId=t})),ns(10,xN,1,0,"uds-mat-select-search",3),ns(11,SN,2,2,"mat-option",4),ls(),ls(),us(12,"mat-form-field"),us(13,"mat-label"),us(14,"uds-translate"),Ks(15,"Authenticator"),ls(),ls(),us(16,"mat-select",5),gs("ngModelChange",(function(t){return e.authId=t}))("selectionChange",(function(t){return e.changeAuth(t)})),ns(17,EN,2,2,"mat-option",4),ls(),ls(),us(18,"mat-form-field"),us(19,"mat-label"),us(20,"uds-translate"),Ks(21,"User"),ls(),ls(),us(22,"mat-select",2),gs("ngModelChange",(function(t){return e.userId=t})),ns(23,DN,1,0,"uds-mat-select-search",3),ns(24,AN,2,2,"mat-option",4),ls(),ls(),ls(),ls(),us(25,"mat-dialog-actions"),us(26,"button",6),us(27,"uds-translate"),Ks(28,"Cancel"),ls(),ls(),us(29,"button",7),gs("click",(function(){return e.save()})),us(30,"uds-translate"),Ks(31,"Ok"),ls(),ls(),ls()),2&t&&(Yr(9),os("ngModel",e.serviceId),Yr(1),os("ngIf",e.assignablesServices.length>10),Yr(1),os("ngForOf",e.filteredAssignables()),Yr(5),os("ngModel",e.authId),Yr(1),os("ngForOf",e.auths),Yr(5),os("ngModel",e.userId),Yr(1),os("ngIf",e.users.length>10),Yr(1),os("ngForOf",e.filteredUsers()))},directives:[Ex,jx,Dx,ZI,BI,mO,uS,gE,ld,sd,Ax,Nx,Sx,jR,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function ON(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Summary"),ls())}function TN(t,e){if(1&t&&cs(0,"uds-information",20),2&t){var n=Cs(2);os("value",n.servicePool)("gui",n.gui)}}function RN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Assigned services"),ls())}function MN(t,e){if(1&t){var n=ps();us(0,"uds-table",21),gs("customButtonAction",(function(t){return xn(n),Cs(2).onCustomAssigned(t)}))("deleteAction",(function(t){return xn(n),Cs(2).onDeleteAssigned(t)})),ls()}if(2&t){var i=Cs(2);os("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)}}function PN(t,e){if(1&t){var n=ps();us(0,"uds-table",22),gs("customButtonAction",(function(t){return xn(n),Cs(2).onCustomAssigned(t)}))("newAction",(function(t){return xn(n),Cs(2).onNewAssigned(t)}))("deleteAction",(function(t){return xn(n),Cs(2).onDeleteAssigned(t)})),ls()}if(2&t){var i=Cs(2);os("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)}}function FN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Cache"),ls())}function LN(t,e){if(1&t){var n=ps();us(0,"mat-tab"),ns(1,FN,2,0,"ng-template",9),us(2,"div",10),us(3,"uds-table",23),gs("customButtonAction",(function(t){return xn(n),Cs(2).onCustomCached(t)}))("deleteAction",(function(t){return xn(n),Cs(2).onDeleteCache(t)})),ls(),ls(),ls()}if(2&t){var i=Cs(2);Yr(3),os("rest",i.cache)("multiSelect",!0)("allowExport",!0)("onItem",i.processsCacheElement)("tableId","servicePools-d-cache"+i.servicePool.id)("customButtons",i.customButtonsCachedServices)}}function NN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Groups"),ls())}function VN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Transports"),ls())}function BN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Publications"),ls())}function jN(t,e){if(1&t){var n=ps();us(0,"mat-tab"),ns(1,BN,2,0,"ng-template",9),us(2,"div",10),us(3,"uds-table",24),gs("customButtonAction",(function(t){return xn(n),Cs(2).onCustomPublication(t)}))("newAction",(function(t){return xn(n),Cs(2).onNewPublication(t)}))("rowSelected",(function(t){return xn(n),Cs(2).onPublicationRowSelect(t)})),ls(),ls(),ls()}if(2&t){var i=Cs(2);Yr(3),os("rest",i.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+i.servicePool.id)("customButtons",i.customButtonsPublication)}}function zN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Scheduled actions"),ls())}function HN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Access calendars"),ls())}function UN(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Logs"),ls())}function WN(t,e){if(1&t){var n=ps();us(0,"div",6),us(1,"div",7),us(2,"mat-tab-group",8),gs("selectedIndexChange",(function(t){return xn(n),Cs().selectedTab=t})),us(3,"mat-tab"),ns(4,ON,2,0,"ng-template",9),us(5,"div",10),ns(6,TN,1,2,"uds-information",11),ls(),ls(),us(7,"mat-tab"),ns(8,RN,2,0,"ng-template",9),us(9,"div",10),ns(10,MN,1,6,"uds-table",12),ns(11,PN,1,6,"ng-template",null,13,Hl),ls(),ls(),ns(13,LN,4,6,"mat-tab",14),us(14,"mat-tab"),ns(15,NN,2,0,"ng-template",9),us(16,"div",10),us(17,"uds-table",15),gs("newAction",(function(t){return xn(n),Cs().onNewGroup(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteGroup(t)})),ls(),ls(),ls(),us(18,"mat-tab"),ns(19,VN,2,0,"ng-template",9),us(20,"div",10),us(21,"uds-table",16),gs("newAction",(function(t){return xn(n),Cs().onNewTransport(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteTransport(t)})),ls(),ls(),ls(),ns(22,jN,4,5,"mat-tab",14),us(23,"mat-tab"),ns(24,zN,2,0,"ng-template",9),us(25,"div",10),us(26,"uds-table",17),gs("customButtonAction",(function(t){return xn(n),Cs().onCustomScheduleAction(t)}))("newAction",(function(t){return xn(n),Cs().onNewScheduledAction(t)}))("editAction",(function(t){return xn(n),Cs().onEditScheduledAction(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteScheduledAction(t)})),ls(),ls(),ls(),us(27,"mat-tab"),ns(28,HN,2,0,"ng-template",9),us(29,"div",10),us(30,"uds-table",18),gs("newAction",(function(t){return xn(n),Cs().onNewAccessCalendar(t)}))("editAction",(function(t){return xn(n),Cs().onEditAccessCalendar(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteAccessCalendar(t)}))("loaded",(function(t){return xn(n),Cs().onAccessCalendarLoad(t)})),ls(),ls(),ls(),us(31,"mat-tab"),ns(32,UN,2,0,"ng-template",9),us(33,"div",10),cs(34,"uds-logs-table",19),ls(),ls(),ls(),ls(),ls()}if(2&t){var i=is(12),r=Cs();Yr(2),os("selectedIndex",r.selectedTab)("@.disabled",!0),Yr(4),os("ngIf",r.servicePool&&r.gui),Yr(4),os("ngIf",!1===r.servicePool.info.must_assign_manually)("ngIfElse",i),Yr(3),os("ngIf",r.cache),Yr(4),os("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsGroups)("tableId","servicePools-d-groups"+r.servicePool.id),Yr(4),os("rest",r.transports)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsTransports)("tableId","servicePools-d-transports"+r.servicePool.id),Yr(1),os("ngIf",r.publications),Yr(4),os("rest",r.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+r.servicePool.id)("customButtons",r.customButtonsScheduledAction)("onItem",r.processsCalendarOrScheduledElement),Yr(4),os("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonAccessCalendars)("tableId","servicePools-d-access"+r.servicePool.id)("onItem",r.processsCalendarOrScheduledElement),Yr(4),os("rest",r.rest.servicesPools)("itemId",r.servicePool.id)("tableId","servicePools-d-log"+r.servicePool.id)}}var qN=function(t){return["/pools","service-pools",t]},GN='event'+django.gettext("Logs")+"",YN='schedule'+django.gettext("Launch now")+"",KN='perm_identity'+django.gettext("Change owner")+"",ZN='perm_identity'+django.gettext("Assign service")+"",$N='cancel'+django.gettext("Cancel")+"",XN='event'+django.gettext("Changelog")+"",QN=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:YN,type:gA.SINGLE_SELECT},_A.getGotoButton("calendar","calendarId")],this.customButtonAccessCalendars=[_A.getGotoButton("calendar","calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:KN,type:gA.SINGLE_SELECT},{id:"log",html:GN,type:gA.SINGLE_SELECT},_A.getGotoButton("user","owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:GN,type:gA.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:$N,type:gA.SINGLE_SELECT},{id:"changelog",html:XN,type:gA.ALWAYS}],this.customButtonsGroups=[_A.getGotoButton("group","auth_id","id")],this.customButtonsTransports=[_A.getGotoButton("transport","id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return t.cleanInvalidSelections=function(t){return t.table.selection.selected.filter((function(t){return["E","R","M","S","C"].includes(t.state)})).forEach((function(e){return t.table.selection.deselect(e)})),t.table.selection.isEmpty()},t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),this.rest.servicesPools.get(e).subscribe((function(n){t.servicePool=n,t.cache=t.servicePool.info.uses_cache?t.rest.servicesPools.detail(e,"cache"):null,t.publications=t.servicePool.info.needs_publication?t.rest.servicesPools.detail(e,"publications"):null,t.servicePool.info.can_list_assignables&&t.customButtonsAssignedServices.push({id:"assign-service",html:ZN,type:gA.ALWAYS}),t.rest.servicesPools.gui().subscribe((function(e){t.gui=e.filter((function(e){return!(!1===t.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(e.name)||!1===t.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===e.name||!1===t.servicePool.info.needs_manager&&"osmanager_id"===e.name)}))}))}))},t.prototype.onNewAssigned=function(t){},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;HL.launch(this.api,e,this.assignedServices).subscribe((function(e){return t.table.overview()}))}else"log"===t.param.id?CN.launch(this.api,e,this.assignedServices):"assign-service"===t.param.id&&IN.launch(this.api,this.servicePool).subscribe((function(e){return t.table.overview()}))},t.prototype.onCustomCached=function(t){"log"===t.param.id&&CN.launch(this.api,t.table.selection.selected[0],this.cache)},t.prototype.processsAssignedElement=function(t){t.in_use=this.api.yesno(t.in_use),t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onDeleteAssigned=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))},t.prototype.onDeleteCache=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))},t.prototype.processsCacheElement=function(t){t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onNewGroup=function(t){tN.launch(this.api,this.servicePool,this.groups).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewTransport=function(t){rN.launch(this.api,this.servicePool).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteTransport=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned transport"))},t.prototype.onNewPublication=function(t){aN.launch(this.api,this.servicePool).subscribe((function(e){t.table.overview()}))},t.prototype.onPublicationRowSelect=function(t){1===t.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(t.table.selection.selected[0].state))},t.prototype.onCustomPublication=function(t){var e=this;"cancel-publication"===t.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe((function(n){n&&e.publications.invoke(t.table.selection.selected[0].id+"/cancel").subscribe((function(n){e.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()}))})):"changelog"===t.param.id&&oN.launch(this.api,this.servicePool)},t.prototype.onNewScheduledAction=function(t){wN.launch(this.api,this.servicePool).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditScheduledAction=function(t){wN.launch(this.api,this.servicePool,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteScheduledAction=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete scheduled action"))},t.prototype.onCustomScheduleAction=function(t){var e=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe((function(n){n&&e.scheduledActions.invoke(t.table.selection.selected[0].id+"/execute").subscribe((function(){e.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()}))}))},t.prototype.onNewAccessCalendar=function(t){ZL.launch(this.api,this.servicePool,this.accessCalendars).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditAccessCalendar=function(t){ZL.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteAccessCalendar=function(t){-1!==t.table.selection.selected[0].id?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe((function(n){var i=t.table.dataSource.data.filter((function(t){return!0}));i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i}))},t.prototype.processsCalendarOrScheduledElement=function(t){t.name=t.calendar,t.atStart=this.api.yesno(t.atStart)},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","customButtonAction","newAction","rowSelected"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"a",2),us(3,"i",3),Ks(4,"arrow_back"),ls(),ls(),Ks(5," \xa0"),cs(6,"img",4),Ks(7),ls(),ns(8,WN,35,32,"div",5),ls()),2&t&&(Yr(2),os("routerLink",cl(4,qN,e.servicePool?e.servicePool.id:"")),Yr(4),os("src",e.api.staticURL("admin/img/icons/pools.png"),Er),Yr(1),$s(" \xa0",null==e.servicePool?null:e.servicePool.name," "),Yr(1),os("ngIf",null!==e.servicePool))},directives:[xg,ld,TD,kD,gD,TP,qP,jx,XP],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-cache_level, .mat-column-in_use, .mat-column-priority, .mat-column-revision{max-width:7rem;justify-content:center} .mat-column-access, .mat-column-creation_date, .mat-column-publish_date, .mat-column-state_date, .mat-column-trans_type{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word}"]}),t}(),JN=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New meta pool"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit meta pool"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete meta pool"))},t.prototype.onDetail=function(t){this.api.navigation.gotoMetapoolDetail(t.param.id)},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.name=this.api.safeString(this.api.gui.icon(t.thumb)+t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-meta-pools"]],decls:2,vars:5,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"div"),us(1,"uds-table",0),gs("detailAction",(function(t){return e.onDetail(t)}))("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls(),ls()),2&t&&(Yr(1),os("rest",e.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("hasPermissions",!0))},directives:[TP],styles:[".mat-column-pool_group_name, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center}"]}),t}();function tV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New member pool"),ls())}function eV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Edit member pool"),ls())}function nV(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",11),gs("changed",(function(t){return xn(n),Cs().servicePoolsFilter=t})),ls()}}function iV(t,e){if(1&t&&(us(0,"mat-option",12),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.name," ")}}var rV=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=i.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},i.memberPool&&(this.memberPool.id=i.memberPool.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:i,model:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.servicesPools.summary().subscribe((function(e){return t.servicePools=e})),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe((function(e){return t.memberPool=e}))},t.prototype.filtered=function(t,e){return""===e?t:t.filter((function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(us(0,"h4",0),ns(1,tV,2,0,"uds-translate",1),ns(2,eV,2,0,"uds-translate",1),ls(),us(3,"mat-dialog-content"),us(4,"div",2),us(5,"mat-form-field"),us(6,"mat-label"),us(7,"uds-translate"),Ks(8,"Priority"),ls(),ls(),us(9,"input",3),gs("ngModelChange",(function(t){return e.memberPool.priority=t})),ls(),ls(),us(10,"mat-form-field"),us(11,"mat-label"),us(12,"uds-translate"),Ks(13,"Service pool"),ls(),ls(),us(14,"mat-select",4),gs("ngModelChange",(function(t){return e.memberPool.pool_id=t})),ns(15,nV,1,0,"uds-mat-select-search",5),ns(16,iV,2,2,"mat-option",6),ls(),ls(),us(17,"div",7),us(18,"span",8),us(19,"uds-translate"),Ks(20,"Enabled?"),ls(),ls(),us(21,"mat-slide-toggle",4),gs("ngModelChange",(function(t){return e.memberPool.enabled=t})),Ks(22),ls(),ls(),ls(),ls(),us(23,"mat-dialog-actions"),us(24,"button",9),us(25,"uds-translate"),Ks(26,"Cancel"),ls(),ls(),us(27,"button",10),gs("click",(function(){return e.save()})),us(28,"uds-translate"),Ks(29,"Ok"),ls(),ls(),ls()),2&t&&(Yr(1),os("ngIf",!(null!=e.memberPool&&e.memberPool.id)),Yr(1),os("ngIf",null==e.memberPool?null:e.memberPool.id),Yr(7),os("ngModel",e.memberPool.priority),Yr(5),os("ngModel",e.memberPool.pool_id),Yr(1),os("ngIf",e.servicePools.length>10),Yr(1),os("ngForOf",e.filtered(e.servicePools,e.servicePoolsFilter)),Yr(5),os("ngModel",e.memberPool.enabled),Yr(1),$s(" ",e.api.yesno(e.memberPool.enabled)," "))},directives:[Ex,ld,Dx,ZI,BI,jx,PR,wS,eS,uS,gE,mO,sd,BF,Ax,Nx,Sx,jR,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function aV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Summary"),ls())}function oV(t,e){if(1&t&&cs(0,"uds-information",17),2&t){var n=Cs(2);os("value",n.metaPool)("gui",n.gui)}}function sV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Service pools"),ls())}function uV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Assigned services"),ls())}function lV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Groups"),ls())}function cV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Access calendars"),ls())}function hV(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Logs"),ls())}function dV(t,e){if(1&t){var n=ps();us(0,"div",6),us(1,"div",7),us(2,"mat-tab-group",8),gs("selectedIndexChange",(function(t){return xn(n),Cs().selectedTab=t})),us(3,"mat-tab"),ns(4,aV,2,0,"ng-template",9),us(5,"div",10),ns(6,oV,1,2,"uds-information",11),ls(),ls(),us(7,"mat-tab"),ns(8,sV,2,0,"ng-template",9),us(9,"div",10),us(10,"uds-table",12),gs("newAction",(function(t){return xn(n),Cs().onNewMemberPool(t)}))("editAction",(function(t){return xn(n),Cs().onEditMemberPool(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteMemberPool(t)})),ls(),ls(),ls(),us(11,"mat-tab"),ns(12,uV,2,0,"ng-template",9),us(13,"div",10),us(14,"uds-table",13),gs("customButtonAction",(function(t){return xn(n),Cs().onCustomAssigned(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteAssigned(t)})),ls(),ls(),ls(),us(15,"mat-tab"),ns(16,lV,2,0,"ng-template",9),us(17,"div",10),us(18,"uds-table",14),gs("newAction",(function(t){return xn(n),Cs().onNewGroup(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteGroup(t)})),ls(),ls(),ls(),us(19,"mat-tab"),ns(20,cV,2,0,"ng-template",9),us(21,"div",10),us(22,"uds-table",15),gs("newAction",(function(t){return xn(n),Cs().onNewAccessCalendar(t)}))("editAction",(function(t){return xn(n),Cs().onEditAccessCalendar(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteAccessCalendar(t)}))("loaded",(function(t){return xn(n),Cs().onAccessCalendarLoad(t)})),ls(),ls(),ls(),us(23,"mat-tab"),ns(24,hV,2,0,"ng-template",9),us(25,"div",10),cs(26,"uds-logs-table",16),ls(),ls(),ls(),ls(),ls()}if(2&t){var i=Cs();Yr(2),os("selectedIndex",i.selectedTab)("@.disabled",!0),Yr(4),os("ngIf",i.metaPool&&i.gui),Yr(4),os("rest",i.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("customButtons",i.customButtons)("tableId","metaPools-d-members"+i.metaPool.id),Yr(4),os("rest",i.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+i.metaPool.id)("customButtons",i.customButtonsAssignedServices),Yr(4),os("rest",i.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+i.metaPool.id),Yr(4),os("rest",i.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+i.metaPool.id),Yr(4),os("rest",i.rest.metaPools)("itemId",i.metaPool.id)("tableId","metaPools-d-log"+i.metaPool.id)}}var fV=function(t){return["/pools","meta-pools",t]},pV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[_A.getGotoButton("pool","pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:KN,type:gA.SINGLE_SELECT},{id:"log",html:GN,type:gA.SINGLE_SELECT},_A.getGotoButton("user","owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(e).subscribe((function(n){t.metaPool=n,t.rest.metaPools.gui().subscribe((function(e){t.gui=e})),t.memberPools=t.rest.metaPools.detail(e,"pools"),t.memberUserServices=t.rest.metaPools.detail(e,"services"),t.groups=t.rest.metaPools.detail(e,"groups"),t.accessCalendars=t.rest.metaPools.detail(e,"access")}))},t.prototype.onNewMemberPool=function(t){rV.launch(this.api,this.memberPools).subscribe((function(){return t.table.overview()}))},t.prototype.onEditMemberPool=function(t){rV.launch(this.api,this.memberPools,t.table.selection.selected[0]).subscribe((function(){return t.table.overview()}))},t.prototype.onDeleteMemberPool=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove member pool"))},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;HL.launch(this.api,e,this.memberUserServices).subscribe((function(e){return t.table.overview()}))}else"log"===t.param.id&&CN.launch(this.api,e,this.memberUserServices)},t.prototype.onDeleteAssigned=function(t){QN.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))},t.prototype.onNewGroup=function(t){tN.launch(this.api,this.metaPool.id,this.groups).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewAccessCalendar=function(t){ZL.launch(this.api,this.metaPool,this.accessCalendars).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditAccessCalendar=function(t){ZL.launch(this.api,this.metaPool,this.accessCalendars,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteAccessCalendar=function(t){t.table.selection.selected[0].priority>0?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe((function(n){var i=t.table.dataSource.data.filter((function(t){return!0}));i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i}))},t.prototype.processElement=function(t){t.enabled=this.api.yesno(t.enabled)},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"a",2),us(3,"i",3),Ks(4,"arrow_back"),ls(),ls(),Ks(5," \xa0"),cs(6,"img",4),Ks(7),ls(),ns(8,dV,27,25,"div",5),ls()),2&t&&(Yr(2),os("routerLink",cl(4,fV,e.metaPool?e.metaPool.id:"")),Yr(4),os("src",e.api.staticURL("admin/img/icons/metas.png"),Er),Yr(1),$s(" ",null==e.metaPool?null:e.metaPool.name," "),Yr(1),os("ngIf",e.metaPool))},directives:[xg,ld,TD,kD,gD,TP,qP,jx,XP],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),t}(),mV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New service Pool"),!1).subscribe((function(e){return t.table.overview()}))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("New Service Pool"),!1).subscribe((function(e){return t.table.overview()}))},t.prototype.onDelete=function(t){},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-pool-groups"]],decls:1,vars:4,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls()),2&t&&os("rest",e.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)},directives:[TP],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),t}(),vV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New calendar"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit calendar"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar"))},t.prototype.onDetail=function(t){this.api.navigation.gotoCalendarDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-calendars"]],decls:1,vars:4,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(us(0,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),ls()),2&t&&os("rest",e.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)},directives:[TP],styles:[""]}),t}(),gV=["mat-calendar-body",""];function yV(t,e){if(1&t&&(us(0,"tr",2),us(1,"td",3),Ks(2),ls(),ls()),2&t){var n=Cs();Yr(1),Ls("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),ts("colspan",n.numCols),Yr(1),$s(" ",n.label," ")}}function _V(t,e){if(1&t&&(us(0,"td",7),Ks(1),ls()),2&t){var n=Cs(2);Ls("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),ts("colspan",n._firstRowOffset),Yr(1),$s(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function bV(t,e){if(1&t){var n=ps();us(0,"td",8),gs("click",(function(t){xn(n);var i=e.$implicit;return Cs(2)._cellClicked(i,t)})),us(1,"div",9),Ks(2),ls(),cs(3,"div",10),ls()}if(2&t){var i=e.$implicit,r=e.index,a=Cs().index,o=Cs();Ls("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),Ns("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",o._isActiveCell(a,r))("mat-calendar-body-range-start",o._isRangeStart(i.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(i.compareValue))("mat-calendar-body-in-range",o._isInRange(i.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(i.compareValue,a,r))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(i.compareValue,a,r))("mat-calendar-body-comparison-start",o._isComparisonStart(i.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(i.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(i.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(i.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(i.compareValue))("mat-calendar-body-in-preview",o._isInPreview(i.compareValue)),os("ngClass",i.cssClasses)("tabindex",o._isActiveCell(a,r)?0:-1),ts("data-mat-row",a)("data-mat-col",r)("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",o._isSelected(i)),Yr(1),Ns("mat-calendar-body-selected",o._isSelected(i))("mat-calendar-body-today",o.todayValue===i.compareValue),Yr(1),$s(" ",i.displayValue," ")}}function kV(t,e){if(1&t&&(us(0,"tr",4),ns(1,_V,2,6,"td",5),ns(2,bV,4,44,"td",6),ls()),2&t){var n=e.$implicit,i=e.index,r=Cs();Yr(1),os("ngIf",0===i&&r._firstRowOffset),Yr(1),os("ngForOf",n)}}function wV(t,e){if(1&t&&(us(0,"th",5),Ks(1),ls()),2&t){var n=e.$implicit;ts("aria-label",n.long),Yr(1),Zs(n.narrow)}}var CV=["*"];function xV(t,e){}function SV(t,e){if(1&t){var n=ps();us(0,"mat-month-view",5),gs("activeDateChange",(function(t){return xn(n),Cs().activeDate=t}))("_userSelection",(function(t){return xn(n),Cs()._dateSelected(t)})),ls()}if(2&t){var i=Cs();os("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)}}function EV(t,e){if(1&t){var n=ps();us(0,"mat-year-view",6),gs("activeDateChange",(function(t){return xn(n),Cs().activeDate=t}))("monthSelected",(function(t){return xn(n),Cs()._monthSelectedInYearView(t)}))("selectedChange",(function(t){return xn(n),Cs()._goToDateInView(t,"month")})),ls()}if(2&t){var i=Cs();os("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}function DV(t,e){if(1&t){var n=ps();us(0,"mat-multi-year-view",7),gs("activeDateChange",(function(t){return xn(n),Cs().activeDate=t}))("yearSelected",(function(t){return xn(n),Cs()._yearSelectedInMultiYearView(t)}))("selectedChange",(function(t){return xn(n),Cs()._goToDateInView(t,"year")})),ls()}if(2&t){var i=Cs();os("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}var AV=["button"];function IV(t,e){1&t&&(Xn(),us(0,"svg",3),cs(1,"path",4),ls())}var OV=[[["","matDatepickerToggleIcon",""]]],TV=["[matDatepickerToggleIcon]"],RV=[[["input","matStartDate",""]],[["input","matEndDate",""]]],MV=["input[matStartDate]","input[matEndDate]"];function PV(t){return Error("MatDatepicker: No provider found for ".concat(t,". You must import one of the following ")+"modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}var FV=function(){var t=function(){function t(){y(this,t),this.changes=new U,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return b(t,[{key:"formatYearRange",value:function(t,e){return"".concat(t," \u2013 ").concat(e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({factory:function(){return new t},token:t,providedIn:"root"}),t}(),LV=function t(e,n,i,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6?arguments[6]:void 0;y(this,t),this.value=e,this.displayValue=n,this.ariaLabel=i,this.enabled=r,this.cssClasses=a,this.compareValue=o,this.rawValue=s},NV=function(){var t=function(){function t(e,n){var i=this;y(this,t),this._elementRef=e,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new bl,this.previewChange=new bl,this._enterHandler=function(t){if(i._skipNextFocus&&"focus"===t.type)i._skipNextFocus=!1;else if(t.target&&i.isRange){var e=i._getCellFromElement(t.target);e&&i._ngZone.run((function(){return i.previewChange.emit({value:e.enabled?e:null,event:t})}))}},this._leaveHandler=function(t){null!==i.previewEnd&&i.isRange&&t.target&&VV(t.target)&&i._ngZone.run((function(){return i.previewChange.emit({value:null,event:t})}))},n.runOutsideAngular((function(){var t=e.nativeElement;t.addEventListener("mouseenter",i._enterHandler,!0),t.addEventListener("focus",i._enterHandler,!0),t.addEventListener("mouseleave",i._leaveHandler,!0),t.addEventListener("blur",i._leaveHandler,!0)}))}return b(t,[{key:"_cellClicked",value:function(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}},{key:"_isSelected",value:function(t){return this.startValue===t.compareValue||this.endValue===t.compareValue}},{key:"ngOnChanges",value:function(t){var e=t.numCols,n=this.rows,i=this.numCols;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/i,"%")),!e&&this._cellWidth||(this._cellWidth="".concat(100/i,"%"))}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}},{key:"_focusActiveCell",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Lp(1)).subscribe((function(){var n=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(t._skipNextFocus=!0),n.focus())}))}))}},{key:"_isRangeStart",value:function(t){return BV(t,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(t){return jV(t,this.startValue,this.endValue)}},{key:"_isInRange",value:function(t){return zV(t,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(t){return BV(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(t,e,n){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;var i=this.rows[e][n-1];if(!i){var r=this.rows[e-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(t,e,n){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;var i=this.rows[e][n+1];if(!i){var r=this.rows[e+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}},{key:"_isComparisonEnd",value:function(t){return jV(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(t){return zV(t,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isPreviewStart",value:function(t){return BV(t,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(t){return jV(t,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(t){return zV(t,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(t){var e;if(VV(t)?e=t:VV(t.parentNode)&&(e=t.parentNode),e){var n=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(n&&i)return this.rows[parseInt(n)][parseInt(i)]}return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(cc))},t.\u0275cmp=Me({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[Qe],attrs:gV,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(ns(0,yV,3,6,"tr",0),ns(1,kV,3,2,"tr",1)),2&t&&(os("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t}();function VV(t){return"TD"===t.nodeName}function BV(t,e,n){return null!==n&&e!==n&&t=e&&t===n}function zV(t,e,n,i){return i&&null!==e&&null!==n&&e!==n&&t>=e&&t<=n}var HV=function t(e,n){y(this,t),this.start=e,this.end=n},UV=function(){var t=function(){function t(e,n){y(this,t),this.selection=e,this._adapter=n,this._selectionChanged=new U,this.selectionChanged=this._selectionChanged.asObservable(),this.selection=e}return b(t,[{key:"updateSelection",value:function(t,e){this.selection=t,this._selectionChanged.next({selection:t,source:e})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(void 0),rs(xC))},t.\u0275dir=Be({type:t}),t}(),WV=function(){var t=function(t){f(n,t);var e=g(n);function n(t){return y(this,n),e.call(this,null,t)}return b(n,[{key:"add",value:function(t){r(i(n.prototype),"updateSelection",this).call(this,t,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}}]),n}(UV);return t.\u0275fac=function(e){return new(e||t)(fe(xC))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),qV=function(){var t=function(t){f(n,t);var e=g(n);function n(t){return y(this,n),e.call(this,new HV(null,null),t)}return b(n,[{key:"add",value:function(t){var e=this.selection,a=e.start,o=e.end;null==a?a=t:null==o?o=t:(a=t,o=null),r(i(n.prototype),"updateSelection",this).call(this,new HV(a,o),this)}},{key:"isValid",value:function(){var t=this.selection,e=t.start,n=t.end;return null==e&&null==n||(null!=e&&null!=n?this._isValidDateInstance(e)&&this._isValidDateInstance(n)&&this._adapter.compareDate(e,n)<=0:(null==e||this._isValidDateInstance(e))&&(null==n||this._isValidDateInstance(n)))}},{key:"isComplete",value:function(){return null!=this.selection.start&&null!=this.selection.end}}]),n}(UV);return t.\u0275fac=function(e){return new(e||t)(fe(xC))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),GV={provide:UV,deps:[[new Ct,new St,UV],xC],useFactory:function(t,e){return t||new WV(e)}},YV={provide:UV,deps:[[new Ct,new St,UV],xC],useFactory:function(t,e){return t||new qV(e)}},KV=new re("MAT_DATE_RANGE_SELECTION_STRATEGY"),ZV=function(){var t=function(){function t(e){y(this,t),this._dateAdapter=e}return b(t,[{key:"selectionFinished",value:function(t,e){var n=e.start,i=e.end;return null==n?n=t:null==i&&t&&this._dateAdapter.compareDate(t,n)>=0?i=t:(n=t,i=null),new HV(n,i)}},{key:"createPreview",value:function(t,e){var n=null,i=null;return e.start&&!e.end&&t&&(n=e.start,i=t),new HV(n,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(fe(xC))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t}(),$V=function(){var t=function(){function t(e,n,i,r,a){if(y(this,t),this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=i,this._dir=r,this._rangeStrategy=a,this._rerenderSubscription=E.EMPTY,this.selectedChange=new bl,this._userSelection=new bl,this.activeDateChange=new bl,!this._dateAdapter)throw PV("DateAdapter");if(!this._dateFormats)throw PV("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return b(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe($p(null)).subscribe((function(){return t._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(t){var e,n,i=t.value,r=this._dateAdapter.getYear(this.activeDate),a=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.createDate(r,a,i);this._selected instanceof HV?(e=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):e=n=this._getDateInCurrentMonth(this._selected),e===i&&n===i||this.selectedChange.emit(o),this._userSelection.emit({value:o,event:t.event})}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case 27:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(t){this._matCalendarBody._focusActiveCell(t)}},{key:"_previewChanged",value:function(t){var e=t.value;if(this._rangeStrategy){var n=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t.event);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map((function(t,n){return{long:t,narrow:e[n]}}));this._weekdays=n.slice(t).concat(n.slice(0,t))}},{key:"_createWeekCells",value:function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}},{key:"_getDateInCurrentMonth",value:function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}},{key:"_hasSameMonthAndYear",value:function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}},{key:"_getCellCompareValue",value:function(t){if(t){var e=this._dateAdapter.getYear(t),n=this._dateAdapter.getMonth(t),i=this._dateAdapter.getDate(t);return new Date(e,n,i).getTime()}return null}},{key:"_getValidDateOrNull",value:function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(t){t instanceof HV?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}},{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof HV?t:this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(So),rs(SC,8),rs(xC,8),rs(Hy,8),rs(KV,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var n;1&t&&Ml(NV,!0),2&t&&Tl(n=Vl())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(us(0,"table",0),us(1,"thead",1),us(2,"tr"),ns(3,wV,2,2,"th",2),ls(),us(4,"tr"),cs(5,"th",3),ls(),ls(),us(6,"tbody",4),gs("selectedValueChange",(function(t){return e._dateSelected(t)}))("previewChange",(function(t){return e._previewChanged(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),ls(),ls()),2&t&&(Yr(3),os("ngForOf",e._weekdays),Yr(3),os("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[sd,NV],encapsulation:2,changeDetection:0}),t}(),XV=function(){var t=function(){function t(e,n,i){if(y(this,t),this._changeDetectorRef=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=E.EMPTY,this.selectedChange=new bl,this.yearSelected=new bl,this.activeDateChange=new bl,!this._dateAdapter)throw PV("DateAdapter");this._activeDate=this._dateAdapter.today()}return b(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe($p(null)).subscribe((function(){return t._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-JV(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];n<24;n++)i.push(e+n),4==i.length&&(this._years.push(i.map((function(e){return t._createCellForYear(e)}))),i=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(t){var e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));var n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));this.selectedChange.emit(this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-JV(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-JV(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case 13:case 32:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_getActiveCell",value:function(){return JV(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(t){var e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new LV(t,e,e,this._shouldEnableYear(t))}},{key:"_shouldEnableYear",value:function(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&tn||t===n&&e>i}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(t,e){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t enter",Pb("120ms cubic-bezier(0, 0, 0.2, 1)",Nb({opacity:1,transform:"scale(1, 1)"}))),jb("* => void",Pb("100ms linear",Nb({opacity:0})))]),fadeInCalendar:Mb("fadeInCalendar",[Vb("void",Nb({opacity:0})),Vb("enter",Nb({opacity:1})),jb("void => *",Pb("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},aB=0,oB=new re("mat-datepicker-scroll-strategy"),sB={provide:oB,deps:[U_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},uB=gC((function t(e){y(this,t),this._elementRef=e})),lB=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o){var s;return y(this,n),(s=e.call(this,t))._changeDetectorRef=i,s._model=r,s._dateAdapter=a,s._rangeSelectionStrategy=o,s._subscriptions=new E,s._animationState="enter",s._animationDone=new U,s}return b(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._changeDetectorRef&&this._subscriptions.add(this.datepicker._stateChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(t){if(this._model&&this._dateAdapter){var e=this._model.selection,n=t.value,i=e instanceof HV;if(i&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(n,e,t.event);this._model.updateSelection(r,this)}else!n||!i&&this._dateAdapter.sameDate(n,e)||this._model.add(n)}this._model&&!this._model.isComplete()||this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model?this._model.selection:null}}]),n}(uB);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(UV),rs(xC),rs(KV,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&Ml(iB,!0),2&t&&Tl(n=Vl())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&ys("@transformPanel.done",(function(){return e._animationDone.next()})),2&t&&(Js("@transformPanel",e._animationState),Ns("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[eu],decls:1,vars:13,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","_userSelection"]],template:function(t,e){1&t&&(us(0,"mat-calendar",0),gs("yearSelected",(function(t){return e.datepicker._selectYear(t)}))("monthSelected",(function(t){return e.datepicker._selectMonth(t)}))("_userSelection",(function(t){return e._handleUserSelection(t)})),ls()),2&t&&os("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter")},directives:[iB,gb,rd],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[rB.transformPanel,rB.fadeInCalendar]},changeDetection:0}),t}(),cB=function(){var t=function(){function t(e,n,i,r,a,o,s,u,l){if(y(this,t),this._dialog=e,this._overlay=n,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=o,this._dir=s,this._document=u,this._model=l,this._inputStateChanges=E.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new bl,this.monthSelected=new bl,this.openedStream=new bl,this.closedStream=new bl,this._opened=!1,this.id="mat-datepicker-".concat(aB++),this._focusedElementBeforeOpen=null,this._stateChanges=new U,!this._dateAdapter)throw PV("DateAdapter");this._scrollStrategy=a}return b(t,[{key:"_getMinDate",value:function(){return this._datepickerInput&&this._datepickerInput.min}},{key:"_getMaxDate",value:function(){return this._datepickerInput&&this._datepickerInput.max}},{key:"_getDateFilter",value:function(){return this._datepickerInput&&this._datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(t){var e=t.xPosition||t.yPosition;e&&!e.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this._stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this._stateChanges.complete()}},{key:"select",value:function(t){this._model.add(t)}},{key:"_selectYear",value:function(t){this.yearSelected.emit(t)}},{key:"_selectMonth",value:function(t){this.monthSelected.emit(t)}},{key:"_registerInput",value:function(t){var e=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");return this._inputStateChanges.unsubscribe(),this._datepickerInput=t,this._inputStateChanges=t._stateChanges.subscribe((function(){return e._stateChanges.next(void 0)})),this._model}},{key:"open",value:function(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}},{key:"close",value:function(){var t=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var e=this._popupComponentRef.instance;e._startExitAnimation(),e._animationDone.pipe(Lp(1)).subscribe((function(){return t._destroyPopup()}))}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var n=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}}},{key:"_openAsDialog",value:function(){var t=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(lB,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe((function(){return t.close()})),this._forwardContentValues(this._dialogRef.componentInstance)}},{key:"_openAsPopup",value:function(){var t=this,e=new n_(lB,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(e),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.asObservable().pipe(Lp(1)).subscribe((function(){t._popupRef.updatePosition()}))}},{key:"_forwardContentValues",value:function(t){t.datepicker=this,t.color=this.color}},{key:"_createPopup",value:function(){var t=this,e=this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),n=new x_({positionStrategy:this._setConnectedPositions(e),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(n),this._popupRef.overlayElement.setAttribute("role","dialog"),ht(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Df((function(e){return 27===e.keyCode||t._datepickerInput&&e.altKey&&38===e.keyCode})))).subscribe((function(e){e&&e.preventDefault(),t.close()}))}},{key:"_destroyPopup",value:function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}},{key:"_setConnectedPositions",value:function(t){var e="end"===this.xPosition?"end":"start",n="start"===e?"end":"start",i="above"===this.yPosition?"bottom":"top",r="top"===i?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:i},{originX:e,originY:i,overlayX:e,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:r}])}},{key:"_getValidDateOrNull",value:function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}},{key:"startAt",get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.getStartValue():null)},set:function(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"color",get:function(){return this._color||(this._datepickerInput?this._datepickerInput.getThemePalette():void 0)},set:function(t){this._color=t}},{key:"touchUi",get:function(){return this._touchUi},set:function(t){this._touchUi=Kg(t)}},{key:"disabled",get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(t){var e=Kg(t);e!==this._disabled&&(this._disabled=e,this._stateChanges.next(void 0))}},{key:"opened",get:function(){return this._opened},set:function(t){t?this.open():this.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Cx),rs(U_),rs(cc),rs(qu),rs(oB),rs(xC,8),rs(Hy,8),rs(Wc,8),rs(UV))},t.\u0275dir=Be({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},features:[Qe]}),t}(),hB=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(cB);return t.\u0275fac=function(e){return dB(e||t)},t.\u0275cmp=Me({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[pu([GV]),eu],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t}(),dB=Vi(hB),fB=function t(e,n){y(this,t),this.target=e,this.targetElement=n,this.value=this.target.value},pB=function(){var t=function(){function t(e,n,i){var r=this;if(y(this,t),this._elementRef=e,this._dateAdapter=n,this._dateFormats=i,this.dateChange=new bl,this.dateInput=new bl,this._valueChange=new bl,this._stateChanges=new U,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=E.EMPTY,this._localeSubscription=E.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._filterValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getDateFilter();return n&&e&&!n(e)?{matDatepickerFilter:!0}:null},this._minValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMinDate();return!n||!e||r._dateAdapter.compareDate(n,e)<=0?null:{matDatepickerMin:{min:n,actual:e}}},this._maxValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMaxDate();return!n||!e||r._dateAdapter.compareDate(n,e)>=0?null:{matDatepickerMax:{max:n,actual:e}}},this._lastValueValid=!1,!this._dateAdapter)throw PV("DateAdapter");if(!this._dateFormats)throw PV("MAT_DATE_FORMATS");this._localeSubscription=n.localeChanges.subscribe((function(){r.value=r.value}))}return b(t,[{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(t){var e=this;this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe((function(t){if(t.source!==e){var n=e._getValueFromModel(t.selection);e._lastValueValid=e._isValidValue(n),e._cvaOnChange(n),e._onTouched(),e._formatValue(n),e._canEmitChangeEvent(t)&&(e.dateInput.emit(new fB(e,e._elementRef.nativeElement)),e.dateChange.emit(new fB(e,e._elementRef.nativeElement))),e._outsideValueChanged&&e._outsideValueChanged()}}))}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(){this._stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._stateChanges.complete()}},{key:"registerOnValidatorChange",value:function(t){this._validatorOnChange=t}},{key:"validate",value:function(t){return this._validator?this._validator(t):null}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this._cvaOnChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_onKeydown",value:function(t){t.altKey&&40===t.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}},{key:"_onInput",value:function(t){var e=this._lastValueValid,n=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(n),n=this._getValidDateOrNull(n),this._dateAdapter.sameDate(n,this.value)?(t&&!this.value&&this._cvaOnChange(n),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(n),this._cvaOnChange(n),this._valueChange.emit(n),this.dateInput.emit(new fB(this,this._elementRef.nativeElement)))}},{key:"_onChange",value:function(){this.dateChange.emit(new fB(this,this._elementRef.nativeElement))}},{key:"_onBlur",value:function(){this.value&&this._formatValue(this.value),this._onTouched()}},{key:"_formatValue",value:function(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}},{key:"_getValidDateOrNull",value:function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}},{key:"_assignValue",value:function(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}},{key:"_isValidValue",value:function(t){return!t||this._dateAdapter.isValid(t)}},{key:"_parentDisabled",value:function(){return!1}},{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._getValidDateOrNull(t);var e=this.value;this._assignValue(t),this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(t){var e=Kg(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._stateChanges.next(void 0)),e&&this._isInitialized&&n.blur&&n.blur()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(xC,8),rs(SC,8))},t.\u0275dir=Be({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Qe]}),t}(),mB={provide:$x,useExisting:Ht((function(){return gB})),multi:!0},vB={provide:dS,useExisting:Ht((function(){return gB})),multi:!0},gB=function(){var t=function(t){f(n,t);var e=g(n);function n(t,o,s,u){var l,c;return y(this,n),(c=e.call(this,t,o,s))._formField=u,c._validator=mS.compose(r((l=a(c),i(n.prototype)),"_getValidators",l).call(l)),c}return b(n,[{key:"getConnectedOverlayOrigin",value:function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}},{key:"getThemePalette",value:function(){return this._formField?this._formField.color:void 0}},{key:"getStartValue",value:function(){return this.value}},{key:"getPopupConnectionElementRef",value:function(){return this.getConnectedOverlayOrigin()}},{key:"_openPopup",value:function(){this._datepicker&&this._datepicker.open()}},{key:"_getValueFromModel",value:function(t){return t}},{key:"_assignValueToModel",value:function(t){this._model&&this._model.updateSelection(t,this)}},{key:"_getMinDate",value:function(){return this._min}},{key:"_getMaxDate",value:function(){return this._max}},{key:"_getDateFilter",value:function(){return this._dateFilter}},{key:"_canEmitChangeEvent",value:function(){return!0}},{key:"matDatepicker",set:function(t){t&&(this._datepicker=t,this._registerModel(t._registerInput(this)))}},{key:"min",get:function(){return this._min},set:function(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}},{key:"max",get:function(){return this._max},set:function(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}},{key:"dateFilter",get:function(){return this._dateFilter},set:function(t){this._dateFilter=t,this._validatorOnChange()}}]),n}(pB);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(xC,8),rs(SC,8),rs(KI,8))},t.\u0275dir=Be({type:t,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(t,e){1&t&&gs("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)})),2&t&&(Qs("disabled",e.disabled),ts("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[pu([mB,vB,{provide:OR,useExisting:t}]),eu]}),t}(),yB=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t}(),_B=function(){var t=function(){function t(e,n,i){y(this,t),this._intl=e,this._changeDetectorRef=n,this._stateChanges=E.EMPTY;var r=Number(i);this.tabIndex=r||0===r?r:null}return b(t,[{key:"ngOnChanges",value:function(t){t.datepicker&&this._watchStateChanges()}},{key:"ngOnDestroy",value:function(){this._stateChanges.unsubscribe()}},{key:"ngAfterContentInit",value:function(){this._watchStateChanges()}},{key:"_open",value:function(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}},{key:"_watchStateChanges",value:function(){var t=this,e=this.datepicker?this.datepicker._stateChanges:Sf(),n=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._stateChanges:Sf(),i=this.datepicker?ht(this.datepicker.openedStream,this.datepicker.closedStream):Sf();this._stateChanges.unsubscribe(),this._stateChanges=ht(this._intl.changes,e,n,i).subscribe((function(){return t._changeDetectorRef.markForCheck()}))}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(t){this._disabled=Kg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(FV),rs(So),as("tabindex"))},t.\u0275cmp=Me({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,yB,!0),2&t&&Tl(i=Vl())&&(e._customIcon=i.first)},viewQuery:function(t,e){var n;1&t&&Ml(AV,!0),2&t&&Tl(n=Vl())&&(e._button=n.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(t,e){1&t&&gs("focus",(function(){return e._button.focus()})),2&t&&(ts("tabindex",e.disabled?null:-1),Ns("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Qe],ngContentSelectors:TV,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(Ss(OV),us(0,"button",0,1),gs("click",(function(t){return e._open(t)})),ns(2,IV,2,0,"svg",2),Es(3),ls()),2&t&&(os("disabled",e.disabled)("disableRipple",e.disableRipple),ts("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),Yr(2),os("ngIf",!e._customIcon))},directives:[Nx,ld],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t}(),bB=new re("MAT_DATE_RANGE_INPUT_PARENT"),kB=bC(function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u,l){var c;return y(this,n),(c=e.call(this,i,u,l))._rangeInput=t,c._defaultErrorStateMatcher=r,c._injector=a,c._parentForm=o,c._parentFormGroup=s,c._outsideValueChanged=function(){c._validatorOnChange()},c}return b(n,[{key:"ngOnInit",value:function(){var t=this._injector.get(oS,null,Et.Self);t&&(this.ngControl=t)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"isEmpty",value:function(){return 0===this._elementRef.nativeElement.value.length}},{key:"_getPlaceholder",value:function(){return this._elementRef.nativeElement.placeholder}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_onInput",value:function(t){r(i(n.prototype),"_onInput",this).call(this,t),this._rangeInput._handleChildValueChange()}},{key:"_openPopup",value:function(){this._rangeInput._openDatepicker()}},{key:"_getMinDate",value:function(){return this._rangeInput.min}},{key:"_getMaxDate",value:function(){return this._rangeInput.max}},{key:"_getDateFilter",value:function(){return this._rangeInput.dateFilter}},{key:"_parentDisabled",value:function(){return this._rangeInput._groupDisabled}}]),n}(pB);return t.\u0275fac=function(e){return new(e||t)(rs(bB),rs(_u),rs(FC),rs(Uo),rs(lE,8),rs(CE,8),rs(xC,8),rs(SC,8))},t.\u0275dir=Be({type:t,features:[eu]}),t}()),wB=function(){var t=function(t){f(n,t);var e=g(n);function n(t,o,s,u,c,h,d,f){var p,m;return y(this,n),(m=e.call(this,t,o,s,u,c,h,d,f))._startValidator=function(t){var e=m._getValidDateOrNull(m._dateAdapter.deserialize(t.value)),n=m._model?m._model.selection.end:null;return!e||!n||m._dateAdapter.compareDate(e,n)<=0?null:{matStartDateInvalid:{end:n,actual:e}}},m._validator=mS.compose([].concat(l(r((p=a(m),i(n.prototype)),"_getValidators",p).call(p)),[m._startValidator])),m._canEmitChangeEvent=function(t){return t.source!==m._rangeInput._endInput},m}return b(n,[{key:"_getValueFromModel",value:function(t){return t.start}},{key:"_assignValueToModel",value:function(t){if(this._model){var e=new HV(t,this._model.selection.end);this._model.updateSelection(e,this),this._cvaOnChange(t)}}},{key:"_formatValue",value:function(t){r(i(n.prototype),"_formatValue",this).call(this,t),this._rangeInput._handleChildValueChange()}},{key:"getMirrorValue",value:function(){var t=this._elementRef.nativeElement,e=t.value;return e.length>0?e:t.placeholder}}]),n}(kB);return t.\u0275fac=function(e){return new(e||t)(rs(bB),rs(_u),rs(FC),rs(Uo),rs(lE,8),rs(CE,8),rs(xC,8),rs(SC,8))},t.\u0275dir=Be({type:t,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-date-range-input-inner"],hostVars:6,hostBindings:function(t,e){1&t&&gs("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("keydown",(function(t){return e._onKeydown(t)}))("blur",(function(){return e._onBlur()})),2&t&&(Qs("disabled",e.disabled),ts("id",e._rangeInput.id)("aria-haspopup",e._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==e._rangeInput.rangePicker?null:e._rangeInput.rangePicker.opened)&&e._rangeInput.rangePicker.id||null)("min",e._getMinDate()?e._dateAdapter.toIso8601(e._getMinDate()):null)("max",e._getMaxDate()?e._dateAdapter.toIso8601(e._getMaxDate()):null))},features:[pu([{provide:$x,useExisting:t,multi:!0},{provide:dS,useExisting:t,multi:!0}]),eu]}),t}(),CB=function(){var t=function(t){f(n,t);var e=g(n);function n(t,o,s,u,c,h,d,f){var p,m;return y(this,n),(m=e.call(this,t,o,s,u,c,h,d,f))._endValidator=function(t){var e=m._getValidDateOrNull(m._dateAdapter.deserialize(t.value)),n=m._model?m._model.selection.start:null;return!e||!n||m._dateAdapter.compareDate(e,n)>=0?null:{matEndDateInvalid:{start:n,actual:e}}},m._validator=mS.compose([].concat(l(r((p=a(m),i(n.prototype)),"_getValidators",p).call(p)),[m._endValidator])),m._canEmitChangeEvent=function(t){return t.source!==m._rangeInput._startInput},m}return b(n,[{key:"_getValueFromModel",value:function(t){return t.end}},{key:"_assignValueToModel",value:function(t){if(this._model){var e=new HV(this._model.selection.start,t);this._model.updateSelection(e,this),this._cvaOnChange(t)}}},{key:"_onKeydown",value:function(t){8!==t.keyCode||this._elementRef.nativeElement.value||this._rangeInput._startInput.focus(),r(i(n.prototype),"_onKeydown",this).call(this,t)}}]),n}(kB);return t.\u0275fac=function(e){return new(e||t)(rs(bB),rs(_u),rs(FC),rs(Uo),rs(lE,8),rs(CE,8),rs(xC,8),rs(SC,8))},t.\u0275dir=Be({type:t,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-date-range-input-inner"],hostVars:5,hostBindings:function(t,e){1&t&&gs("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("keydown",(function(t){return e._onKeydown(t)}))("blur",(function(){return e._onBlur()})),2&t&&(Qs("disabled",e.disabled),ts("aria-haspopup",e._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==e._rangeInput.rangePicker?null:e._rangeInput.rangePicker.opened)&&e._rangeInput.rangePicker.id||null)("min",e._getMinDate()?e._dateAdapter.toIso8601(e._getMinDate()):null)("max",e._getMaxDate()?e._dateAdapter.toIso8601(e._getMaxDate()):null))},features:[pu([{provide:$x,useExisting:t,multi:!0},{provide:dS,useExisting:t,multi:!0}]),eu]}),t}(),xB=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"_forwardContentValues",value:function(t){r(i(n.prototype),"_forwardContentValues",this).call(this,t);var e=this._datepickerInput;e&&(t.comparisonStart=e.comparisonStart,t.comparisonEnd=e.comparisonEnd)}}]),n}(cB);return t.\u0275fac=function(e){return SB(e||t)},t.\u0275cmp=Me({type:t,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[pu([YV]),eu],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t}(),SB=Vi(xB),EB=0,DB=function(){var t=function(){function t(e,n,i,r,a){if(y(this,t),this._changeDetectorRef=e,this._elementRef=n,this._dateAdapter=r,this._formField=a,this.stateChanges=new U,this.id="mat-date-range-input-".concat(EB++),this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this._stateChanges=new U,!r)throw PV("DateAdapter");this.ngControl=i}return b(t,[{key:"setDescribedByIds",value:function(t){this._ariaDescribedBy=t.length?t.join(" "):null}},{key:"onContainerClick",value:function(){this.focused||this.disabled||(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}},{key:"ngAfterContentInit",value:function(){var t=this;if(!this._startInput)throw Error("mat-date-range-input must contain a matStartDate input");if(!this._endInput)throw Error("mat-date-range-input must contain a matEndDate input");this._model&&this._registerModel(this._model),ht(this._startInput.stateChanges,this._endInput.stateChanges).subscribe((function(){t._stateChanges.next(void 0)}))}},{key:"ngOnChanges",value:function(){this._stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._stateChanges.unsubscribe()}},{key:"getStartValue",value:function(){return this.value?this.value.start:null}},{key:"getThemePalette",value:function(){return this._formField?this._formField.color:void 0}},{key:"getConnectedOverlayOrigin",value:function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}},{key:"_getInputMirrorValue",value:function(){return this._startInput?this._startInput.getMirrorValue():""}},{key:"_shouldHidePlaceholders",value:function(){return!!this._startInput&&!this._startInput.isEmpty()}},{key:"_handleChildValueChange",value:function(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}},{key:"_openDatepicker",value:function(){this._rangePicker&&this._rangePicker.open()}},{key:"_shouldHideSeparator",value:function(){return(!this._formField||this._formField._hideControlPlaceholder())&&this.empty}},{key:"_getAriaLabelledby",value:function(){var t=this._formField;return t&&t._hasFloatingLabel()?t._labelId:null}},{key:"_getValidDateOrNull",value:function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}},{key:"_revalidate",value:function(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}},{key:"_registerModel",value:function(t){this._startInput&&this._startInput._registerModel(t),this._endInput&&this._endInput._registerModel(t)}},{key:"value",get:function(){return this._model?this._model.selection:null}},{key:"shouldLabelFloat",get:function(){return this.focused||!this.empty}},{key:"placeholder",get:function(){var t,e,n=(null===(t=this._startInput)||void 0===t?void 0:t._getPlaceholder())||"",i=(null===(e=this._endInput)||void 0===e?void 0:e._getPlaceholder())||"";return n||i?"".concat(n," ").concat(this.separator," ").concat(i):""}},{key:"rangePicker",get:function(){return this._rangePicker},set:function(t){t&&(this._model=t._registerInput(this),this._rangePicker=t,this._registerModel(this._model))}},{key:"required",get:function(){return!!this._required},set:function(t){this._required=Kg(t)}},{key:"dateFilter",get:function(){return this._dateFilter},set:function(t){this._dateFilter=t,this._revalidate()}},{key:"min",get:function(){return this._min},set:function(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._revalidate()}},{key:"max",get:function(){return this._max},set:function(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._revalidate()}},{key:"disabled",get:function(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled},set:function(t){var e=Kg(t);e!==this._groupDisabled&&(this._groupDisabled=e,this._stateChanges.next(void 0))}},{key:"errorState",get:function(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}},{key:"empty",get:function(){var t=!!this._startInput&&this._startInput.isEmpty(),e=!!this._endInput&&this._endInput.isEmpty();return t&&e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(So),rs(_u),rs(iS,10),rs(xC,8),rs(KI,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-date-range-input"]],contentQueries:function(t,e,n){var i;1&t&&(Fl(n,wB,!0),Fl(n,CB,!0)),2&t&&(Tl(i=Vl())&&(e._startInput=i.first),Tl(i=Vl())&&(e._endInput=i.first))},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:5,hostBindings:function(t,e){2&t&&(ts("id",null)("aria-labelledby",e._getAriaLabelledby())("aria-describedby",e._ariaDescribedBy),Ns("mat-date-range-input-hide-placeholders",e._shouldHidePlaceholders()))},inputs:{separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled"},exportAs:["matDateRangeInput"],features:[pu([{provide:PI,useExisting:t},{provide:bB,useExisting:t}]),Qe],ngContentSelectors:MV,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(t,e){1&t&&(Ss(RV),us(0,"div",0),gs("cdkFocusChange",(function(t){return e.focused=null!==t})),us(1,"div",1),Es(2),us(3,"span",2),Ks(4),ls(),ls(),us(5,"span",3),Ks(6),ls(),us(7,"div",4),Es(8,1),ls(),ls()),2&t&&(Yr(4),Zs(e._getInputMirrorValue()),Yr(1),Ns("mat-date-range-input-separator-hidden",e._shouldHideSeparator()),Yr(1),Zs(e.separator))},directives:[Db],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner::-ms-clear,.mat-date-range-input-inner::-ms-reveal{display:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"],encapsulation:2,changeDetection:0}),t}(),AB=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[FV,sB,{provide:KV,useClass:ZV}],imports:[[Wd,Bx,Ox,Z_,Ib,h_],Qy]}),t}(),IB=["button"],OB=["*"],TB=new re("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),RB=new re("MatButtonToggleGroup"),MB={provide:$x,useExisting:Ht((function(){return LB})),multi:!0},PB=0,FB=function t(e,n){y(this,t),this.source=e,this.value=n},LB=function(){var t=function(){function t(e,n){y(this,t),this._changeDetector=e,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=function(){},this._onTouched=function(){},this._name="mat-button-toggle-group-".concat(PB++),this.valueChange=new bl,this.change=new bl,this.appearance=n&&n.appearance?n.appearance:"standard"}return b(t,[{key:"ngOnInit",value:function(){this._selectionModel=new Yy(this.multiple,void 0,!1)}},{key:"ngAfterContentInit",value:function(){var t;(t=this._selectionModel).select.apply(t,l(this._buttonToggles.filter((function(t){return t.checked}))))}},{key:"writeValue",value:function(t){this.value=t,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_emitChangeEvent",value:function(){var t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,n=new FB(e,this.value);this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}},{key:"_syncButtonToggle",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):r=!0,r?Promise.resolve().then((function(){return n._updateModelValue(i)})):this._updateModelValue(i)}},{key:"_isSelected",value:function(t){return this._selectionModel&&this._selectionModel.isSelected(t)}},{key:"_isPrechecked",value:function(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some((function(e){return null!=t.value&&e===t.value})):t.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this._rawValue=t,this._buttonToggles)if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),t.forEach((function(t){return e._selectValue(t)}))}else this._clearSelection(),this._selectValue(t)}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach((function(t){return t.checked=!1}))}},{key:"_selectValue",value:function(t){var e=this._buttonToggles.find((function(e){return null!=e.value&&e.value===t}));e&&(e.checked=!0,this._selectionModel.select(e))}},{key:"_updateModelValue",value:function(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}},{key:"name",get:function(){return this._name},set:function(t){var e=this;this._name=t,this._buttonToggles&&this._buttonToggles.forEach((function(t){t.name=e._name,t._markForCheck()}))}},{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=Kg(t)}},{key:"value",get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map((function(t){return t.value})):t[0]?t[0].value:void 0},set:function(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}},{key:"selected",get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=Kg(t)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Kg(t),this._buttonToggles&&this._buttonToggles.forEach((function(t){return t._markForCheck()}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(So),rs(TB,8))},t.\u0275dir=Be({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,VB,!0),2&t&&Tl(i=Vl())&&(e._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(ts("aria-disabled",e.disabled),Ns("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[pu([MB,{provide:RB,useExisting:t}])]}),t}(),NB=yC((function t(){y(this,t)})),VB=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s){var u;y(this,n),(u=e.call(this))._changeDetectorRef=i,u._elementRef=r,u._focusMonitor=a,u._isSingleSelector=!1,u._checked=!1,u.ariaLabelledby=null,u._disabled=!1,u.change=new bl;var l=Number(o);return u.tabIndex=l||0===l?l:null,u.buttonToggleGroup=t,u.appearance=s&&s.appearance?s.appearance:"standard",u}return b(n,[{key:"ngOnInit",value:function(){var t=this.buttonToggleGroup;this._isSingleSelector=t&&!t.multiple,this.id=this.id||"mat-button-toggle-".concat(PB++),this._isSingleSelector&&(this.name=t.name),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(t){this._buttonElement.nativeElement.focus(t)}},{key:"_onButtonClick",value:function(){var t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new FB(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(t){this._appearance=t}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(t){var e=Kg(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(t){this._disabled=Kg(t)}}]),n}(NB);return t.\u0275fac=function(e){return new(e||t)(rs(RB,8),rs(So),rs(_u),rs(Sb),as("tabindex"),rs(TB,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&Ml(IB,!0),2&t&&Tl(n=Vl())&&(e._buttonElement=n.first)},hostAttrs:[1,"mat-button-toggle"],hostVars:11,hostBindings:function(t,e){1&t&&gs("focus",(function(){return e.focus()})),2&t&&(ts("tabindex",-1)("id",e.id)("name",null),Ns("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[eu],ngContentSelectors:OB,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(Ss(),us(0,"button",0,1),gs("click",(function(){return e._onButtonClick()})),us(2,"div",2),Es(3),ls(),ls(),cs(4,"div",3),cs(5,"div",4)),2&t){var n=is(1);os("id",e.buttonId)("disabled",e.disabled||null),ts("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Yr(5),os("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[qC],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),t}(),BB=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[mC,GC],mC]}),t}();function jB(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Edit rule"),ls())}function zB(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New rule"),ls())}function HB(t,e){if(1&t&&(us(0,"mat-option",22),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.value," ")}}function UB(t,e){if(1&t&&(us(0,"mat-option",22),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.value," ")}}function WB(t,e){if(1&t&&(us(0,"mat-button-toggle",22),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.value," ")}}function qB(t,e){if(1&t){var n=ps();us(0,"div",23),us(1,"span",24),us(2,"uds-translate"),Ks(3,"Weekdays"),ls(),ls(),us(4,"mat-button-toggle-group",25),gs("ngModelChange",(function(t){return xn(n),Cs().wDays=t})),ns(5,WB,2,2,"mat-button-toggle",8),ls(),ls()}if(2&t){var i=Cs();Yr(4),os("ngModel",i.wDays),Yr(1),os("ngForOf",i.weekDays)}}function GB(t,e){if(1&t){var n=ps();us(0,"mat-form-field",9),us(1,"mat-label"),us(2,"uds-translate"),Ks(3,"Repeat every"),ls(),ls(),us(4,"input",6),gs("ngModelChange",(function(t){return xn(n),Cs().rule.interval=t})),ls(),us(5,"div",26),Ks(6),ls(),ls()}if(2&t){var i=Cs();Yr(4),os("ngModel",i.rule.interval),Yr(2),$s("\xa0",i.frequency(),"")}}var YB={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")]},KB={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},ZB=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")];function $B(t,e){void 0===e&&(e=!1);for(var n=new Array,i=0;i<7;i++)1&t&&n.push(ZB[i].substr(0,e?100:3)),t>>=1;return n.length?n.join(", "):django.gettext("(no days)")}var XB=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.dunits=Object.keys(KB).map((function(t){return{id:t,value:KB[t]}})),this.freqs=Object.keys(YB).map((function(t){return{id:t,value:YB[t][2]}})),this.weekDays=ZB.map((function(t,e){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+KB[this.rule.duration_unit]:django.gettext("with no duration")}return t.replace("$FIELD",n)},t.prototype.save=function(){var t=this;this.rules.save(this.rule).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-calendar-rule"]],decls:73,vars:21,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(t,e){if(1&t&&(us(0,"h4",0),ns(1,jB,2,0,"uds-translate",1),ns(2,zB,2,0,"uds-translate",1),ls(),us(3,"mat-dialog-content"),us(4,"div",2),us(5,"mat-form-field"),us(6,"mat-label"),us(7,"uds-translate"),Ks(8,"Name"),ls(),ls(),us(9,"input",3),gs("ngModelChange",(function(t){return e.rule.name=t})),ls(),ls(),us(10,"mat-form-field"),us(11,"mat-label"),us(12,"uds-translate"),Ks(13,"Comments"),ls(),ls(),us(14,"input",3),gs("ngModelChange",(function(t){return e.rule.comments=t})),ls(),ls(),us(15,"h3"),us(16,"uds-translate"),Ks(17,"Event"),ls(),ls(),us(18,"mat-form-field",4),us(19,"mat-label"),us(20,"uds-translate"),Ks(21,"Start time"),ls(),ls(),us(22,"input",5),gs("ngModelChange",(function(t){return e.startTime=t})),ls(),ls(),us(23,"mat-form-field",4),us(24,"mat-label"),us(25,"uds-translate"),Ks(26,"Duration"),ls(),ls(),us(27,"input",6),gs("ngModelChange",(function(t){return e.rule.duration=t})),ls(),ls(),us(28,"mat-form-field",4),us(29,"mat-label"),us(30,"uds-translate"),Ks(31,"Duration units"),ls(),ls(),us(32,"mat-select",7),gs("ngModelChange",(function(t){return e.rule.duration_unit=t})),ns(33,HB,2,2,"mat-option",8),ls(),ls(),us(34,"h3"),Ks(35," Repetition "),ls(),us(36,"mat-form-field",9),us(37,"mat-label"),us(38,"uds-translate"),Ks(39," Start date "),ls(),ls(),us(40,"input",10),gs("ngModelChange",(function(t){return e.startDate=t})),ls(),cs(41,"mat-datepicker-toggle",11),cs(42,"mat-datepicker",null,12),ls(),us(44,"mat-form-field",9),us(45,"mat-label"),us(46,"uds-translate"),Ks(47," Repeat until date "),ls(),ls(),us(48,"input",13),gs("ngModelChange",(function(t){return e.endDate=t})),ls(),cs(49,"mat-datepicker-toggle",11),cs(50,"mat-datepicker",null,14),ls(),us(52,"div",15),us(53,"mat-form-field",9),us(54,"mat-label"),us(55,"uds-translate"),Ks(56,"Frequency"),ls(),ls(),us(57,"mat-select",16),gs("ngModelChange",(function(t){return e.rule.frequency=t}))("valueChange",(function(){return e.rule.interval=1})),ns(58,UB,2,2,"mat-option",8),ls(),ls(),ns(59,qB,6,2,"div",17),ns(60,GB,7,2,"mat-form-field",18),ls(),us(61,"h3"),us(62,"uds-translate"),Ks(63,"Summary"),ls(),ls(),us(64,"div",19),Ks(65),ls(),ls(),ls(),us(66,"mat-dialog-actions"),us(67,"button",20),us(68,"uds-translate"),Ks(69,"Cancel"),ls(),ls(),us(70,"button",21),gs("click",(function(){return e.save()})),us(71,"uds-translate"),Ks(72,"Ok"),ls(),ls(),ls()),2&t){var n=is(43),i=is(51);Yr(1),os("ngIf",e.rule.id),Yr(1),os("ngIf",!e.rule.id),Yr(7),os("ngModel",e.rule.name),Yr(5),os("ngModel",e.rule.comments),Yr(8),os("ngModel",e.startTime),Yr(5),os("ngModel",e.rule.duration),Yr(5),os("ngModel",e.rule.duration_unit),Yr(1),os("ngForOf",e.dunits),Yr(7),os("matDatepicker",n)("ngModel",e.startDate),Yr(1),os("for",n),Yr(7),os("matDatepicker",i)("ngModel",e.endDate)("placeholder",e.FOREVER_STRING),Yr(1),os("for",i),Yr(8),os("ngModel",e.rule.frequency),Yr(1),os("ngForOf",e.freqs),Yr(1),os("ngIf","WEEKDAYS"===e.rule.frequency),Yr(1),os("ngIf","WEEKDAYS"!==e.rule.frequency),Yr(5),$s(" ",e.summary()," "),Yr(5),os("disabled",null!==e.updateRuleData()||""===e.rule.name)}},directives:[Ex,ld,Dx,ZI,BI,jx,PR,eS,uS,gE,wS,mO,sd,gB,_B,WI,hB,Ax,Nx,Sx,ox,LB,VB],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:rgba(35,35,133,.5);color:#fff}"]}),t}();function QB(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Rules"),ls())}function JB(t,e){if(1&t){var n=ps();us(0,"div",6),us(1,"div",7),us(2,"mat-tab-group",8),us(3,"mat-tab"),ns(4,QB,2,0,"ng-template",9),us(5,"div",10),us(6,"uds-table",11),gs("newAction",(function(t){return xn(n),Cs().onNewRule(t)}))("editAction",(function(t){return xn(n),Cs().onEditRule(t)}))("deleteAction",(function(t){return xn(n),Cs().onDeleteRule(t)})),ls(),ls(),ls(),ls(),ls(),ls()}if(2&t){var i=Cs();Yr(2),os("@.disabled",!0),Yr(4),os("rest",i.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","calendars-d-rules"+i.calendar.id)}}var tj=function(t){return["/pools","calendars",t]},ej=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(e).subscribe((function(e){t.calendar=e,t.calendarRules=t.rest.calendars.detail(e.id,"rules")}))},t.prototype.onNewRule=function(t){XB.launch(this.api,this.calendarRules).subscribe((function(){return t.table.overview()}))},t.prototype.onEditRule=function(t){XB.launch(this.api,this.calendarRules,t.table.selection.selected[0]).subscribe((function(){return t.table.overview()}))},t.prototype.onDeleteRule=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar rule"))},t.prototype.processElement=function(t){!function(t){t.interval="WEEKDAYS"===t.frequency?$B(t.interval):t.interval+" "+YB[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+KB[t.duration_unit]}(t)},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","newAction","editAction","deleteAction"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"a",2),us(3,"i",3),Ks(4,"arrow_back"),ls(),ls(),Ks(5," \xa0"),cs(6,"img",4),Ks(7),ls(),ns(8,JB,7,6,"div",5),ls()),2&t&&(Yr(2),os("routerLink",cl(4,tj,e.calendar?e.calendar.id:"")),Yr(4),os("src",e.api.staticURL("admin/img/icons/calendars.png"),Er),Yr(1),$s(" ",null==e.calendar?null:e.calendar.name," "),Yr(1),os("ngIf",e.calendar))},directives:[xg,ld,TD,kD,gD,TP,jx],styles:[".mat-column-end, .mat-column-frequency, .mat-column-start{max-width:9rem} .mat-column-duration, .mat-column-interval{max-width:11rem}"]}),t}(),nj='event'+django.gettext("Set time mark")+"",ij=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"timemark",html:nj,type:gA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New account"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit account"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account"))},t.prototype.onTimeMark=function(t){var e=this,n=t.table.selection.selected[0];this.api.gui.yesno(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).subscribe((function(i){i&&e.rest.accounts.timemark(n.id).subscribe((function(){e.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()}))}))},t.prototype.onDetail=function(t){this.api.navigation.gotoAccountDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("account"))},t.prototype.processElement=function(t){t.time_mark=78793200===t.time_mark?django.gettext("No time mark"):sM("SHORT_DATE_FORMAT",t.time_mark)},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-accounts"]],decls:1,vars:6,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(us(0,"uds-table",0),gs("customButtonAction",(function(t){return e.onTimeMark(t)}))("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),ls()),2&t&&os("rest",e.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("onItem",e.processElement)},directives:[TP],styles:[""]}),t}();function rj(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Account usage"),ls())}function aj(t,e){if(1&t){var n=ps();us(0,"div",6),us(1,"div",7),us(2,"mat-tab-group",8),us(3,"mat-tab"),ns(4,rj,2,0,"ng-template",9),us(5,"div",10),us(6,"uds-table",11),gs("deleteAction",(function(t){return xn(n),Cs().onDeleteUsage(t)})),ls(),ls(),ls(),ls(),ls(),ls()}if(2&t){var i=Cs();Yr(2),os("@.disabled",!0),Yr(4),os("rest",i.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","account-d-usage"+i.account.id)}}var oj=function(t){return["/pools","accounts",t]},sj=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(e).subscribe((function(e){t.account=e,t.accountUsage=t.rest.accounts.detail(e.id,"usage")}))},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account usage"))},t.prototype.processElement=function(t){t.running=this.api.yesno(t.running)},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"div",1),us(2,"a",2),us(3,"i",3),Ks(4,"arrow_back"),ls(),ls(),Ks(5," \xa0"),cs(6,"img",4),Ks(7),ls(),ns(8,aj,7,6,"div",5),ls()),2&t&&(Yr(2),os("routerLink",cl(4,oj,e.account?e.account.id:"")),Yr(4),os("src",e.api.staticURL("admin/img/icons/accounts.png"),Er),Yr(1),$s(" ",null==e.account?null:e.account.name," "),Yr(1),os("ngIf",e.account))},directives:[xg,ld,TD,kD,gD,TP,jx],styles:[""]}),t}();function uj(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"New image for"),ls())}function lj(t,e){1&t&&(us(0,"uds-translate"),Ks(1,"Edit for"),ls())}var cj=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new bl(!0),this.preview="",this.image={id:void 0,data:"",name:""},i.image&&(this.image.id=i.image.id)}return t.launch=function(e,n){void 0===n&&(n=null);var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave},t.prototype.onFileChanged=function(t){var e=this,n=t.target.files[0];if(n.size>262144)this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));else if(["image/jpeg","image/png","image/gif"].includes(n.type)){var i=new FileReader;i.onload=function(t){var r=i.result;e.preview=r,e.image.data=r.substr(r.indexOf("base64,")+7),e.image.name||(e.image.name=n.name)},i.readAsDataURL(n)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))},t.prototype.ngOnInit=function(){var t=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe((function(e){switch(t.image=e,t.image.data.substr(2)){case"iV":t.preview="data:image/png;base64,"+t.image.data;break;case"/9":t.preview="data:image/jpeg;base64,"+t.image.data;break;default:t.preview="data:image/gif;base64,"+t.image.data}}))},t.prototype.background=function(){var t=this.api.config.image_size[0],e=this.api.config.image_size[1],n={"width.px":t,"height.px":e,"background-size":t+"px "+e+"px"};return this.preview&&(n["background-image"]="url("+this.preview+")"),n},t.prototype.save=function(){var t=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe((function(){t.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){if(1&t){var n=ps();us(0,"h4",0),ns(1,uj,2,0,"uds-translate",1),ns(2,lj,2,0,"uds-translate",1),ls(),us(3,"mat-dialog-content"),us(4,"div",2),us(5,"mat-form-field"),us(6,"mat-label"),us(7,"uds-translate"),Ks(8,"Image name"),ls(),ls(),us(9,"input",3),gs("ngModelChange",(function(t){return e.image.name=t})),ls(),ls(),us(10,"input",4,5),gs("change",(function(t){return e.onFileChanged(t)})),ls(),us(12,"mat-form-field"),us(13,"mat-label"),us(14,"uds-translate"),Ks(15,"Image (click to change)"),ls(),ls(),us(16,"input",6),gs("click",(function(){return xn(n),is(11).click()})),ls(),us(17,"div",7),gs("click",(function(){return xn(n),is(11).click()})),cs(18,"div",8),ls(),ls(),us(19,"div",9),us(20,"uds-translate"),Ks(21,' For optimal results, use "squared" images. '),ls(),us(22,"uds-translate"),Ks(23," The image will be resized on upload to "),ls(),Ks(24),ls(),ls(),ls(),us(25,"mat-dialog-actions"),us(26,"button",10),us(27,"uds-translate"),Ks(28,"Cancel"),ls(),ls(),us(29,"button",11),gs("click",(function(){return e.save()})),us(30,"uds-translate"),Ks(31,"Ok"),ls(),ls(),ls()}2&t&&(Yr(1),os("ngIf",!e.image.id),Yr(1),os("ngIf",e.image.id),Yr(7),os("ngModel",e.image.name),Yr(7),os("hidden",!0),Yr(2),os("ngStyle",e.background()),Yr(6),Xs(" ",e.api.config.image_size[0],"x",e.api.config.image_size[1]," "))},directives:[Ex,ld,Dx,ZI,BI,jx,PR,eS,uS,gE,yd,Ax,Nx,Sx],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%], .preview[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.image-preview[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.3)}"]}),t}(),hj=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){cj.launch(this.api).subscribe((function(){return t.table.overview()}))},t.prototype.onEdit=function(t){cj.launch(this.api,t.table.selection.selected[0]).subscribe((function(){return t.table.overview()}))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete image"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("image"))},t.\u0275fac=function(e){return new(e||t)(rs(nv),rs(uI),rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-gallery"]],decls:1,vars:4,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(us(0,"uds-table",0),gs("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),ls()),2&t&&os("rest",e.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)},directives:[TP],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),t}(),dj='assessment'+django.gettext("Generate report")+"",fj=function(){function t(t,e){this.rest=t,this.api=e,this.customButtons=[{id:"genreport",html:dj,type:gA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},t.prototype.generateReport=function(t){var e=this,n=new bl;n.subscribe((function(n){e.api.gui.snackbar.open(django.gettext("Generating report...")),e.rest.reports.save(n,t.table.selection.selected[0].id).subscribe((function(t){for(var n=t.encoded?window.atob(t.data):t.data,i=n.length,r=new Uint8Array(i),a=0;a div[_ngcontent-%COMP%]{width:50%}.mat-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),t}(),Tj=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(nv),rs(uI))},t.\u0275cmp=Me({type:t,selectors:[["uds-actor-tokens"]],decls:2,vars:3,consts:[["icon","maleta",3,"rest","multiSelect","allowExport"]],template:function(t,e){1&t&&(us(0,"div"),cs(1,"uds-table",0),ls()),2&t&&(Yr(1),os("rest",e.rest.actorToken)("multiSelect",!0)("allowExport",!0))},directives:[TP],styles:[""]}),t}(),Rj=[{path:"",canActivate:[jA],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:dI},{path:"providers",component:FP},{path:"providers/:provider/detail",component:aF},{path:"providers/:provider",component:FP},{path:"providers/:provider/detail/:service",component:aF},{path:"authenticators",component:oF},{path:"authenticators/:authenticator/detail",component:ML},{path:"authenticators/:authenticator",component:oF},{path:"authenticators/:authenticator/detail/groups/:group",component:ML},{path:"authenticators/:authenticator/detail/users/:user",component:ML},{path:"osmanagers",component:PL},{path:"osmanagers/:osmanager",component:PL},{path:"transports",component:FL},{path:"transports/:transport",component:FL},{path:"networks",component:LL},{path:"networks/:network",component:LL},{path:"proxies",component:NL},{path:"proxies/:proxy",component:NL},{path:"pools/service-pools",component:VL},{path:"pools/service-pools/:pool",component:VL},{path:"pools/service-pools/:pool/detail",component:QN},{path:"pools/meta-pools",component:JN},{path:"pools/meta-pools/:metapool",component:JN},{path:"pools/meta-pools/:metapool/detail",component:pV},{path:"pools/pool-groups",component:mV},{path:"pools/pool-groups/:poolgroup",component:mV},{path:"pools/calendars",component:vV},{path:"pools/calendars/:calendar",component:vV},{path:"pools/calendars/:calendar/detail",component:ej},{path:"pools/accounts",component:ij},{path:"pools/accounts/:account",component:ij},{path:"pools/accounts/:account/detail",component:sj},{path:"tools/gallery",component:hj},{path:"tools/gallery/:image",component:hj},{path:"tools/reports",component:fj},{path:"tools/reports/:report",component:fj},{path:"tools/configuration",component:Oj},{path:"tools/actor_tokens",component:Tj}]},{path:"**",redirectTo:"summary"}],Mj=function(){function t(){}return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Vg.forRoot(Rj)],Vg]}),t}(),Pj=["input"],Fj=function(){return{enterDuration:150}},Lj=["*"],Nj=new re("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),Vj=new re("mat-checkbox-click-action"),Bj=0,jj={provide:$x,useExisting:Ht((function(){return Uj})),multi:!0},zj=function t(){y(this,t)},Hj=_C(gC(yC(vC((function t(e){y(this,t),this._elementRef=e}))))),Uj=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u,l){var c;return y(this,n),(c=e.call(this,t))._changeDetectorRef=i,c._focusMonitor=r,c._ngZone=a,c._clickAction=s,c._animationMode=u,c._options=l,c.ariaLabel="",c.ariaLabelledby=null,c._uniqueId="mat-checkbox-".concat(++Bj),c.id=c._uniqueId,c.labelPosition="after",c.name=null,c.change=new bl,c.indeterminateChange=new bl,c._onTouched=function(){},c._currentAnimationClass="",c._currentCheckState=0,c._controlValueAccessorChangeFn=function(){},c._checked=!1,c._disabled=!1,c._indeterminate=!1,c._options=c._options||{},c._options.color&&(c.color=c._options.color),c.tabIndex=parseInt(o)||0,c._clickAction=c._clickAction||c._options.clickAction,c}return b(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){e||Promise.resolve().then((function(){t._onTouched(),t._changeDetectorRef.markForCheck()}))})),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(t){var e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){n.classList.remove(i)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var t=new zj;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(t){var e=this;t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,t,e)}},{key:"_onInteractionEvent",value:function(t){t.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(t,e){if("NoopAnimations"===this._animationMode)return"";var n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(t){var e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(t){this._required=Kg(t)}},{key:"checked",get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){var e=Kg(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=Kg(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),n}(Hj);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(Sb),rs(cc),as("tabindex"),rs(Vj,8),rs(iC,8),rs(Nj,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(Ml(Pj,!0),Ml(qC,!0)),2&t&&(Tl(n=Vl())&&(e._inputElement=n.first),Tl(n=Vl())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(Qs("id",e.id),ts("tabindex",null),Ns("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[pu([jj]),eu],ngContentSelectors:Lj,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(Ss(),us(0,"label",0,1),us(2,"div",2),us(3,"input",3,4),gs("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),ls(),us(5,"div",5),cs(6,"div",6),ls(),cs(7,"div",7),us(8,"div",8),Xn(),us(9,"svg",9),cs(10,"path",10),ls(),Qn(),cs(11,"div",11),ls(),ls(),us(12,"span",12,13),gs("cdkObserveContent",(function(){return e._onLabelTextChange()})),us(14,"span",14),Ks(15,"\xa0"),ls(),Es(16),ls(),ls()),2&t){var n=is(1),i=is(13);ts("for",e.inputId),Yr(2),Ns("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),Yr(1),os("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),ts("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),Yr(2),os("matRippleTrigger",n)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",ll(19,Fj))}},directives:[qC,nb],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t}(),Wj={provide:dS,useExisting:Ht((function(){return qj})),multi:!0},qj=function(){var t=function(t){f(n,t);var e=g(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(PE);return t.\u0275fac=function(e){return Gj(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[pu([Wj]),eu]}),t}(),Gj=Vi(qj),Yj=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),Kj=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[GC,mC,ib,Yj],mC,Yj]}),t}(),Zj=["*"],$j=new re("MatChipRemove"),Xj=new re("MatChipAvatar"),Qj=new re("MatChipTrailingIcon"),Jj=_C(gC(yC((function t(e){y(this,t),this._elementRef=e})),"primary"),-1),tz=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[pu([{provide:Xj,useExisting:t}])]}),t}(),ez=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[pu([{provide:Qj,useExisting:t}])]}),t}(),nz=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o,s,u,l,c){var h;return y(this,n),(h=e.call(this,t))._elementRef=t,h._ngZone=i,h._changeDetectorRef=u,h._hasFocus=!1,h.chipListSelectable=!0,h._chipListMultiple=!1,h._chipListDisabled=!1,h._selected=!1,h._selectable=!0,h._disabled=!1,h._removable=!0,h._onFocus=new U,h._onBlur=new U,h.selectionChange=new bl,h.destroyed=new bl,h.removed=new bl,h._addHostClassName(),h._chipRippleTarget=(c||document).createElement("div"),h._chipRippleTarget.classList.add("mat-chip-ripple"),h._elementRef.nativeElement.appendChild(h._chipRippleTarget),h._chipRipple=new zC(a(h),i,h._chipRippleTarget,r),h._chipRipple.setupTriggerEvents(t),h.rippleConfig=o||{},h._animationsDisabled="NoopAnimations"===s,h.tabIndex=null!=l&&parseInt(l)||-1,h}return b(n,[{key:"_addHostClassName",value:function(){var t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}},{key:"toggleSelected",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.asObservable().pipe(Lp(1)).subscribe((function(){t._ngZone.run((function(){t._hasFocus=!1,t._onBlur.next({chip:t})}))}))}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}},{key:"_markForCheck",value:function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=Kg(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=Kg(t)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(t){this._disabled=Kg(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=Kg(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),n}(Jj);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(cc),rs(Py),rs(WC,8),rs(iC,8),rs(So),as("tabindex"),rs(Wc,8))},t.\u0275dir=Be({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){var i;1&t&&(Fl(n,Xj,!0),Fl(n,Qj,!0),Fl(n,$j,!0)),2&t&&(Tl(i=Vl())&&(e.avatar=i.first),Tl(i=Vl())&&(e.trailingIcon=i.first),Tl(i=Vl())&&(e.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&gs("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(ts("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),Ns("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[eu]}),t}(),iz=function(){var t=function(){function t(e,n){y(this,t),this._parentChip=e,n&&"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return b(t,[{key:"_handleClick",value:function(t){var e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(nz),rs(_u))},t.\u0275dir=Be({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&gs("click",(function(t){return e._handleClick(t)}))},features:[pu([{provide:$j,useExisting:t}])]}),t}(),rz=new re("mat-chips-default-options"),az=bC((function t(e,n,i,r){y(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r})),oz=0,sz=function t(e,n){y(this,t),this.source=e,this.value=n},uz=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,o,s,u,l){var c;return y(this,n),(c=e.call(this,u,o,s,l))._elementRef=t,c._changeDetectorRef=i,c._dir=r,c.ngControl=l,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new U,c._uid="mat-chip-list-".concat(oz++),c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(t,e){return t===e},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new bl,c.valueChange=new bl,c.ngControl&&(c.ngControl.valueAccessor=a(c)),c}return b(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new hb(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Cy(this._destroyed)).subscribe((function(e){return t._keyManager.withHorizontalOrientation(e)})),this._keyManager.tabOut.pipe(Cy(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.chips.changes.pipe($p(null),Cy(this._destroyed)).subscribe((function(){t.disabled&&Promise.resolve().then((function(){t._syncChipsState()})),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()}))}},{key:"ngOnInit",value:function(){this._selectionModel=new Yy(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value:function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(36===t.keyCode?(this._keyManager.setFirstItemActive(),t.preventDefault()):35===t.keyCode?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(t){return t>=0&&t1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach((function(t){return t.deselect()})),Array.isArray(t))t.forEach((function(t){return e._selectValue(t,n)})),this._sortValues();else{var i=this._selectValue(t,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find((function(n){return null!=n.value&&e._compareWith(n.value,t)}));return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then((function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())}))}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach((function(e){e!==t&&e.deselect()})),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach((function(e){e.selected&&t._selectionModel.select(e)})),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.change.emit(new sz(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout((function(){t.focused||t._markAsTouched()})):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout((function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()})))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe((function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach((function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()})),e.isUserInput&&t._propagateChanges()}))}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe((function(e){var n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&t._keyManager.updateActiveItem(n),t.stateChanges.next()})),this._chipBlurSubscription=this.chipBlurChanges.subscribe((function(){t._blur(),t.stateChanges.next()}))}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe((function(e){var n=e.chip,i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&n._hasFocus&&(t._lastDestroyedChipIndex=i)}))}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some((function(t){return t._hasFocus}))}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach((function(e){e._chipListDisabled=t._disabled,e._chipListMultiple=t.multiple}))}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=Kg(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=Kg(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=Kg(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=Kg(t),this.chips&&this.chips.forEach((function(t){return t.chipListSelectable=e._selectable}))}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return ht.apply(void 0,l(this.chips.map((function(t){return t.selectionChange}))))}},{key:"chipFocusChanges",get:function(){return ht.apply(void 0,l(this.chips.map((function(t){return t._onFocus}))))}},{key:"chipBlurChanges",get:function(){return ht.apply(void 0,l(this.chips.map((function(t){return t._onBlur}))))}},{key:"chipRemoveChanges",get:function(){return ht.apply(void 0,l(this.chips.map((function(t){return t.destroyed}))))}}]),n}(az);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(So),rs(Hy,8),rs(lE,8),rs(CE,8),rs(FC),rs(oS,10))},t.\u0275cmp=Me({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,nz,!0),2&t&&Tl(i=Vl())&&(e.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&gs("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(Qs("id",e._uid),ts("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),Ns("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[pu([{provide:PI,useExisting:t}]),eu],ngContentSelectors:Zj,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(Ss(),us(0,"div",0),Es(1),ls())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t}(),lz=0,cz=function(){var t=function(){function t(e,n){y(this,t),this._elementRef=e,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new bl,this.placeholder="",this.id="mat-chip-list-input-".concat(lz++),this._disabled=!1,this._inputElement=this._elementRef.nativeElement}return b(t,[{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"_keydown",value:function(t){t&&9===t.keyCode&&!m_(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this._inputElement.focus(t)}},{key:"_isSeparatorKey",value:function(t){if(m_(t))return!1;var e=this.separatorKeyCodes,n=t.keyCode;return Array.isArray(e)?e.indexOf(n)>-1:e.has(n)}},{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=Kg(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=Kg(t)}},{key:"empty",get:function(){return!this._inputElement.value}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(rz))},t.\u0275dir=Be({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&gs("keydown",(function(t){return e._keydown(t)}))("blur",(function(){return e._blur()}))("focus",(function(){return e._focus()}))("input",(function(){return e._onInput()})),2&t&&(Qs("id",e.id),ts("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Qe]}),t}(),hz={separatorKeyCodes:[13]},dz=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[FC,{provide:rz,useValue:hz}]}),t}(),fz=0,pz=new re("CdkAccordion"),mz=function(){var t=function(){function t(){y(this,t),this._stateChanges=new U,this._openCloseAllActions=new U,this.id="cdk-accordion-".concat(fz++),this._multi=!1}return b(t,[{key:"openAll",value:function(){this._openCloseAll(!0)}},{key:"closeAll",value:function(){this._openCloseAll(!1)}},{key:"ngOnChanges",value:function(t){this._stateChanges.next(t)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_openCloseAll",value:function(t){this.multi&&this._openCloseAllActions.next(t)}},{key:"multi",get:function(){return this._multi},set:function(t){this._multi=Kg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[pu([{provide:pz,useExisting:t}]),Qe]}),t}(),vz=0,gz=function(){var t=function(){function t(e,n,i){var r=this;y(this,t),this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=E.EMPTY,this.closed=new bl,this.opened=new bl,this.destroyed=new bl,this.expandedChange=new bl,this.id="cdk-accordion-child-".concat(vz++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen((function(t,e){r.accordion&&!r.accordion.multi&&r.accordion.id===e&&r.id!==t&&(r.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return b(t,[{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var t=this;return this.accordion._openCloseAllActions.subscribe((function(e){t.disabled||(t.expanded=e)}))}},{key:"expanded",get:function(){return this._expanded},set:function(t){t=Kg(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Kg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(pz,12),rs(So),rs(Ky))},t.\u0275dir=Be({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[pu([{provide:pz,useValue:void 0}])]}),t}(),yz=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),_z=["body"];function bz(t,e){}var kz=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],wz=["mat-expansion-panel-header","*","mat-action-row"];function Cz(t,e){1&t&&cs(0,"span",2),2&t&&os("@indicatorRotate",Cs()._getExpandedState())}var xz=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Sz=["mat-panel-title","mat-panel-description","*"],Ez=new re("MAT_ACCORDION"),Dz={indicatorRotate:Mb("indicatorRotate",[Vb("collapsed, void",Nb({transform:"rotate(0deg)"})),Vb("expanded",Nb({transform:"rotate(180deg)"})),jb("expanded <=> collapsed, void => collapsed",Pb("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:Mb("bodyExpansion",[Vb("collapsed, void",Nb({height:"0px",visibility:"hidden"})),Vb("expanded",Nb({height:"*",visibility:"visible"})),jb("expanded <=> collapsed, void => collapsed",Pb("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},Az=function(){var t=function t(e){y(this,t),this._template=e};return t.\u0275fac=function(e){return new(e||t)(rs(Uu))},t.\u0275dir=Be({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t}(),Iz=0,Oz=new re("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Tz=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r,a,o,s,u){var l;return y(this,n),(l=e.call(this,t,i,r))._viewContainerRef=a,l._animationMode=s,l._hideToggle=!1,l.afterExpand=new bl,l.afterCollapse=new bl,l._inputChanges=new U,l._headerId="mat-expansion-panel-header-".concat(Iz++),l._bodyAnimationDone=new U,l.accordion=t,l._document=o,l._bodyAnimationDone.pipe(dy((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){"void"!==t.fromState&&("expanded"===t.toState?l.afterExpand.emit():"collapsed"===t.toState&&l.afterCollapse.emit())})),u&&(l.hideToggle=u.hideToggle),l}return b(n,[{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var t=this;this._lazyContent&&this.opened.pipe($p(null),Df((function(){return t.expanded&&!t._portal})),Lp(1)).subscribe((function(){t._portal=new i_(t._lazyContent._template,t._viewContainerRef)}))}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}},{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=Kg(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}}]),n}(gz);return t.\u0275fac=function(e){return new(e||t)(rs(Ez,12),rs(So),rs(Ky),rs(qu),rs(Wc),rs(iC,8),rs(Oz,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,Az,!0),2&t&&Tl(i=Vl())&&(e._lazyContent=i.first)},viewQuery:function(t,e){var n;1&t&&Ml(_z,!0),2&t&&Tl(n=Vl())&&(e._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&Ns("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[pu([{provide:Ez,useValue:void 0}]),eu,Qe],ngContentSelectors:wz,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(Ss(kz),Es(0),us(1,"div",0,1),gs("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),us(3,"div",2),Es(4,1),ns(5,bz,0,0,"ng-template",3),ls(),Es(6,2),ls()),2&t&&(Yr(1),os("@bodyExpansion",e._getExpandedState())("id",e.id),ts("aria-labelledby",e._headerId),Yr(4),os("cdkPortalOutlet",e._portal))},directives:[u_],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Dz.bodyExpansion]},changeDetection:0}),t}(),Rz=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),t}(),Mz=function(){var t=function(){function t(e,n,i,r,a,o){var s=this;y(this,t),this.panel=e,this._element=n,this._focusMonitor=i,this._changeDetectorRef=r,this._animationMode=o,this._parentChangeSubscription=E.EMPTY;var u=e.accordion?e.accordion._stateChanges.pipe(Df((function(t){return!(!t.hideToggle&&!t.togglePosition)}))):yp;this._parentChangeSubscription=ht(e.opened,e.closed,u,e._inputChanges.pipe(Df((function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)})))).subscribe((function(){return s._changeDetectorRef.markForCheck()})),e.closed.pipe(Df((function(){return e._containsFocus()}))).subscribe((function(){return i.focusVia(n,"program")})),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}return b(t,[{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(t){switch(t.keyCode){case 32:case 13:m_(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._element,t,e)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._element).subscribe((function(e){e&&t.panel.accordion&&t.panel.accordion._handleHeaderFocus(t)}))}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}},{key:"disabled",get:function(){return this.panel.disabled}}]),t}();return t.\u0275fac=function(e){return new(e||t)(rs(Tz,1),rs(_u),rs(Sb),rs(So),rs(Oz,8),rs(iC,8))},t.\u0275cmp=Me({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&gs("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(ts("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),Ls("height",e._getHeaderHeight()),Ns("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:Sz,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(Ss(xz),us(0,"span",0),Es(1),Es(2,1),Es(3,2),ls(),ns(4,Cz,1,1,"span",1)),2&t&&(Yr(4),os("ngIf",e._showToggle()))},directives:[ld],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[Dz.indicatorRotate]},changeDetection:0}),t}(),Pz=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t}(),Fz=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t}(),Lz=function(){var t=function(t){f(n,t);var e=g(n);function n(){var t;return y(this,n),(t=e.apply(this,arguments))._ownHeaders=new wl,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return b(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe($p(this._headers)).subscribe((function(e){t._ownHeaders.reset(e.filter((function(e){return e.panel.accordion===t}))),t._ownHeaders.notifyOnChanges()})),this._keyManager=new hb(this._ownHeaders).withWrap()}},{key:"_handleHeaderKeydown",value:function(t){var e=t.keyCode,n=this._keyManager;36===e?m_(t)||(n.setFirstItemActive(),t.preventDefault()):35===e?m_(t)||(n.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}},{key:"_handleHeaderFocus",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"hideToggle",get:function(){return this._hideToggle},set:function(t){this._hideToggle=Kg(t)}}]),n}(mz);return t.\u0275fac=function(e){return Nz(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,Mz,!0),2&t&&Tl(i=Vl())&&(e._headers=i)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&Ns("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[pu([{provide:Ez,useExisting:t}]),eu]}),t}(),Nz=Vi(Lz),Vz=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Wd,yz,h_]]}),t}(),Bz=["*",[["mat-toolbar-row"]]],jz=["*","mat-toolbar-row"],zz=gC((function t(e){y(this,t),this._elementRef=e})),Hz=function(){var t=function t(){y(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Be({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t}(),Uz=function(){var t=function(t){f(n,t);var e=g(n);function n(t,i,r){var a;return y(this,n),(a=e.call(this,t))._platform=i,a._document=r,a}return b(n,[{key:"ngAfterViewInit",value:function(){var t=this;tr()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return t._checkToolbarMixedModes()})))}},{key:"_checkToolbarMixedModes",value:function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))})).filter((function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)})).some((function(t){return!(!t.textContent||!t.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()}}]),n}(zz);return t.\u0275fac=function(e){return new(e||t)(rs(_u),rs(Py),rs(Wc))},t.\u0275cmp=Me({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&Fl(n,Hz,!0),2&t&&Tl(i=Vl())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&Ns("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[eu],ngContentSelectors:jz,decls:2,vars:0,template:function(t,e){1&t&&(Ss(Bz),Es(0),Es(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}(),Wz=function(){var t=function t(){y(this,t)};return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[mC],mC]}),t}(),qz=function(){function t(){}return t.\u0275mod=Ne({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[{provide:YI,useValue:{floatLabel:"always"}},{provide:CC,useValue:udsData.language}],imports:[Wd,YE,KE,Wz,Bx,HM,SO,Vz,Ox,$I,FR,vO,AB,PC,vR,NO,$O,kM,Kj,UD,dz,BB,WF,bF,LA,WM]}),t}();function Gz(t,e){if(1&t){var n=ps();us(0,"button",6),gs("click",(function(){xn(n);var t=e.$implicit;return Cs().changeLang(t)})),Ks(1),ls()}if(2&t){var i=e.$implicit;Yr(1),Zs(i.name)}}function Yz(t,e){if(1&t&&(us(0,"button",12),us(1,"i",7),Ks(2,"face"),ls(),Ks(3),ls()),2&t){var n=Cs();os("matMenuTriggerFor",is(7)),Yr(3),Zs(n.api.user.user)}}function Kz(t,e){if(1&t&&(us(0,"button",18),Ks(1),us(2,"i",7),Ks(3,"arrow_drop_down"),ls(),ls()),2&t){var n=Cs();os("matMenuTriggerFor",is(7)),Yr(1),$s("",n.api.user.user," ")}}var Zz=function(){function t(t){this.api=t,this.isNavbarCollapsed=!0;var e=t.config.language;this.langs=[];for(var n=0,i=t.config.available_languages;n .mat-button[_ngcontent-%COMP%]{padding-left:1.5rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em 0 0}"]}),t}();function tH(t,e){1&t&&cs(0,"div",1),2&t&&os("innerHTML",Cs().messages,Sr)}var eH=function(){function t(t){this.api=t,this.messages="",this.visible=!1}return t.prototype.ngOnInit=function(){var t=this;if(this.api.notices.length>0){var e='
';this.messages='
'+e+this.api.notices.map((function(t){return t.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")})).join("
"+e)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe((function(){t.visible=!0}))}},t.\u0275fac=function(e){return new(e||t)(rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(t,e){1&t&&ns(0,tH,1,1,"div",0),2&t&&os("ngIf",e.visible)},directives:[ld],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:#4682b4;border-radius:3px;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(70,93,156,.4);box-sizing:border-box;color:#fff;margin:1rem 2rem 0;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),t}(),nH=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,e){1&t&&(us(0,"div"),Ks(1,"\xa9 2012-2020 "),us(2,"a",0),Ks(3,"Virtual Cable S.L.U."),ls(),ls())},styles:[""]}),t}(),iH=function(){function t(){this.title="uds admin"}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-root"]],decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(cs(0,"uds-navbar"),cs(1,"uds-sidebar"),us(2,"div",0),us(3,"div",1),cs(4,"uds-notices"),cs(5,"router-outlet"),ls(),us(6,"div",2),cs(7,"uds-footer"),ls(),ls())},directives:[Zz,Jz,eH,Dg,nH],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 56px - 8px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),t}(),rH=function(t){function e(){var e=t.call(this)||this;return e.itemsPerPageLabel=django.gettext("Items per page"),e}return HA(e,t),e.\u0275prov=It({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(RO),aH=function(){function t(){}return t.prototype.transform=function(t,e){return Array.from(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=je({name:"iterable",type:t,pure:!0}),t}(),oH=function(){function t(){this.changed=new bl}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:6,consts:[["appearance","standard"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","ngModelChange","change"]],template:function(t,e){1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"input",1),gs("ngModelChange",(function(t){return e.field.value=t}))("change",(function(){return e.changed.emit(e)})),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("maxlength",e.field.gui.length||128))},directives:[ZI,BI,PR,eS,uS,gE,ME,zE],styles:[""]}),t}(),sH=function(){function t(){this.changed=new bl}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"input",1),gs("ngModelChange",(function(t){return e.field.value=t}))("change",(function(){return e.changed.emit(e)})),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly))},directives:[ZI,BI,PR,wS,eS,uS,gE,ME],styles:[""]}),t}(),uH=function(){function t(){this.passwordType="password",this.changed=new bl}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["appearance","standard","floatLabel","always"],["matInput","","autocomplete","off",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"]],template:function(t,e){1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"input",1),gs("ngModelChange",(function(t){return e.field.value=t}))("change",(function(){return e.changed.emit(e)})),ls(),us(4,"a",2),gs("click",(function(){return e.passwordType="text"===e.passwordType?"password":"text"})),us(5,"i",3),Ks(6,"remove_red_eye"),ls(),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("type",e.passwordType))},directives:[ZI,BI,PR,eS,uS,gE,ME,Vx,WI],styles:[""]}),t}(),lH=function(){function t(){}return t.prototype.ngOnInit=function(){""!==this.field.value&&void 0!==this.field.value||(this.field.value=this.field.gui.defvalue)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),cH=function(){function t(){}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","readonly","ngModelChange"]],template:function(t,e){1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"textarea",1),gs("ngModelChange",(function(t){return e.field.value=t})),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",e.field.gui.required)("readonly",e.field.gui.rdonly))},directives:[ZI,BI,PR,eS,uS,gE,ME],styles:[""]}),t}();function hH(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",3),gs("changed",(function(t){return xn(n),Cs().filter=t})),ls()}}function dH(t,e){if(1&t&&(us(0,"mat-option",4),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.text," ")}}var fH=function(){function t(){this.filter="",this.changed=new bl}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>0&&(this.field.value=this.field.gui.values[0].id),this.field.value=""+this.field.value},t.prototype.filteredValues=function(){if(""===this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter((function(e){return e.text.toLocaleLowerCase().includes(t)}))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"mat-select",0),gs("ngModelChange",(function(t){return e.field.value=t}))("valueChange",(function(){return e.changed.emit(e)})),ns(4,hH,1,0,"uds-mat-select-search",1),ns(5,dH,2,2,"mat-option",2),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Yr(1),os("ngIf",e.field.gui.values.length>10),Yr(1),os("ngForOf",e.filteredValues()))},directives:[ZI,BI,mO,uS,gE,ME,ld,sd,jR,ox],styles:[""]}),t}();function pH(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",3),gs("changed",(function(t){return xn(n),Cs().filter=t})),ls()}}function mH(t,e){if(1&t&&(us(0,"mat-option",4),Ks(1),ls()),2&t){var n=e.$implicit;os("value",n.id),Yr(1),$s(" ",n.text," ")}}var vH=function(){function t(){this.filter="",this.changed=new bl}return t.prototype.ngOnInit=function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach((function(t,e,n){n[e]=""+t.id})):this.field.values=new Array},t.prototype.filteredValues=function(){if(""===this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter((function(e){return e.text.toLocaleLowerCase().includes(t)}))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"mat-select",0),gs("ngModelChange",(function(t){return e.field.values=t}))("valueChange",(function(){return e.changed.emit(e)})),ns(4,pH,1,0,"uds-mat-select-search",1),ns(5,mH,2,2,"mat-option",2),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("ngModel",e.field.values)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Yr(1),os("ngIf",e.field.gui.values.length>10),Yr(1),os("ngForOf",e.filteredValues()))},directives:[ZI,BI,mO,uS,gE,ME,ld,sd,jR,ox],styles:[""]}),t}();function gH(t,e){if(1&t){var n=ps();us(0,"div",12),us(1,"div",13),Ks(2),ls(),us(3,"div",14),Ks(4," \xa0"),us(5,"a",15),gs("click",(function(){xn(n);var t=e.index;return Cs().removeElement(t)})),us(6,"i",16),Ks(7,"close"),ls(),ls(),ls(),ls()}if(2&t){var i=e.$implicit;Yr(2),$s(" ",i," ")}}var yH=function(){function t(t,e,n,i){var r=this;this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.values=[],this.input="",this.onSave=new bl(!0),this.data.values.forEach((function(t){return r.values.push(t)}))}return t.launch=function(e,n,i){var r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:i},disableClose:!0}).componentInstance.onSave},t.prototype.addElements=function(){var t=this;this.input.split(",").forEach((function(e){t.values.push(e)})),this.input=""},t.prototype.checkKey=function(t){"Enter"===t.code&&this.addElements()},t.prototype.removeAll=function(){this.values.length=0},t.prototype.removeElement=function(t){this.values.splice(t,1)},t.prototype.save=function(){var t=this;this.data.values.length=0,this.values.forEach((function(e){return t.data.values.push(e)})),this.onSave.emit(this.values),this.dialogRef.close()},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(rs(BA),rs(uI),rs(gx),rs(_x))},t.\u0275cmp=Me({type:t,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","",1,"material-icons",3,"click"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(us(0,"h4",0),Ks(1),ls(),us(2,"mat-dialog-content"),us(3,"div",1),us(4,"div",2),ns(5,gH,8,1,"div",3),ls(),us(6,"div",4),us(7,"button",5),gs("click",(function(){return e.removeAll()})),us(8,"uds-translate"),Ks(9,"Remove all"),ls(),ls(),ls(),us(10,"div",6),us(11,"mat-form-field",7),us(12,"input",8),gs("keyup",(function(t){return e.checkKey(t)}))("ngModelChange",(function(t){return e.input=t})),ls(),us(13,"button",9),gs("click",(function(){return e.addElements()})),us(14,"uds-translate"),Ks(15,"Add"),ls(),ls(),ls(),ls(),ls(),ls(),us(16,"mat-dialog-actions"),us(17,"button",10),us(18,"uds-translate"),Ks(19,"Cancel"),ls(),ls(),us(20,"button",11),gs("click",(function(){return e.save()})),us(21,"uds-translate"),Ks(22,"Ok"),ls(),ls(),ls()),2&t&&(Yr(1),$s(" ",e.data.title,"\n"),Yr(4),os("ngForOf",e.values),Yr(7),os("ngModel",e.input))},directives:[Ex,Dx,sd,Nx,jx,ZI,PR,eS,uS,gE,WI,Ax,Sx],styles:[".content[_ngcontent-%COMP%]{width:100%;justify-content:space-between;justify-self:center}.content[_ngcontent-%COMP%], .list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.list[_ngcontent-%COMP%]{margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),_H=function(){function t(t){this.api=t,this.changed=new bl}return t.prototype.ngOnInit=function(){},t.prototype.launch=function(){var t=this;void 0===this.field.values&&(this.field.values=[]),yH.launch(this.api,this.field.gui.label,this.field.values).subscribe((function(e){t.changed.emit({field:t.field})}))},t.prototype.getValue=function(){if(void 0===this.field.values)return"";var t=this.field.values.filter((function(t,e,n){return e<5})).join(", ");return this.field.values.length>5&&(t+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),t},t.\u0275fac=function(e){return new(e||t)(rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled","click"]],template:function(t,e){1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"input",1),gs("click",(function(){return e.launch()})),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("readonly",!0)("value",e.getValue())("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly))},directives:[ZI,BI,PR],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),bH=function(){function t(){this.changed=new bl}return t.prototype.ngOnInit=function(){var t;this.field.value=uM(""===(t=this.field.value)||null==t?this.field.gui.defvalue:this.field.value)},t.prototype.getValue=function(){return uM(this.field.value)?django.gettext("Yes"):django.gettext("No")},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:5,vars:5,consts:[[1,"mat-form-field-infix"],[1,"label"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(us(0,"div",0),us(1,"span",1),Ks(2),ls(),us(3,"mat-slide-toggle",2),gs("ngModelChange",(function(t){return e.field.value=t}))("change",(function(){return e.changed.emit(e)})),Ks(4),ls(),ls()),2&t&&(Yr(2),Zs(e.field.gui.label),Yr(1),os("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Yr(1),$s(" ",e.getValue()," "))},directives:[BF,zF,uS,gE,ME],styles:[".label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function kH(t,e){if(1&t&&cs(0,"div",5),2&t){var n=Cs().$implicit;os("innerHTML",Cs().asIcon(n),Sr)}}function wH(t,e){if(1&t&&(us(0,"div"),ns(1,kH,1,1,"div",4),ls()),2&t){var n=e.$implicit,i=Cs();Yr(1),os("ngIf",n.id==i.field.value)}}function CH(t,e){if(1&t){var n=ps();us(0,"uds-mat-select-search",6),gs("changed",(function(t){return xn(n),Cs().filter=t})),ls()}}function xH(t,e){if(1&t&&(us(0,"mat-option",7),cs(1,"div",5),ls()),2&t){var n=e.$implicit,i=Cs();os("value",n.id),Yr(1),os("innerHTML",i.asIcon(n),Sr)}}var SH=function(){function t(t){this.api=t,this.filter="",this.changed=new bl}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>=0&&(this.field.value=this.field.gui.values[0].id)},t.prototype.asIcon=function(t){return this.api.safeString(this.api.gui.icon(t.img)+t.text)},t.prototype.filteredValues=function(){if(""===this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter((function(e){return e.text.toLocaleLowerCase().includes(t)}))},t.\u0275fac=function(e){return new(e||t)(rs(BA))},t.\u0275cmp=Me({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(us(0,"mat-form-field"),us(1,"mat-label"),Ks(2),ls(),us(3,"mat-select",0),gs("valueChange",(function(){return e.changed.emit(e)}))("ngModelChange",(function(t){return e.field.value=t})),us(4,"mat-select-trigger"),ns(5,wH,2,1,"div",1),ls(),ns(6,CH,1,0,"uds-mat-select-search",2),ns(7,xH,2,2,"mat-option",3),ls(),ls()),2&t&&(Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("placeholder",e.field.gui.tooltip)("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Yr(2),os("ngForOf",e.field.gui.values),Yr(1),os("ngIf",e.field.gui.values.length>10),Yr(1),os("ngForOf",e.filteredValues()))},directives:[ZI,BI,mO,uS,gE,ME,pO,sd,ld,jR,ox],styles:[""]}),t}(),EH=function(){function t(){this.changed=new bl,this.value=new Date}return Object.defineProperty(t.prototype,"date",{get:function(){return this.value},set:function(t){this.value!==t&&(this.value=t,this.field.value=nM("%Y-%m-%d",this.value))},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=nM("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=nM("%Y-12-31"));var t=this.field.value.split("-");3===t.length&&(this.value=new Date(+t[0],+t[1]-1,+t[2]))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(t,e){if(1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"input",1),gs("ngModelChange",(function(t){return e.date=t})),ls(),cs(4,"mat-datepicker-toggle",2),cs(5,"mat-datepicker",null,3),ls()),2&t){var n=is(6);Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("matDatepicker",n)("ngModel",e.date)("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly),Yr(1),os("for",n)}},directives:[ZI,BI,PR,gB,eS,uS,gE,_B,WI,hB],styles:[""]}),t}();function DH(t,e){if(1&t){var n=ps();us(0,"mat-chip",5),gs("removed",(function(){xn(n);var t=e.$implicit;return Cs().remove(t)})),Ks(1),us(2,"i",6),Ks(3,"cancel"),ls(),ls()}if(2&t){var i=e.$implicit,r=Cs();os("selectable",!1)("removable",!0!==r.field.gui.rdonly),Yr(1),$s(" ",i," ")}}var AH,IH,OH,TH=function(){function t(){this.separatorKeysCodes=[13,188],this.changed=new bl}return t.prototype.ngOnInit=function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach((function(t,e,n){""===t.trim()&&n.splice(e,1)}))},t.prototype.add=function(t){var e=t.input,n=t.value;(n||"").trim()&&this.field.values.push(n.trim()),e&&(e.value="")},t.prototype.remove=function(t){var e=this.field.values.indexOf(t);e>=0&&this.field.values.splice(e,1)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Me({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:8,consts:[["appearance","standard","floatLabel","always"],[3,"selectable","disabled","change"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(t,e){if(1&t&&(us(0,"mat-form-field",0),us(1,"mat-label"),Ks(2),ls(),us(3,"mat-chip-list",1,2),gs("change",(function(){return e.changed.emit(e)})),ns(5,DH,4,3,"mat-chip",3),us(6,"input",4),gs("matChipInputTokenEnd",(function(t){return e.add(t)})),ls(),ls(),ls()),2&t){var n=is(4);Yr(2),$s(" ",e.field.gui.label," "),Yr(1),os("selectable",!1)("disabled",!0===e.field.gui.rdonly),Yr(2),os("ngForOf",e.field.values),Yr(1),os("placeholder",e.field.gui.tooltip)("matChipInputFor",n)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[ZI,BI,uz,sd,cz,nz,iz],styles:[".mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),t}(),RH=function(){function t(){}return t.\u0275mod=Ne({type:t,bootstrap:[iH]}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[BA,uI,{provide:RO,useClass:rH}],imports:[[xf,up,Mj,oC,qz]]}),t}();AH=[rd,ad,sd,ld,_d,yd,fd,pd,md,vd,gd,Dg,Cg,xg,Eg,ug,yE,FS,BS,eS,wS,DS,Qx,PS,VS,SS,uS,lS,ME,BE,zE,UE,PE,NE,gE,pE,lE,kE,CE,OE,SE,DE,Uz,Hz,Uy,Nx,Vx,$y,LM,OM,jM,DM,CO,xO,Lz,Tz,Rz,Mz,Fz,Pz,Az,mx,Sx,Ex,Dx,Ax,RI,ZI,VI,BI,jI,HI,WI,SR,ER,PR,AR,mO,pO,ox,tx,iB,NV,hB,lB,gB,_B,yB,$V,eB,XV,nB,DB,wB,CB,xB,zT,qT,tR,ZT,UT,rR,YT,nR,XT,JT,QT,oR,cR,uR,dR,pR,LO,HO,ZO,_M,bM,Uj,qj,TD,gD,kD,BD,HD,mD,uz,nz,cz,iz,tz,ez,LB,VB,zF,BF,pF,_F,mF,FA,UM,iH,Zz,jx,Gx,nH,dI,Jz,TP,FP,aF,oF,VL,fA,cA,nA,oH,sH,uH,lH,cH,fH,vH,jR,_H,bH,SH,EH,TH,qP,XR,YR,XP,QN,yH,ZP,ML,fL,CL,AF,iL,PL,FL,LL,NL,IN,HL,tN,rN,aN,wN,ZL,oN,CN,JN,pV,rV,mV,vV,ej,XB,ij,sj,hj,cj,fj,Oj,Tj,eH],IH=[xd,Ad,Sd,Md,Ud,Nd,Vd,Dd,Bd,Id,Td,Rd,Fd,zx,aH,qM],(OH=nA.\u0275cmp).directiveDefs=function(){return AH.map(Pe)},OH.pipeDefs=function(){return IH.map(Fe)},function(){if(Ji)throw new Error("Cannot enable prod mode after platform setup.");Qi=!1}(),wf().bootstrapModule(RH).catch((function(t){return console.log(t)}))}},[[0,0]]]); \ No newline at end of file diff --git a/server/src/uds/templates/uds/admin/index.html b/server/src/uds/templates/uds/admin/index.html index 1da05790..486c0789 100644 --- a/server/src/uds/templates/uds/admin/index.html +++ b/server/src/uds/templates/uds/admin/index.html @@ -92,6 +92,6 @@ - +